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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 135 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
136 virtual WebKit::WebGraphicsContext3DProvider* | 136 virtual WebKit::WebGraphicsContext3DProvider* |
137 createSharedOffscreenGraphicsContext3DProvider(); | 137 createSharedOffscreenGraphicsContext3DProvider(); |
138 virtual WebKit::WebCompositorSupport* compositorSupport(); | 138 virtual WebKit::WebCompositorSupport* compositorSupport(); |
139 virtual WebKit::WebString convertIDNToUnicode( | 139 virtual WebKit::WebString convertIDNToUnicode( |
140 const WebKit::WebString& host, const WebKit::WebString& languages); | 140 const WebKit::WebString& host, const WebKit::WebString& languages); |
141 virtual void setDeviceMotionListener( | 141 virtual void setDeviceMotionListener( |
142 WebKit::WebDeviceMotionListener* listener) OVERRIDE; | 142 WebKit::WebDeviceMotionListener* listener) OVERRIDE; |
143 virtual WebKit::WebCrypto* crypto() OVERRIDE; | 143 virtual WebKit::WebCrypto* crypto() OVERRIDE; |
144 | 144 |
| 145 #if defined(OS_ANDROID) |
| 146 virtual void vibrate(unsigned int milliseconds); |
| 147 virtual void cancelVibration(); |
| 148 #endif // defined(OS_ANDROID) |
| 149 |
145 // Disables the WebSandboxSupport implementation for testing. | 150 // Disables the WebSandboxSupport implementation for testing. |
146 // Tests that do not set up a full sandbox environment should call | 151 // Tests that do not set up a full sandbox environment should call |
147 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 152 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
148 // of this class, to ensure that we don't attempt to use sandbox-related | 153 // of this class, to ensure that we don't attempt to use sandbox-related |
149 // file descriptors or other resources. | 154 // file descriptors or other resources. |
150 // | 155 // |
151 // Returns the previous |enable| value. | 156 // Returns the previous |enable| value. |
152 static bool SetSandboxEnabledForTesting(bool enable); | 157 static bool SetSandboxEnabledForTesting(bool enable); |
153 | 158 |
154 // Set WebGamepads to return when sampleGamepads() is invoked. | 159 // Set WebGamepads to return when sampleGamepads() is invoked. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 210 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
206 | 211 |
207 webkit::WebCompositorSupportImpl compositor_support_; | 212 webkit::WebCompositorSupportImpl compositor_support_; |
208 | 213 |
209 scoped_ptr<WebCryptoImpl> web_crypto_; | 214 scoped_ptr<WebCryptoImpl> web_crypto_; |
210 }; | 215 }; |
211 | 216 |
212 } // namespace content | 217 } // namespace content |
213 | 218 |
214 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 219 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |