Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(743)

Side by Side Diff: webkit/support/webkit_support.h

Issue 10703114: Adding support for overriding TestWebKitPlatformSupport in DumpRenderTree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Fixed review comments" Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
62 void SetUpTestEnvironmentForUnitTests(); 63 void SetUpTestEnvironmentForUnitTests();
64 void SetUpTestEnvironment(WebKit::Platform* shadow_platform_delegate);
65 void SetUpTestEnvironmentForUnitTests(
66 WebKit::Platform* shadow_platform_delegate);
63 void TearDownTestEnvironment(); 67 void TearDownTestEnvironment();
64 68
65 // Returns a pointer to a WebKitPlatformSupport implementation for 69 // Returns a pointer to a WebKitPlatformSupport implementation for
66 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. 70 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this.
67 // This returns a pointer to a static instance. Don't delete it. 71 // This returns a pointer to a static instance. Don't delete it.
68 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport(); 72 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport();
69 73
70 // This is used by WebFrameClient::createPlugin(). 74 // This is used by WebFrameClient::createPlugin().
71 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, 75 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame,
72 const WebKit::WebPluginParams& params); 76 const WebKit::WebPluginParams& params);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 264
261 void EnableWebCoreLogChannels(const std::string& channels); 265 void EnableWebCoreLogChannels(const std::string& channels);
262 266
263 // - Gamepad 267 // - Gamepad
264 268
265 void SetGamepadData(const WebKit::WebGamepads& pads); 269 void SetGamepadData(const WebKit::WebGamepads& pads);
266 270
267 } // namespace webkit_support 271 } // namespace webkit_support
268 272
269 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 273 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698