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

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

Issue 8220006: Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't include the RenderView... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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
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;
14
13 namespace WebKit { 15 namespace WebKit {
14 class WebDeviceOrientation; 16 class WebDeviceOrientation;
15 } 17 }
16 18
17 struct DeviceOrientationMsg_Updated_Params; 19 struct DeviceOrientationMsg_Updated_Params;
18 20
19 class DeviceOrientationDispatcher : public content::RenderViewObserver, 21 class DeviceOrientationDispatcher : public content::RenderViewObserver,
20 public WebKit::WebDeviceOrientationClient { 22 public WebKit::WebDeviceOrientationClient {
21 public: 23 public:
22 explicit DeviceOrientationDispatcher(RenderView* render_view); 24 explicit DeviceOrientationDispatcher(RenderViewImpl* render_view);
23 virtual ~DeviceOrientationDispatcher(); 25 virtual ~DeviceOrientationDispatcher();
24 26
25 private: 27 private:
26 // RenderView::Observer implementation. 28 // RenderView::Observer implementation.
27 virtual bool OnMessageReceived(const IPC::Message& message); 29 virtual bool OnMessageReceived(const IPC::Message& message);
28 30
29 // From WebKit::WebDeviceOrientationClient. 31 // From WebKit::WebDeviceOrientationClient.
30 virtual void setController( 32 virtual void setController(
31 WebKit::WebDeviceOrientationController* controller); 33 WebKit::WebDeviceOrientationController* controller);
32 virtual void startUpdating(); 34 virtual void startUpdating();
33 virtual void stopUpdating(); 35 virtual void stopUpdating();
34 virtual WebKit::WebDeviceOrientation lastOrientation() const; 36 virtual WebKit::WebDeviceOrientation lastOrientation() const;
35 37
36 void OnDeviceOrientationUpdated( 38 void OnDeviceOrientationUpdated(
37 const DeviceOrientationMsg_Updated_Params& p); 39 const DeviceOrientationMsg_Updated_Params& p);
38 40
39 scoped_ptr<WebKit::WebDeviceOrientationController> controller_; 41 scoped_ptr<WebKit::WebDeviceOrientationController> controller_;
40 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_; 42 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_;
41 bool started_; 43 bool started_;
42 }; 44 };
43 45
44 #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.cc ('k') | content/renderer/device_orientation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698