| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Forces the screen orientation for testing purposes. | 180 // Forces the screen orientation for testing purposes. |
| 181 static void SetMockScreenOrientationForTesting( | 181 static void SetMockScreenOrientationForTesting( |
| 182 blink::WebScreenOrientationType); | 182 blink::WebScreenOrientationType); |
| 183 // Resets the mock screen orientation data used for testing. |
| 184 static void ResetMockScreenOrientationForTesting(); |
| 183 | 185 |
| 184 WebDatabaseObserverImpl* web_database_observer_impl() { | 186 WebDatabaseObserverImpl* web_database_observer_impl() { |
| 185 return web_database_observer_impl_.get(); | 187 return web_database_observer_impl_.get(); |
| 186 } | 188 } |
| 187 | 189 |
| 188 private: | 190 private: |
| 189 bool CheckPreparsedJsCachingEnabled() const; | 191 bool CheckPreparsedJsCachingEnabled() const; |
| 190 | 192 |
| 191 scoped_ptr<RendererClipboardClient> clipboard_client_; | 193 scoped_ptr<RendererClipboardClient> clipboard_client_; |
| 192 scoped_ptr<WebClipboardImpl> clipboard_; | 194 scoped_ptr<WebClipboardImpl> clipboard_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 232 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
| 231 | 233 |
| 232 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 234 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 233 | 235 |
| 234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 236 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
| 235 }; | 237 }; |
| 236 | 238 |
| 237 } // namespace content | 239 } // namespace content |
| 238 | 240 |
| 239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 241 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |