OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/child/blink_platform_impl.h" | 10 #include "content/child/blink_platform_impl.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 class WebGraphicsContext3DProvider; | 34 class WebGraphicsContext3DProvider; |
35 class WebScreenOrientationListener; | 35 class WebScreenOrientationListener; |
36 } | 36 } |
37 | 37 |
38 namespace content { | 38 namespace content { |
39 class BatteryStatusDispatcher; | 39 class BatteryStatusDispatcher; |
40 class DeviceMotionEventPump; | 40 class DeviceMotionEventPump; |
41 class DeviceOrientationEventPump; | 41 class DeviceOrientationEventPump; |
42 class QuotaMessageFilter; | 42 class QuotaMessageFilter; |
43 class RendererClipboardClient; | 43 class RendererClipboardClient; |
| 44 class RenderView; |
44 class ScreenOrientationDispatcher; | 45 class ScreenOrientationDispatcher; |
45 class ThreadSafeSender; | 46 class ThreadSafeSender; |
46 class WebClipboardImpl; | 47 class WebClipboardImpl; |
47 class WebDatabaseObserverImpl; | 48 class WebDatabaseObserverImpl; |
48 class WebFileSystemImpl; | 49 class WebFileSystemImpl; |
49 | 50 |
50 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 51 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
51 : public BlinkPlatformImpl { | 52 : public BlinkPlatformImpl { |
52 public: | 53 public: |
53 RendererWebKitPlatformSupportImpl(); | 54 RendererWebKitPlatformSupportImpl(); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 177 |
177 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 178 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
178 static void SetMockDeviceMotionDataForTesting( | 179 static void SetMockDeviceMotionDataForTesting( |
179 const blink::WebDeviceMotionData& data); | 180 const blink::WebDeviceMotionData& data); |
180 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 181 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
181 // is invoked. | 182 // is invoked. |
182 static void SetMockDeviceOrientationDataForTesting( | 183 static void SetMockDeviceOrientationDataForTesting( |
183 const blink::WebDeviceOrientationData& data); | 184 const blink::WebDeviceOrientationData& data); |
184 // Forces the screen orientation for testing purposes. | 185 // Forces the screen orientation for testing purposes. |
185 static void SetMockScreenOrientationForTesting( | 186 static void SetMockScreenOrientationForTesting( |
| 187 RenderView* render_view, |
186 blink::WebScreenOrientationType); | 188 blink::WebScreenOrientationType); |
187 // Resets the mock screen orientation data used for testing. | 189 // Resets the mock screen orientation data used for testing. |
188 static void ResetMockScreenOrientationForTesting(); | 190 static void ResetMockScreenOrientationForTesting(); |
189 | 191 |
190 // Notifies blink::WebBatteryStatusListener that battery status has changed. | 192 // Notifies blink::WebBatteryStatusListener that battery status has changed. |
191 static void MockBatteryStatusChangedForTesting( | 193 static void MockBatteryStatusChangedForTesting( |
192 const blink::WebBatteryStatus& status); | 194 const blink::WebBatteryStatus& status); |
193 | 195 |
194 WebDatabaseObserverImpl* web_database_observer_impl() { | 196 WebDatabaseObserverImpl* web_database_observer_impl() { |
195 return web_database_observer_impl_.get(); | 197 return web_database_observer_impl_.get(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 245 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
244 | 246 |
245 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 247 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
246 | 248 |
247 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 249 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
248 }; | 250 }; |
249 | 251 |
250 } // namespace content | 252 } // namespace content |
251 | 253 |
252 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 254 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |