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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 virtual bool processMemorySizesInBytes( | 130 virtual bool processMemorySizesInBytes( |
131 size_t* private_bytes, size_t* shared_bytes); | 131 size_t* private_bytes, size_t* shared_bytes); |
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 | 139 |
140 virtual void vibrate(unsigned int milliseconds) OVERRIDE; | |
jam
2013/07/01 18:14:40
nit: follow the convention in this file and don't
Michael van Ouwerkerk
2013/07/02 17:52:39
Done.
| |
141 virtual void cancelVibration() OVERRIDE; | |
142 | |
140 // Disables the WebSandboxSupport implementation for testing. | 143 // Disables the WebSandboxSupport implementation for testing. |
141 // Tests that do not set up a full sandbox environment should call | 144 // Tests that do not set up a full sandbox environment should call |
142 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 145 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
143 // of this class, to ensure that we don't attempt to use sandbox-related | 146 // of this class, to ensure that we don't attempt to use sandbox-related |
144 // file descriptors or other resources. | 147 // file descriptors or other resources. |
145 // | 148 // |
146 // Returns the previous |enable| value. | 149 // Returns the previous |enable| value. |
147 static bool SetSandboxEnabledForTesting(bool enable); | 150 static bool SetSandboxEnabledForTesting(bool enable); |
148 | 151 |
149 // Set WebGamepads to return when sampleGamepads() is invoked. | 152 // Set WebGamepads to return when sampleGamepads() is invoked. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 196 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
194 | 197 |
195 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 198 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
196 | 199 |
197 webkit::WebCompositorSupportImpl compositor_support_; | 200 webkit::WebCompositorSupportImpl compositor_support_; |
198 }; | 201 }; |
199 | 202 |
200 } // namespace content | 203 } // namespace content |
201 | 204 |
202 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 205 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |