Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: content/renderer/device_orientation_dispatcher.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | content/renderer/devtools_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lient.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lient.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/renderer/render_view_observer.h" 11 #include "content/public/renderer/render_view_observer.h"
12 12
13 class RenderViewImpl; 13 class RenderViewImpl;
14 14
15 namespace WebKit { 15 namespace WebKit {
16 class WebDeviceOrientation; 16 class WebDeviceOrientation;
17 } 17 }
18 18
19 struct DeviceOrientationMsg_Updated_Params; 19 struct DeviceOrientationMsg_Updated_Params;
20 20
21 class DeviceOrientationDispatcher : public content::RenderViewObserver, 21 class DeviceOrientationDispatcher : public content::RenderViewObserver,
22 public WebKit::WebDeviceOrientationClient { 22 public WebKit::WebDeviceOrientationClient {
23 public: 23 public:
24 explicit DeviceOrientationDispatcher(RenderViewImpl* render_view); 24 explicit DeviceOrientationDispatcher(RenderViewImpl* render_view);
25 virtual ~DeviceOrientationDispatcher(); 25 virtual ~DeviceOrientationDispatcher();
26 26
27 private: 27 private:
28 // RenderView::Observer implementation. 28 // RenderView::Observer implementation.
29 virtual bool OnMessageReceived(const IPC::Message& message); 29 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
30 30
31 // From WebKit::WebDeviceOrientationClient. 31 // From WebKit::WebDeviceOrientationClient.
32 virtual void setController( 32 virtual void setController(
33 WebKit::WebDeviceOrientationController* controller); 33 WebKit::WebDeviceOrientationController* controller);
34 virtual void startUpdating(); 34 virtual void startUpdating();
35 virtual void stopUpdating(); 35 virtual void stopUpdating();
36 virtual WebKit::WebDeviceOrientation lastOrientation() const; 36 virtual WebKit::WebDeviceOrientation lastOrientation() const;
37 37
38 void OnDeviceOrientationUpdated( 38 void OnDeviceOrientationUpdated(
39 const DeviceOrientationMsg_Updated_Params& p); 39 const DeviceOrientationMsg_Updated_Params& p);
40 40
41 scoped_ptr<WebKit::WebDeviceOrientationController> controller_; 41 scoped_ptr<WebKit::WebDeviceOrientationController> controller_;
42 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_; 42 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_;
43 bool started_; 43 bool started_;
44 }; 44 };
45 45
46 #endif // CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ 46 #endif // CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | content/renderer/devtools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698