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