OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ |
6 #define CHROME_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/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "chrome/renderer/render_view_observer.h" | 11 #include "chrome/renderer/render_view_observer.h" |
12 | 12 |
13 namespace WebKit { class WebDeviceOrientation; } | 13 namespace WebKit { class WebDeviceOrientation; } |
14 | 14 |
15 struct ViewMsg_DeviceOrientationUpdated_Params; | 15 struct ViewMsg_DeviceOrientationUpdated_Params; |
16 | 16 |
(...skipping 15 matching lines...) Expand all Loading... |
32 virtual WebKit::WebDeviceOrientation lastOrientation() const; | 32 virtual WebKit::WebDeviceOrientation lastOrientation() const; |
33 | 33 |
34 void OnDeviceOrientationUpdated( | 34 void OnDeviceOrientationUpdated( |
35 const ViewMsg_DeviceOrientationUpdated_Params& p); | 35 const ViewMsg_DeviceOrientationUpdated_Params& p); |
36 | 36 |
37 scoped_ptr<WebKit::WebDeviceOrientationController> controller_; | 37 scoped_ptr<WebKit::WebDeviceOrientationController> controller_; |
38 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_; | 38 scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_; |
39 bool started_; | 39 bool started_; |
40 }; | 40 }; |
41 | 41 |
42 #endif // CHROME_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ | 42 #endif // CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ |
OLD | NEW |