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 CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentRequest.h" | |
12 #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/Web
Preferences.h" | 11 #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/Web
Preferences.h" |
13 #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/Web
TestDelegate.h" | 12 #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/Web
TestDelegate.h" |
14 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
15 | 14 |
16 class SkCanvas; | 15 class SkCanvas; |
17 | 16 |
18 namespace WebKit { | 17 namespace WebKit { |
19 struct WebRect; | 18 struct WebRect; |
20 } | 19 } |
21 | 20 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 long long ms); | 55 long long ms); |
57 virtual WebKit::WebString registerIsolatedFileSystem( | 56 virtual WebKit::WebString registerIsolatedFileSystem( |
58 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); | 57 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); |
59 virtual long long getCurrentTimeInMillisecond(); | 58 virtual long long getCurrentTimeInMillisecond(); |
60 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( | 59 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( |
61 const std::string& utf8_path); | 60 const std::string& utf8_path); |
62 virtual WebKit::WebURL localFileToDataURL(const WebKit::WebURL& file_url); | 61 virtual WebKit::WebURL localFileToDataURL(const WebKit::WebURL& file_url); |
63 virtual WebKit::WebURL rewriteLayoutTestsURL(const std::string& utf8_url); | 62 virtual WebKit::WebURL rewriteLayoutTestsURL(const std::string& utf8_url); |
64 virtual ::WebTestRunner::WebPreferences* preferences(); | 63 virtual ::WebTestRunner::WebPreferences* preferences(); |
65 virtual void applyPreferences(); | 64 virtual void applyPreferences(); |
66 #if defined(ENABLE_WEB_INTENTS) | |
67 virtual void setCurrentWebIntentRequest(const WebKit::WebIntentRequest&); | |
68 virtual WebKit::WebIntentRequest* currentWebIntentRequest(); | |
69 #endif | |
70 virtual std::string makeURLErrorDescription(const WebKit::WebURLError& error); | 65 virtual std::string makeURLErrorDescription(const WebKit::WebURLError& error); |
71 | 66 |
72 void Reset(); | 67 void Reset(); |
73 void Display(); | 68 void Display(); |
74 void SetXSSAuditorEnabled(bool enabled); | 69 void SetXSSAuditorEnabled(bool enabled); |
75 void NotifyDone(); | 70 void NotifyDone(); |
76 void DumpAsText(); | 71 void DumpAsText(); |
77 void DumpChildFramesAsText(); | 72 void DumpChildFramesAsText(); |
78 void SetPrinting(); | 73 void SetPrinting(); |
79 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); | 74 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void DisplayRepaintMask(); | 106 void DisplayRepaintMask(); |
112 | 107 |
113 scoped_ptr<SkCanvas> canvas_; | 108 scoped_ptr<SkCanvas> canvas_; |
114 scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_; | 109 scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_; |
115 base::FilePath current_working_directory_; | 110 base::FilePath current_working_directory_; |
116 | 111 |
117 ::WebTestRunner::WebTestProxyBase* proxy_; | 112 ::WebTestRunner::WebTestProxyBase* proxy_; |
118 | 113 |
119 ::WebTestRunner::WebPreferences prefs_; | 114 ::WebTestRunner::WebPreferences prefs_; |
120 | 115 |
121 #if defined(ENABLE_WEB_INTENTS) | |
122 WebKit::WebIntentRequest intent_request_; | |
123 #endif | |
124 | |
125 bool dump_editing_callbacks_; | 116 bool dump_editing_callbacks_; |
126 bool dump_frame_load_callbacks_; | 117 bool dump_frame_load_callbacks_; |
127 bool dump_user_gesture_in_frame_load_callbacks_; | 118 bool dump_user_gesture_in_frame_load_callbacks_; |
128 bool stop_provisional_frame_loads_; | 119 bool stop_provisional_frame_loads_; |
129 bool dump_title_changes_; | 120 bool dump_title_changes_; |
130 bool dump_resource_load_callbacks_; | 121 bool dump_resource_load_callbacks_; |
131 bool dump_resource_request_callbacks_; | 122 bool dump_resource_request_callbacks_; |
132 bool dump_resource_response_mime_types_; | 123 bool dump_resource_response_mime_types_; |
133 bool dump_create_view_; | 124 bool dump_create_view_; |
134 bool can_open_windows_; | 125 bool can_open_windows_; |
135 | 126 |
136 bool test_is_running_; | 127 bool test_is_running_; |
137 bool wait_until_done_; | 128 bool wait_until_done_; |
138 bool load_finished_; | 129 bool load_finished_; |
139 | 130 |
140 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 131 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
141 }; | 132 }; |
142 | 133 |
143 } // namespace content | 134 } // namespace content |
144 | 135 |
145 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 136 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |