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/Platform/chromium/public/Platform.h" | |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h " | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h " |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien t.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien t.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
18 #include "ui/base/keycodes/keyboard_codes.h" | 19 #include "ui/base/keycodes/keyboard_codes.h" |
19 | 20 |
20 namespace WebKit { | 21 namespace WebKit { |
21 class WebApplicationCacheHost; | 22 class WebApplicationCacheHost; |
(...skipping 29 matching lines...) Expand all Loading... | |
51 // Initializes or terminates a test environment. | 52 // Initializes or terminates a test environment. |
52 // |unit_test_mode| should be set to true when running in a TestSuite, in which | 53 // |unit_test_mode| should be set to true when running in a TestSuite, in which |
53 // case no AtExitManager is created and ICU is not initialized (as it is already | 54 // case no AtExitManager is created and ICU is not initialized (as it is already |
54 // done by the TestSuite). | 55 // done by the TestSuite). |
55 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls | 56 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls |
56 // WebKit::initialize(). | 57 // WebKit::initialize(). |
57 // TearDownTestEnvironment() calls WebKit::shutdown(). | 58 // TearDownTestEnvironment() calls WebKit::shutdown(). |
58 // SetUpTestEnvironmentForUnitTests() should be used when running in a | 59 // SetUpTestEnvironmentForUnitTests() should be used when running in a |
59 // 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 |
60 // initialized (as it is already done by the TestSuite). | 61 // initialized (as it is already done by the TestSuite). |
61 void SetUpTestEnvironment(); | 62 void SetUpTestEnvironment(WebKit::Platform* shadow_platform_support = NULL); |
62 void SetUpTestEnvironmentForUnitTests(); | 63 void SetUpTestEnvironmentForUnitTests( |
64 WebKit::Platform* shadow_platform_support = NULL); | |
tony
2012/07/11 17:56:42
The style guide says no default arguments. Having
Tommy Widenflycht
2012/07/12 13:40:58
Done.
| |
63 void TearDownTestEnvironment(); | 65 void TearDownTestEnvironment(); |
64 | 66 |
65 // Returns a pointer to a WebKitPlatformSupport implementation for | 67 // Returns a pointer to a WebKitPlatformSupport implementation for |
66 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. | 68 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. |
67 // This returns a pointer to a static instance. Don't delete it. | 69 // This returns a pointer to a static instance. Don't delete it. |
68 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport(); | 70 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport(); |
69 | 71 |
70 // This is used by WebFrameClient::createPlugin(). | 72 // This is used by WebFrameClient::createPlugin(). |
71 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, | 73 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, |
72 const WebKit::WebPluginParams& params); | 74 const WebKit::WebPluginParams& params); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 | 259 |
258 void EnableWebCoreLogChannels(const std::string& channels); | 260 void EnableWebCoreLogChannels(const std::string& channels); |
259 | 261 |
260 // - Gamepad | 262 // - Gamepad |
261 | 263 |
262 void SetGamepadData(const WebKit::WebGamepads& pads); | 264 void SetGamepadData(const WebKit::WebGamepads& pads); |
263 | 265 |
264 } // namespace webkit_support | 266 } // namespace webkit_support |
265 | 267 |
266 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 268 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
OLD | NEW |