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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // TearDownTestEnvironment() calls WebKit::shutdown(). | 58 // TearDownTestEnvironment() calls WebKit::shutdown(). |
59 // SetUpTestEnvironmentForUnitTests() should be used when running in a | 59 // SetUpTestEnvironmentForUnitTests() should be used when running in a |
60 // TestSuite, in which case no AtExitManager is created and ICU is not | 60 // TestSuite, in which case no AtExitManager is created and ICU is not |
61 // initialized (as it is already done by the TestSuite). | 61 // initialized (as it is already done by the TestSuite). |
62 void SetUpTestEnvironment(); | 62 void SetUpTestEnvironment(); |
63 void SetUpTestEnvironmentForUnitTests(); | 63 void SetUpTestEnvironmentForUnitTests(); |
64 void SetUpTestEnvironment(WebKit::Platform* shadow_platform_delegate); | 64 void SetUpTestEnvironment(WebKit::Platform* shadow_platform_delegate); |
65 void SetUpTestEnvironmentForUnitTests( | 65 void SetUpTestEnvironmentForUnitTests( |
66 WebKit::Platform* shadow_platform_delegate); | 66 WebKit::Platform* shadow_platform_delegate); |
67 void TearDownTestEnvironment(); | 67 void TearDownTestEnvironment(); |
| 68 void ResetTestEnvironment(); |
68 | 69 |
69 // Returns a pointer to a WebKitPlatformSupport implementation for | 70 // Returns a pointer to a WebKitPlatformSupport implementation for |
70 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. | 71 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. |
71 // This returns a pointer to a static instance. Don't delete it. | 72 // This returns a pointer to a static instance. Don't delete it. |
72 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport(); | 73 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport(); |
73 | 74 |
74 // This is used by WebFrameClient::createPlugin(). | 75 // This is used by WebFrameClient::createPlugin(). |
75 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, | 76 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, |
76 const WebKit::WebPluginParams& params); | 77 const WebKit::WebPluginParams& params); |
77 | 78 |
78 // This is used by WebFrameClient::createMediaPlayer(). | 79 // This is used by WebFrameClient::createMediaPlayer(). |
79 WebKit::WebMediaPlayer* CreateMediaPlayer( | 80 WebKit::WebMediaPlayer* CreateMediaPlayer( |
80 WebKit::WebFrame* frame, | 81 WebKit::WebFrame* frame, |
81 const WebKit::WebURL& url, | 82 const WebKit::WebURL& url, |
82 WebKit::WebMediaPlayerClient* client, | 83 WebKit::WebMediaPlayerClient* client, |
83 webkit_media::MediaStreamClient* media_stream_client); | 84 webkit_media::MediaStreamClient* media_stream_client); |
84 | 85 |
85 // This is used by WebFrameClient::createMediaPlayer(). | 86 // This is used by WebFrameClient::createMediaPlayer(). |
86 WebKit::WebMediaPlayer* CreateMediaPlayer( | 87 WebKit::WebMediaPlayer* CreateMediaPlayer( |
87 WebKit::WebFrame* frame, | 88 WebKit::WebFrame* frame, |
88 const WebKit::WebURL& url, | 89 const WebKit::WebURL& url, |
89 WebKit::WebMediaPlayerClient* client); | 90 WebKit::WebMediaPlayerClient* client); |
90 | 91 |
| 92 // DEPRECATED: Use ResetTestEnvironment() instead. |
91 #if defined(OS_ANDROID) | 93 #if defined(OS_ANDROID) |
92 void ReleaseMediaResources(); | 94 void ReleaseMediaResources(); |
93 #endif | 95 #endif |
94 | 96 |
95 // This is used by WebFrameClient::createApplicationCacheHost(). | 97 // This is used by WebFrameClient::createApplicationCacheHost(). |
96 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost( | 98 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost( |
97 WebKit::WebFrame* frame, WebKit::WebApplicationCacheHostClient* client); | 99 WebKit::WebFrame* frame, WebKit::WebApplicationCacheHostClient* client); |
98 | 100 |
99 // This is used by WebViewHost::createSessionStorageNamespace(). | 101 // This is used by WebViewHost::createSessionStorageNamespace(). |
100 WebKit::WebStorageNamespace* CreateSessionStorageNamespace(unsigned quota); | 102 WebKit::WebStorageNamespace* CreateSessionStorageNamespace(unsigned quota); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 279 |
278 void EnableWebCoreLogChannels(const std::string& channels); | 280 void EnableWebCoreLogChannels(const std::string& channels); |
279 | 281 |
280 // - Gamepad | 282 // - Gamepad |
281 | 283 |
282 void SetGamepadData(const WebKit::WebGamepads& pads); | 284 void SetGamepadData(const WebKit::WebGamepads& pads); |
283 | 285 |
284 } // namespace webkit_support | 286 } // namespace webkit_support |
285 | 287 |
286 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 288 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
OLD | NEW |