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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 const blink::WebString& host, const blink::WebString& languages); | 141 const blink::WebString& host, const blink::WebString& languages); |
142 virtual void setDeviceMotionListener( | 142 virtual void setDeviceMotionListener( |
143 blink::WebDeviceMotionListener* listener) OVERRIDE; | 143 blink::WebDeviceMotionListener* listener) OVERRIDE; |
144 virtual void setDeviceOrientationListener( | 144 virtual void setDeviceOrientationListener( |
145 blink::WebDeviceOrientationListener* listener) OVERRIDE; | 145 blink::WebDeviceOrientationListener* listener) OVERRIDE; |
146 virtual blink::WebCrypto* crypto() OVERRIDE; | 146 virtual blink::WebCrypto* crypto() OVERRIDE; |
147 virtual void queryStorageUsageAndQuota( | 147 virtual void queryStorageUsageAndQuota( |
148 const blink::WebURL& storage_partition, | 148 const blink::WebURL& storage_partition, |
149 blink::WebStorageQuotaType, | 149 blink::WebStorageQuotaType, |
150 blink::WebStorageQuotaCallbacks*) OVERRIDE; | 150 blink::WebStorageQuotaCallbacks*) OVERRIDE; |
151 | |
152 #if defined(OS_ANDROID) | |
153 virtual void vibrate(unsigned int milliseconds); | 151 virtual void vibrate(unsigned int milliseconds); |
154 virtual void cancelVibration(); | 152 virtual void cancelVibration(); |
155 #endif // defined(OS_ANDROID) | |
156 | 153 |
157 // Disables the WebSandboxSupport implementation for testing. | 154 // Disables the WebSandboxSupport implementation for testing. |
158 // Tests that do not set up a full sandbox environment should call | 155 // Tests that do not set up a full sandbox environment should call |
159 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 156 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
160 // of this class, to ensure that we don't attempt to use sandbox-related | 157 // of this class, to ensure that we don't attempt to use sandbox-related |
161 // file descriptors or other resources. | 158 // file descriptors or other resources. |
162 // | 159 // |
163 // Returns the previous |enable| value. | 160 // Returns the previous |enable| value. |
164 static bool SetSandboxEnabledForTesting(bool enable); | 161 static bool SetSandboxEnabledForTesting(bool enable); |
165 | 162 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 215 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
219 | 216 |
220 webkit::WebCompositorSupportImpl compositor_support_; | 217 webkit::WebCompositorSupportImpl compositor_support_; |
221 | 218 |
222 scoped_ptr<WebCryptoImpl> web_crypto_; | 219 scoped_ptr<WebCryptoImpl> web_crypto_; |
223 }; | 220 }; |
224 | 221 |
225 } // namespace content | 222 } // namespace content |
226 | 223 |
227 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 224 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |