| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 blink::WebDeviceOrientationListener* listener) OVERRIDE; | 152 blink::WebDeviceOrientationListener* listener) OVERRIDE; |
| 153 virtual blink::WebCrypto* crypto() OVERRIDE; | 153 virtual blink::WebCrypto* crypto() OVERRIDE; |
| 154 virtual void queryStorageUsageAndQuota( | 154 virtual void queryStorageUsageAndQuota( |
| 155 const blink::WebURL& storage_partition, | 155 const blink::WebURL& storage_partition, |
| 156 blink::WebStorageQuotaType, | 156 blink::WebStorageQuotaType, |
| 157 blink::WebStorageQuotaCallbacks) OVERRIDE; | 157 blink::WebStorageQuotaCallbacks) OVERRIDE; |
| 158 virtual void vibrate(unsigned int milliseconds); | 158 virtual void vibrate(unsigned int milliseconds); |
| 159 virtual void cancelVibration(); | 159 virtual void cancelVibration(); |
| 160 virtual void setScreenOrientationListener( | 160 virtual void setScreenOrientationListener( |
| 161 blink::WebScreenOrientationListener*) OVERRIDE; | 161 blink::WebScreenOrientationListener*) OVERRIDE; |
| 162 virtual void lockOrientation(blink::WebScreenOrientations) OVERRIDE; |
| 163 virtual void unlockOrientation() OVERRIDE; |
| 162 | 164 |
| 163 // Disables the WebSandboxSupport implementation for testing. | 165 // Disables the WebSandboxSupport implementation for testing. |
| 164 // Tests that do not set up a full sandbox environment should call | 166 // Tests that do not set up a full sandbox environment should call |
| 165 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 167 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 166 // of this class, to ensure that we don't attempt to use sandbox-related | 168 // of this class, to ensure that we don't attempt to use sandbox-related |
| 167 // file descriptors or other resources. | 169 // file descriptors or other resources. |
| 168 // | 170 // |
| 169 // Returns the previous |enable| value. | 171 // Returns the previous |enable| value. |
| 170 static bool SetSandboxEnabledForTesting(bool enable); | 172 static bool SetSandboxEnabledForTesting(bool enable); |
| 171 | 173 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 scoped_ptr<WebCryptoImpl> web_crypto_; | 230 scoped_ptr<WebCryptoImpl> web_crypto_; |
| 229 | 231 |
| 230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 232 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
| 231 | 233 |
| 232 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
| 233 }; | 235 }; |
| 234 | 236 |
| 235 } // namespace content | 237 } // namespace content |
| 236 | 238 |
| 237 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |