| 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 WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 5 #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
| 6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 IN_PROCESS_COMMAND_BUFFER | 107 IN_PROCESS_COMMAND_BUFFER |
| 108 }; | 108 }; |
| 109 // Registers which GraphicsContext3D Implementation to use. | 109 // Registers which GraphicsContext3D Implementation to use. |
| 110 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); | 110 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); |
| 111 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); | 111 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); |
| 112 | 112 |
| 113 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( | 113 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( |
| 114 const WebKit::WebGraphicsContext3D::Attributes& attributes, | 114 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
| 115 WebKit::WebView* web_view); | 115 WebKit::WebView* web_view); |
| 116 | 116 |
| 117 // Deprecated, call the version above. | |
| 118 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( | |
| 119 const WebKit::WebGraphicsContext3D::Attributes& attributes, | |
| 120 WebKit::WebView* web_view, | |
| 121 bool direct); | |
| 122 | |
| 123 | |
| 124 // ------- URL load mocking. | 117 // ------- URL load mocking. |
| 125 // Registers the file at |file_path| to be served when |url| is requested. | 118 // Registers the file at |file_path| to be served when |url| is requested. |
| 126 // |response| is the response provided with the contents. | 119 // |response| is the response provided with the contents. |
| 127 void RegisterMockedURL(const WebKit::WebURL& url, | 120 void RegisterMockedURL(const WebKit::WebURL& url, |
| 128 const WebKit::WebURLResponse& response, | 121 const WebKit::WebURLResponse& response, |
| 129 const WebKit::WebString& file_path); | 122 const WebKit::WebString& file_path); |
| 130 | 123 |
| 131 // Unregisters URLs so they are no longer mocked. | 124 // Unregisters URLs so they are no longer mocked. |
| 132 void UnregisterMockedURL(const WebKit::WebURL& url); | 125 void UnregisterMockedURL(const WebKit::WebURL& url); |
| 133 void UnregisterAllMockedURLs(); | 126 void UnregisterAllMockedURLs(); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 257 |
| 265 void EnableWebCoreLogChannels(const std::string& channels); | 258 void EnableWebCoreLogChannels(const std::string& channels); |
| 266 | 259 |
| 267 // - Gamepad | 260 // - Gamepad |
| 268 | 261 |
| 269 void SetGamepadData(const WebKit::WebGamepads& pads); | 262 void SetGamepadData(const WebKit::WebGamepads& pads); |
| 270 | 263 |
| 271 } // namespace webkit_support | 264 } // namespace webkit_support |
| 272 | 265 |
| 273 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 266 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
| OLD | NEW |