| 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 "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // a listener has been set via setGamepadListener. | 170 // a listener has been set via setGamepadListener. |
| 171 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); | 171 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
| 172 | 172 |
| 173 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 173 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
| 174 static void SetMockDeviceMotionDataForTesting( | 174 static void SetMockDeviceMotionDataForTesting( |
| 175 const blink::WebDeviceMotionData& data); | 175 const blink::WebDeviceMotionData& data); |
| 176 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 176 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
| 177 // is invoked. | 177 // is invoked. |
| 178 static void SetMockDeviceOrientationDataForTesting( | 178 static void SetMockDeviceOrientationDataForTesting( |
| 179 const blink::WebDeviceOrientationData& data); | 179 const blink::WebDeviceOrientationData& data); |
| 180 // Set WebScreenOrientation to return when setScreenOrientationListener is | 180 // Forces the screen orientation for testing purposes. |
| 181 // invoked. | |
| 182 static void SetMockScreenOrientationForTesting( | 181 static void SetMockScreenOrientationForTesting( |
| 183 blink::WebScreenOrientationType); | 182 blink::WebScreenOrientationType); |
| 184 | 183 |
| 185 WebDatabaseObserverImpl* web_database_observer_impl() { | 184 WebDatabaseObserverImpl* web_database_observer_impl() { |
| 186 return web_database_observer_impl_.get(); | 185 return web_database_observer_impl_.get(); |
| 187 } | 186 } |
| 188 | 187 |
| 189 private: | 188 private: |
| 190 bool CheckPreparsedJsCachingEnabled() const; | 189 bool CheckPreparsedJsCachingEnabled() const; |
| 191 | 190 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
| 232 | 231 |
| 233 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 232 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 234 | 233 |
| 235 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
| 236 }; | 235 }; |
| 237 | 236 |
| 238 } // namespace content | 237 } // namespace content |
| 239 | 238 |
| 240 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |