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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 virtual void setDeviceMotionListener( | 138 virtual void setDeviceMotionListener( |
139 blink::WebDeviceMotionListener* listener) OVERRIDE; | 139 blink::WebDeviceMotionListener* listener) OVERRIDE; |
140 virtual void setDeviceOrientationListener( | 140 virtual void setDeviceOrientationListener( |
141 blink::WebDeviceOrientationListener* listener) OVERRIDE; | 141 blink::WebDeviceOrientationListener* listener) OVERRIDE; |
142 virtual blink::WebCrypto* crypto() OVERRIDE; | 142 virtual blink::WebCrypto* crypto() OVERRIDE; |
143 virtual void queryStorageUsageAndQuota( | 143 virtual void queryStorageUsageAndQuota( |
144 const blink::WebURL& storage_partition, | 144 const blink::WebURL& storage_partition, |
145 blink::WebStorageQuotaType, | 145 blink::WebStorageQuotaType, |
146 blink::WebStorageQuotaCallbacks*) OVERRIDE; | 146 blink::WebStorageQuotaCallbacks*) OVERRIDE; |
147 | 147 |
148 #if defined(OS_ANDROID) | |
149 virtual void vibrate(unsigned int milliseconds); | 148 virtual void vibrate(unsigned int milliseconds); |
150 virtual void cancelVibration(); | 149 virtual void cancelVibration(); |
151 #endif // defined(OS_ANDROID) | |
152 | 150 |
153 // Disables the WebSandboxSupport implementation for testing. | 151 // Disables the WebSandboxSupport implementation for testing. |
154 // Tests that do not set up a full sandbox environment should call | 152 // Tests that do not set up a full sandbox environment should call |
155 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 153 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
156 // of this class, to ensure that we don't attempt to use sandbox-related | 154 // of this class, to ensure that we don't attempt to use sandbox-related |
157 // file descriptors or other resources. | 155 // file descriptors or other resources. |
158 // | 156 // |
159 // Returns the previous |enable| value. | 157 // Returns the previous |enable| value. |
160 static bool SetSandboxEnabledForTesting(bool enable); | 158 static bool SetSandboxEnabledForTesting(bool enable); |
161 | 159 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 204 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
207 | 205 |
208 webkit::WebCompositorSupportImpl compositor_support_; | 206 webkit::WebCompositorSupportImpl compositor_support_; |
209 | 207 |
210 scoped_ptr<WebCryptoImpl> web_crypto_; | 208 scoped_ptr<WebCryptoImpl> web_crypto_; |
211 }; | 209 }; |
212 | 210 |
213 } // namespace content | 211 } // namespace content |
214 | 212 |
215 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 213 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |