electron/renderer/atom_render_view_observer.h

43 lines
1.2 KiB
C
Raw Normal View History

2013-04-12 01:46:58 +00:00
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
#define ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_
#include "content/public/renderer/render_view_observer.h"
namespace base {
class ListValue;
}
2013-04-12 01:46:58 +00:00
namespace atom {
class AtomRendererClient;
class AtomRenderViewObserver : public content::RenderViewObserver {
2013-04-12 15:16:16 +00:00
public:
explicit AtomRenderViewObserver(content::RenderView* render_view,
AtomRendererClient* renderer_client);
2013-04-12 01:46:58 +00:00
2013-04-20 06:03:55 +00:00
protected:
2013-04-12 15:16:16 +00:00
virtual ~AtomRenderViewObserver();
2013-04-12 01:46:58 +00:00
2013-04-20 06:03:55 +00:00
private:
// content::RenderViewObserver implementation.
virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
void OnBrowserMessage(const string16& channel,
2013-04-23 12:57:14 +00:00
const base::ListValue& args);
// Weak reference to renderer client.
AtomRendererClient* renderer_client_;
2013-04-12 01:46:58 +00:00
DISALLOW_COPY_AND_ASSIGN(AtomRenderViewObserver);
};
} // namespace atom
#endif // ATOM_RENDERER_ATOM_RENDER_VIEW_OBSERVER_