| 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 30 matching lines...) Expand all Loading... |
| 110 void DisplayRepaintMask(); | 105 void DisplayRepaintMask(); |
| 111 | 106 |
| 112 scoped_ptr<SkCanvas> canvas_; | 107 scoped_ptr<SkCanvas> canvas_; |
| 113 scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_; | 108 scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_; |
| 114 FilePath current_working_directory_; | 109 FilePath current_working_directory_; |
| 115 | 110 |
| 116 ::WebTestRunner::WebTestProxyBase* proxy_; | 111 ::WebTestRunner::WebTestProxyBase* proxy_; |
| 117 | 112 |
| 118 ::WebTestRunner::WebPreferences prefs_; | 113 ::WebTestRunner::WebPreferences prefs_; |
| 119 | 114 |
| 120 #if defined(ENABLE_WEB_INTENTS) | |
| 121 WebKit::WebIntentRequest intent_request_; | |
| 122 #endif | |
| 123 | |
| 124 bool dump_editing_callbacks_; | 115 bool dump_editing_callbacks_; |
| 125 bool dump_frame_load_callbacks_; | 116 bool dump_frame_load_callbacks_; |
| 126 bool dump_user_gesture_in_frame_load_callbacks_; | 117 bool dump_user_gesture_in_frame_load_callbacks_; |
| 127 bool stop_provisional_frame_loads_; | 118 bool stop_provisional_frame_loads_; |
| 128 bool dump_title_changes_; | 119 bool dump_title_changes_; |
| 129 bool dump_resource_load_callbacks_; | 120 bool dump_resource_load_callbacks_; |
| 130 bool dump_resource_request_callbacks_; | 121 bool dump_resource_request_callbacks_; |
| 131 bool dump_resource_response_mime_types_; | 122 bool dump_resource_response_mime_types_; |
| 132 bool dump_create_view_; | 123 bool dump_create_view_; |
| 133 bool can_open_windows_; | 124 bool can_open_windows_; |
| 134 | 125 |
| 135 bool test_is_running_; | 126 bool test_is_running_; |
| 136 bool wait_until_done_; | 127 bool wait_until_done_; |
| 137 bool load_finished_; | 128 bool load_finished_; |
| 138 | 129 |
| 139 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 130 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
| 140 }; | 131 }; |
| 141 | 132 |
| 142 } // namespace content | 133 } // namespace content |
| 143 | 134 |
| 144 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 135 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
| OLD | NEW |