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" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien t.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien t.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" | |
14 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
15 | 16 |
16 namespace WebKit { | 17 namespace WebKit { |
17 class WebApplicationCacheHost; | 18 class WebApplicationCacheHost; |
18 class WebApplicationCacheHostClient; | 19 class WebApplicationCacheHostClient; |
19 class WebFileSystemCallbacks; | 20 class WebFileSystemCallbacks; |
20 class WebFrame; | 21 class WebFrame; |
21 class WebGamepads; | 22 class WebGamepads; |
22 class WebKitPlatformSupport; | 23 class WebKitPlatformSupport; |
23 class WebMediaPlayer; | 24 class WebMediaPlayer; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 void SetUpGLBindings(GLBindingPreferences); | 92 void SetUpGLBindings(GLBindingPreferences); |
92 | 93 |
93 enum GraphicsContext3DImplementation { | 94 enum GraphicsContext3DImplementation { |
94 IN_PROCESS, | 95 IN_PROCESS, |
95 IN_PROCESS_COMMAND_BUFFER | 96 IN_PROCESS_COMMAND_BUFFER |
96 }; | 97 }; |
97 // Registers which GraphicsContext3D Implementation to use. | 98 // Registers which GraphicsContext3D Implementation to use. |
98 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); | 99 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); |
99 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); | 100 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); |
100 | 101 |
102 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( | |
Ken Russell (switch to Gerrit)
2012/01/19 20:31:21
Who calls this? Is the intent that TestWebViewDele
piman
2012/01/19 20:48:26
See webkit patch, this is for DRT, its WebViewHost
| |
103 WebKit::WebGraphicsContext3D::Attributes attributes, | |
104 WebKit::WebView* web_view, | |
105 bool direct); | |
106 | |
101 // ------- URL load mocking. | 107 // ------- URL load mocking. |
102 // 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. |
103 // |response| is the response provided with the contents. | 109 // |response| is the response provided with the contents. |
104 void RegisterMockedURL(const WebKit::WebURL& url, | 110 void RegisterMockedURL(const WebKit::WebURL& url, |
105 const WebKit::WebURLResponse& response, | 111 const WebKit::WebURLResponse& response, |
106 const WebKit::WebString& file_path); | 112 const WebKit::WebString& file_path); |
107 | 113 |
108 // Unregisters URLs so they are no longer mocked. | 114 // Unregisters URLs so they are no longer mocked. |
109 void UnregisterMockedURL(const WebKit::WebURL& url); | 115 void UnregisterMockedURL(const WebKit::WebURL& url); |
110 void UnregisterAllMockedURLs(); | 116 void UnregisterAllMockedURLs(); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 | 239 |
234 void EnableWebCoreLogChannels(const std::string& channels); | 240 void EnableWebCoreLogChannels(const std::string& channels); |
235 | 241 |
236 // - Gamepad | 242 // - Gamepad |
237 | 243 |
238 void SetGamepadData(const WebKit::WebGamepads& pads); | 244 void SetGamepadData(const WebKit::WebGamepads& pads); |
239 | 245 |
240 } // namespace webkit_support | 246 } // namespace webkit_support |
241 | 247 |
242 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 248 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
OLD | NEW |