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