diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-15 00:03:51 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-15 00:03:51 +0000 |
commit | 676126f7e4583705e6a381e1b35309ea8242c224 (patch) | |
tree | a690a9752c5864a2f44a5143a15b36894d14803e /chrome/renderer/device_orientation_dispatcher.h | |
parent | ec8ec84a6ad81b3cae8517098e9f22c7a30921ea (diff) | |
download | chromium_src-676126f7e4583705e6a381e1b35309ea8242c224.zip chromium_src-676126f7e4583705e6a381e1b35309ea8242c224.tar.gz chromium_src-676126f7e4583705e6a381e1b35309ea8242c224.tar.bz2 |
Introduce RenderView::Observer interface so that RenderView doesn't have to know about the details of every feature. Observers get to filter and send IPC messages, and basic notifications of frame related events.I've moved over AutoFill related classes, and also made AutoFillManager implement the new WebAutoFillClient interface. For the rest of the classes, they implement the interface just for message filtering.
Review URL: http://codereview.chromium.org/6151011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/device_orientation_dispatcher.h')
-rw-r--r-- | chrome/renderer/device_orientation_dispatcher.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/chrome/renderer/device_orientation_dispatcher.h b/chrome/renderer/device_orientation_dispatcher.h index 88c1ef5..d60a470 100644 --- a/chrome/renderer/device_orientation_dispatcher.h +++ b/chrome/renderer/device_orientation_dispatcher.h @@ -8,21 +8,21 @@ #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationClient.h" #include "base/scoped_ptr.h" -#include "ipc/ipc_channel.h" +#include "chrome/renderer/render_view_observer.h" -class RenderView; namespace WebKit { class WebDeviceOrientation; } struct ViewMsg_DeviceOrientationUpdated_Params; -class DeviceOrientationDispatcher : public WebKit::WebDeviceOrientationClient, - public IPC::Channel::Listener { +class DeviceOrientationDispatcher : public RenderViewObserver, + public WebKit::WebDeviceOrientationClient { public: - explicit DeviceOrientationDispatcher(RenderView* render_view); + DeviceOrientationDispatcher(RenderView* render_view); virtual ~DeviceOrientationDispatcher(); - // IPC::Channel::Implementation. - bool OnMessageReceived(const IPC::Message& msg); + private: + // RenderView::Observer implementation. + bool OnMessageReceived(const IPC::Message& message); // From WebKit::WebDeviceOrientationClient. virtual void setController( @@ -31,11 +31,9 @@ class DeviceOrientationDispatcher : public WebKit::WebDeviceOrientationClient, virtual void stopUpdating(); virtual WebKit::WebDeviceOrientation lastOrientation() const; - private: void OnDeviceOrientationUpdated( const ViewMsg_DeviceOrientationUpdated_Params& p); - RenderView* render_view_; scoped_ptr<WebKit::WebDeviceOrientationController> controller_; scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_; bool started_; |