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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual bool processMemorySizesInBytes( | 122 virtual bool processMemorySizesInBytes( |
123 size_t* private_bytes, size_t* shared_bytes); | 123 size_t* private_bytes, size_t* shared_bytes); |
124 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 124 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
125 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 125 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
126 virtual WebKit::WebGraphicsContext3DProvider* | 126 virtual WebKit::WebGraphicsContext3DProvider* |
127 createSharedOffscreenGraphicsContext3DProvider(); | 127 createSharedOffscreenGraphicsContext3DProvider(); |
128 virtual WebKit::WebCompositorSupport* compositorSupport(); | 128 virtual WebKit::WebCompositorSupport* compositorSupport(); |
129 virtual WebKit::WebString convertIDNToUnicode( | 129 virtual WebKit::WebString convertIDNToUnicode( |
130 const WebKit::WebString& host, const WebKit::WebString& languages); | 130 const WebKit::WebString& host, const WebKit::WebString& languages); |
131 | 131 |
| 132 virtual void vibrate(unsigned int milliseconds) OVERRIDE; |
| 133 virtual void cancelVibration() OVERRIDE; |
| 134 |
132 // Disables the WebSandboxSupport implementation for testing. | 135 // Disables the WebSandboxSupport implementation for testing. |
133 // Tests that do not set up a full sandbox environment should call | 136 // Tests that do not set up a full sandbox environment should call |
134 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 137 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
135 // of this class, to ensure that we don't attempt to use sandbox-related | 138 // of this class, to ensure that we don't attempt to use sandbox-related |
136 // file descriptors or other resources. | 139 // file descriptors or other resources. |
137 // | 140 // |
138 // Returns the previous |enable| value. | 141 // Returns the previous |enable| value. |
139 static bool SetSandboxEnabledForTesting(bool enable); | 142 static bool SetSandboxEnabledForTesting(bool enable); |
140 | 143 |
141 // Set WebGamepads to return when sampleGamepads() is invoked. | 144 // Set WebGamepads to return when sampleGamepads() is invoked. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 186 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
184 | 187 |
185 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 188 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
186 | 189 |
187 webkit::WebCompositorSupportImpl compositor_support_; | 190 webkit::WebCompositorSupportImpl compositor_support_; |
188 }; | 191 }; |
189 | 192 |
190 } // namespace content | 193 } // namespace content |
191 | 194 |
192 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 195 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |