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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // Returns the previous |enable| value. | 162 // Returns the previous |enable| value. |
163 static bool SetSandboxEnabledForTesting(bool enable); | 163 static bool SetSandboxEnabledForTesting(bool enable); |
164 | 164 |
165 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 165 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
166 static void SetMockDeviceMotionDataForTesting( | 166 static void SetMockDeviceMotionDataForTesting( |
167 const blink::WebDeviceMotionData& data); | 167 const blink::WebDeviceMotionData& data); |
168 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 168 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
169 // is invoked. | 169 // is invoked. |
170 static void SetMockDeviceOrientationDataForTesting( | 170 static void SetMockDeviceOrientationDataForTesting( |
171 const blink::WebDeviceOrientationData& data); | 171 const blink::WebDeviceOrientationData& data); |
172 // Forces the screen orientation for testing purposes. | |
173 static void SetMockScreenOrientationForTesting( | |
174 RenderView* render_view, | |
175 blink::WebScreenOrientationType); | |
176 // Resets the mock screen orientation data used for testing. | |
177 static void ResetMockScreenOrientationForTesting(); | |
178 | 172 |
179 // Notifies blink::WebBatteryStatusListener that battery status has changed. | 173 // Notifies blink::WebBatteryStatusListener that battery status has changed. |
180 static void MockBatteryStatusChangedForTesting( | 174 static void MockBatteryStatusChangedForTesting( |
181 const blink::WebBatteryStatus& status); | 175 const blink::WebBatteryStatus& status); |
182 | 176 |
183 WebDatabaseObserverImpl* web_database_observer_impl() { | 177 WebDatabaseObserverImpl* web_database_observer_impl() { |
184 return web_database_observer_impl_.get(); | 178 return web_database_observer_impl_.get(); |
185 } | 179 } |
186 | 180 |
187 private: | 181 private: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 225 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
232 | 226 |
233 RendererGamepadProvider* gamepad_provider_; | 227 RendererGamepadProvider* gamepad_provider_; |
234 | 228 |
235 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 229 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
236 }; | 230 }; |
237 | 231 |
238 } // namespace content | 232 } // namespace content |
239 | 233 |
240 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 234 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |