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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 enum GraphicsContext3DImplementation { | 94 enum GraphicsContext3DImplementation { |
95 IN_PROCESS, | 95 IN_PROCESS, |
96 IN_PROCESS_COMMAND_BUFFER | 96 IN_PROCESS_COMMAND_BUFFER |
97 }; | 97 }; |
98 // Registers which GraphicsContext3D Implementation to use. | 98 // Registers which GraphicsContext3D Implementation to use. |
99 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); | 99 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); |
100 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); | 100 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); |
101 | 101 |
102 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( | 102 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( |
103 WebKit::WebGraphicsContext3D::Attributes attributes, | 103 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
104 WebKit::WebView* web_view, | 104 WebKit::WebView* web_view, |
105 bool direct); | 105 bool direct); |
106 | 106 |
107 // ------- URL load mocking. | 107 // ------- URL load mocking. |
108 // Registers the file at |file_path| to be served when |url| is requested. | 108 // Registers the file at |file_path| to be served when |url| is requested. |
109 // |response| is the response provided with the contents. | 109 // |response| is the response provided with the contents. |
110 void RegisterMockedURL(const WebKit::WebURL& url, | 110 void RegisterMockedURL(const WebKit::WebURL& url, |
111 const WebKit::WebURLResponse& response, | 111 const WebKit::WebURLResponse& response, |
112 const WebKit::WebString& file_path); | 112 const WebKit::WebString& file_path); |
113 | 113 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 void EnableWebCoreLogChannels(const std::string& channels); | 240 void EnableWebCoreLogChannels(const std::string& channels); |
241 | 241 |
242 // - Gamepad | 242 // - Gamepad |
243 | 243 |
244 void SetGamepadData(const WebKit::WebGamepads& pads); | 244 void SetGamepadData(const WebKit::WebGamepads& pads); |
245 | 245 |
246 } // namespace webkit_support | 246 } // namespace webkit_support |
247 | 247 |
248 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 248 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
OLD | NEW |