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