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