| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // Returns a pointer to a Platform implementation for | 72 // Returns a pointer to a Platform implementation for |
| 73 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. | 73 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. |
| 74 // This returns a pointer to a static instance. Don't delete it. | 74 // This returns a pointer to a static instance. Don't delete it. |
| 75 WebKit::Platform* GetWebKitPlatformSupport(); | 75 WebKit::Platform* GetWebKitPlatformSupport(); |
| 76 | 76 |
| 77 // This is used by WebFrameClient::createPlugin(). | 77 // This is used by WebFrameClient::createPlugin(). |
| 78 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, | 78 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, |
| 79 const WebKit::WebPluginParams& params); | 79 const WebKit::WebPluginParams& params); |
| 80 | 80 |
| 81 // This is used by WebFrameClient::createApplicationCacheHost(). | |
| 82 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost( | |
| 83 WebKit::WebFrame* frame, WebKit::WebApplicationCacheHostClient* client); | |
| 84 | |
| 85 // This is used by WebViewHost::createSessionStorageNamespace(). | |
| 86 WebKit::WebStorageNamespace* CreateSessionStorageNamespace(unsigned quota); | |
| 87 | |
| 88 // Returns the root directory of the WebKit code. | 81 // Returns the root directory of the WebKit code. |
| 89 WebKit::WebString GetWebKitRootDir(); | 82 WebKit::WebString GetWebKitRootDir(); |
| 90 | 83 |
| 91 enum GLBindingPreferences { | 84 enum GLBindingPreferences { |
| 92 GL_BINDING_DEFAULT, | 85 GL_BINDING_DEFAULT, |
| 93 GL_BINDING_SOFTWARE_RENDERER | 86 GL_BINDING_SOFTWARE_RENDERER |
| 94 }; | 87 }; |
| 95 void SetUpGLBindings(GLBindingPreferences); | 88 void SetUpGLBindings(GLBindingPreferences); |
| 96 | 89 |
| 97 enum GraphicsContext3DImplementation { | 90 enum GraphicsContext3DImplementation { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // A wrapper of net::EscapePath(). | 201 // A wrapper of net::EscapePath(). |
| 209 std::string EscapePath(const std::string& path); | 202 std::string EscapePath(const std::string& path); |
| 210 // Make an error description for layout tests. | 203 // Make an error description for layout tests. |
| 211 std::string MakeURLErrorDescription(const WebKit::WebURLError& error); | 204 std::string MakeURLErrorDescription(const WebKit::WebURLError& error); |
| 212 // Creates WebURLError for an aborted request. | 205 // Creates WebURLError for an aborted request. |
| 213 WebKit::WebURLError CreateCancelledError(const WebKit::WebURLRequest& request); | 206 WebKit::WebURLError CreateCancelledError(const WebKit::WebURLRequest& request); |
| 214 // Create "extra data" for a ResourceRequest required by Chrome's network stack. | 207 // Create "extra data" for a ResourceRequest required by Chrome's network stack. |
| 215 WebKit::WebURLRequest::ExtraData* CreateWebURLRequestExtraData( | 208 WebKit::WebURLRequest::ExtraData* CreateWebURLRequestExtraData( |
| 216 WebKit::WebReferrerPolicy referrer_policy); | 209 WebKit::WebReferrerPolicy referrer_policy); |
| 217 | 210 |
| 218 // - Database | |
| 219 void SetDatabaseQuota(int quota); | |
| 220 void ClearAllDatabases(); | |
| 221 | |
| 222 // - Resource loader | |
| 223 void SetAcceptAllCookies(bool accept); | |
| 224 | |
| 225 // - Theme engine | 211 // - Theme engine |
| 226 #if defined(OS_WIN) || defined(OS_MACOSX) | 212 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 227 void SetThemeEngine(WebKit::WebThemeEngine* engine); | 213 void SetThemeEngine(WebKit::WebThemeEngine* engine); |
| 228 WebKit::WebThemeEngine* GetThemeEngine(); | 214 WebKit::WebThemeEngine* GetThemeEngine(); |
| 229 #endif | 215 #endif |
| 230 | 216 |
| 231 // - DevTools | 217 // - DevTools |
| 232 WebKit::WebURL GetDevToolsPathAsURL(); | 218 WebKit::WebURL GetDevToolsPathAsURL(); |
| 233 | 219 |
| 234 // - FileSystem | |
| 235 void OpenFileSystem(WebKit::WebFrame* frame, | |
| 236 WebKit::WebFileSystemType type, | |
| 237 long long size, | |
| 238 bool create, | |
| 239 WebKit::WebFileSystemCallbacks* callbacks); | |
| 240 void DeleteFileSystem(WebKit::WebFrame* frame, | |
| 241 WebKit::WebFileSystemType type, | |
| 242 WebKit::WebFileSystemCallbacks* callbacks); | |
| 243 | |
| 244 // Returns a filesystem ID for the newly created isolated filesystem. | 220 // Returns a filesystem ID for the newly created isolated filesystem. |
| 245 WebKit::WebString RegisterIsolatedFileSystem( | 221 WebKit::WebString RegisterIsolatedFileSystem( |
| 246 const WebKit::WebVector<WebKit::WebString>& filenames); | 222 const WebKit::WebVector<WebKit::WebString>& filenames); |
| 247 | 223 |
| 248 // -------- Keyboard code | 224 // -------- Keyboard code |
| 249 enum { | 225 enum { |
| 250 VKEY_LEFT = ui::VKEY_LEFT, | 226 VKEY_LEFT = ui::VKEY_LEFT, |
| 251 VKEY_RIGHT = ui::VKEY_RIGHT, | 227 VKEY_RIGHT = ui::VKEY_RIGHT, |
| 252 VKEY_UP = ui::VKEY_UP, | 228 VKEY_UP = ui::VKEY_UP, |
| 253 VKEY_DOWN = ui::VKEY_DOWN, | 229 VKEY_DOWN = ui::VKEY_DOWN, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 270 | 246 |
| 271 void EnableWebCoreLogChannels(const std::string& channels); | 247 void EnableWebCoreLogChannels(const std::string& channels); |
| 272 | 248 |
| 273 // - Gamepad | 249 // - Gamepad |
| 274 | 250 |
| 275 void SetGamepadData(const WebKit::WebGamepads& pads); | 251 void SetGamepadData(const WebKit::WebGamepads& pads); |
| 276 | 252 |
| 277 } // namespace webkit_support | 253 } // namespace webkit_support |
| 278 | 254 |
| 279 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 255 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
| OLD | NEW |