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 22 matching lines...) Expand all Loading... |
33 class WebGraphicsContext3DProvider; | 33 class WebGraphicsContext3DProvider; |
34 class WebScreenOrientationListener; | 34 class WebScreenOrientationListener; |
35 } | 35 } |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 class BatteryStatusDispatcher; | 38 class BatteryStatusDispatcher; |
39 class DeviceMotionEventPump; | 39 class DeviceMotionEventPump; |
40 class DeviceOrientationEventPump; | 40 class DeviceOrientationEventPump; |
41 class QuotaMessageFilter; | 41 class QuotaMessageFilter; |
42 class RendererClipboardClient; | 42 class RendererClipboardClient; |
| 43 class RenderView; |
43 class ScreenOrientationDispatcher; | 44 class ScreenOrientationDispatcher; |
44 class ThreadSafeSender; | 45 class ThreadSafeSender; |
45 class WebClipboardImpl; | 46 class WebClipboardImpl; |
46 class WebDatabaseObserverImpl; | 47 class WebDatabaseObserverImpl; |
47 class WebFileSystemImpl; | 48 class WebFileSystemImpl; |
48 | 49 |
49 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 50 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
50 : public BlinkPlatformImpl { | 51 : public BlinkPlatformImpl { |
51 public: | 52 public: |
52 RendererWebKitPlatformSupportImpl(); | 53 RendererWebKitPlatformSupportImpl(); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 175 |
175 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 176 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
176 static void SetMockDeviceMotionDataForTesting( | 177 static void SetMockDeviceMotionDataForTesting( |
177 const blink::WebDeviceMotionData& data); | 178 const blink::WebDeviceMotionData& data); |
178 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 179 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
179 // is invoked. | 180 // is invoked. |
180 static void SetMockDeviceOrientationDataForTesting( | 181 static void SetMockDeviceOrientationDataForTesting( |
181 const blink::WebDeviceOrientationData& data); | 182 const blink::WebDeviceOrientationData& data); |
182 // Forces the screen orientation for testing purposes. | 183 // Forces the screen orientation for testing purposes. |
183 static void SetMockScreenOrientationForTesting( | 184 static void SetMockScreenOrientationForTesting( |
| 185 RenderView* render_view, |
184 blink::WebScreenOrientationType); | 186 blink::WebScreenOrientationType); |
185 // Resets the mock screen orientation data used for testing. | 187 // Resets the mock screen orientation data used for testing. |
186 static void ResetMockScreenOrientationForTesting(); | 188 static void ResetMockScreenOrientationForTesting(); |
187 | 189 |
188 WebDatabaseObserverImpl* web_database_observer_impl() { | 190 WebDatabaseObserverImpl* web_database_observer_impl() { |
189 return web_database_observer_impl_.get(); | 191 return web_database_observer_impl_.get(); |
190 } | 192 } |
191 | 193 |
192 private: | 194 private: |
193 bool CheckPreparsedJsCachingEnabled() const; | 195 bool CheckPreparsedJsCachingEnabled() const; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 238 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
237 | 239 |
238 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 240 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
239 | 241 |
240 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 242 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
241 }; | 243 }; |
242 | 244 |
243 } // namespace content | 245 } // namespace content |
244 | 246 |
245 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 247 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |