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

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

Issue 6703003: Move a bunch of html5 renderer code to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
6 #define CHROME_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lient.h"
9
10 #include "base/scoped_ptr.h"
11 #include "chrome/renderer/render_view_observer.h"
12
13 namespace WebKit { class WebDeviceOrientation; }
14
15 struct ViewMsg_DeviceOrientationUpdated_Params;
16
17 class DeviceOrientationDispatcher : public RenderViewObserver,
18 public WebKit::WebDeviceOrientationClient {
19 public:
20 explicit DeviceOrientationDispatcher(RenderView* render_view);
21 virtual ~DeviceOrientationDispatcher();
22
23 private:
24 // RenderView::Observer implementation.
25 virtual bool OnMessageReceived(const IPC::Message& message);
26
27 // From WebKit::WebDeviceOrientationClient.
28 virtual void setController(
29 WebKit::WebDeviceOrientationController* controller);
30 virtual void startUpdating();
31 virtual void stopUpdating();
32 virtual WebKit::WebDeviceOrientation lastOrientation() const;
33
34 void OnDeviceOrientationUpdated(
35 const ViewMsg_DeviceOrientationUpdated_Params& p);
36
37 scoped_ptr<WebKit::WebDeviceOrientationController> controller_;
38 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_;
39 bool started_;
40 };
41
42 #endif // CHROME_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/cookie_message_filter.cc ('k') | chrome/renderer/device_orientation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698