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

Side by Side Diff: components/test_runner/test_runner.cc

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/web_frame_test_proxy.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/test_runner/test_runner.h" 5 #include "components/test_runner/test_runner.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void DumpResourceResponseMIMETypes(); 239 void DumpResourceResponseMIMETypes();
240 void SetImagesAllowed(bool allowed); 240 void SetImagesAllowed(bool allowed);
241 void SetMediaAllowed(bool allowed); 241 void SetMediaAllowed(bool allowed);
242 void SetScriptsAllowed(bool allowed); 242 void SetScriptsAllowed(bool allowed);
243 void SetStorageAllowed(bool allowed); 243 void SetStorageAllowed(bool allowed);
244 void SetPluginsAllowed(bool allowed); 244 void SetPluginsAllowed(bool allowed);
245 void SetAllowDisplayOfInsecureContent(bool allowed); 245 void SetAllowDisplayOfInsecureContent(bool allowed);
246 void SetAllowRunningOfInsecureContent(bool allowed); 246 void SetAllowRunningOfInsecureContent(bool allowed);
247 void DumpPermissionClientCallbacks(); 247 void DumpPermissionClientCallbacks();
248 void DumpWindowStatusChanges(); 248 void DumpWindowStatusChanges();
249 void DumpProgressFinishedCallback();
250 void DumpSpellCheckCallbacks(); 249 void DumpSpellCheckCallbacks();
251 void DumpBackForwardList(); 250 void DumpBackForwardList();
252 void DumpSelectionRect(); 251 void DumpSelectionRect();
253 void SetPrinting(); 252 void SetPrinting();
254 void ClearPrinting(); 253 void ClearPrinting();
255 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool value); 254 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool value);
256 void SetWillSendRequestClearHeader(const std::string& header); 255 void SetWillSendRequestClearHeader(const std::string& header);
257 void DumpResourceRequestPriorities(); 256 void DumpResourceRequestPriorities();
258 void SetUseMockTheme(bool use); 257 void SetUseMockTheme(bool use);
259 void WaitUntilExternalURLLoad(); 258 void WaitUntilExternalURLLoad();
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 .SetMethod("setStorageAllowed", &TestRunnerBindings::SetStorageAllowed) 497 .SetMethod("setStorageAllowed", &TestRunnerBindings::SetStorageAllowed)
499 .SetMethod("setPluginsAllowed", &TestRunnerBindings::SetPluginsAllowed) 498 .SetMethod("setPluginsAllowed", &TestRunnerBindings::SetPluginsAllowed)
500 .SetMethod("setAllowDisplayOfInsecureContent", 499 .SetMethod("setAllowDisplayOfInsecureContent",
501 &TestRunnerBindings::SetAllowDisplayOfInsecureContent) 500 &TestRunnerBindings::SetAllowDisplayOfInsecureContent)
502 .SetMethod("setAllowRunningOfInsecureContent", 501 .SetMethod("setAllowRunningOfInsecureContent",
503 &TestRunnerBindings::SetAllowRunningOfInsecureContent) 502 &TestRunnerBindings::SetAllowRunningOfInsecureContent)
504 .SetMethod("dumpPermissionClientCallbacks", 503 .SetMethod("dumpPermissionClientCallbacks",
505 &TestRunnerBindings::DumpPermissionClientCallbacks) 504 &TestRunnerBindings::DumpPermissionClientCallbacks)
506 .SetMethod("dumpWindowStatusChanges", 505 .SetMethod("dumpWindowStatusChanges",
507 &TestRunnerBindings::DumpWindowStatusChanges) 506 &TestRunnerBindings::DumpWindowStatusChanges)
508 .SetMethod("dumpProgressFinishedCallback",
509 &TestRunnerBindings::DumpProgressFinishedCallback)
510 .SetMethod("dumpSpellCheckCallbacks", 507 .SetMethod("dumpSpellCheckCallbacks",
511 &TestRunnerBindings::DumpSpellCheckCallbacks) 508 &TestRunnerBindings::DumpSpellCheckCallbacks)
512 .SetMethod("dumpBackForwardList", 509 .SetMethod("dumpBackForwardList",
513 &TestRunnerBindings::DumpBackForwardList) 510 &TestRunnerBindings::DumpBackForwardList)
514 .SetMethod("dumpSelectionRect", &TestRunnerBindings::DumpSelectionRect) 511 .SetMethod("dumpSelectionRect", &TestRunnerBindings::DumpSelectionRect)
515 .SetMethod("setPrinting", &TestRunnerBindings::SetPrinting) 512 .SetMethod("setPrinting", &TestRunnerBindings::SetPrinting)
516 .SetMethod("clearPrinting", &TestRunnerBindings::ClearPrinting) 513 .SetMethod("clearPrinting", &TestRunnerBindings::ClearPrinting)
517 .SetMethod( 514 .SetMethod(
518 "setShouldStayOnPageAfterHandlingBeforeUnload", 515 "setShouldStayOnPageAfterHandlingBeforeUnload",
519 &TestRunnerBindings::SetShouldStayOnPageAfterHandlingBeforeUnload) 516 &TestRunnerBindings::SetShouldStayOnPageAfterHandlingBeforeUnload)
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 void TestRunnerBindings::DumpPermissionClientCallbacks() { 1201 void TestRunnerBindings::DumpPermissionClientCallbacks() {
1205 if (runner_) 1202 if (runner_)
1206 runner_->DumpPermissionClientCallbacks(); 1203 runner_->DumpPermissionClientCallbacks();
1207 } 1204 }
1208 1205
1209 void TestRunnerBindings::DumpWindowStatusChanges() { 1206 void TestRunnerBindings::DumpWindowStatusChanges() {
1210 if (runner_) 1207 if (runner_)
1211 runner_->DumpWindowStatusChanges(); 1208 runner_->DumpWindowStatusChanges();
1212 } 1209 }
1213 1210
1214 void TestRunnerBindings::DumpProgressFinishedCallback() {
1215 if (runner_)
1216 runner_->DumpProgressFinishedCallback();
1217 }
1218
1219 void TestRunnerBindings::DumpSpellCheckCallbacks() { 1211 void TestRunnerBindings::DumpSpellCheckCallbacks() {
1220 if (runner_) 1212 if (runner_)
1221 runner_->DumpSpellCheckCallbacks(); 1213 runner_->DumpSpellCheckCallbacks();
1222 } 1214 }
1223 1215
1224 void TestRunnerBindings::DumpBackForwardList() { 1216 void TestRunnerBindings::DumpBackForwardList() {
1225 if (runner_) 1217 if (runner_)
1226 runner_->DumpBackForwardList(); 1218 runner_->DumpBackForwardList();
1227 } 1219 }
1228 1220
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 dump_frame_load_callbacks_ = false; 1705 dump_frame_load_callbacks_ = false;
1714 dump_ping_loader_callbacks_ = false; 1706 dump_ping_loader_callbacks_ = false;
1715 dump_user_gesture_in_frame_load_callbacks_ = false; 1707 dump_user_gesture_in_frame_load_callbacks_ = false;
1716 dump_title_changes_ = false; 1708 dump_title_changes_ = false;
1717 dump_create_view_ = false; 1709 dump_create_view_ = false;
1718 can_open_windows_ = false; 1710 can_open_windows_ = false;
1719 dump_resource_load_callbacks_ = false; 1711 dump_resource_load_callbacks_ = false;
1720 dump_resource_request_callbacks_ = false; 1712 dump_resource_request_callbacks_ = false;
1721 dump_resource_response_mime_types_ = false; 1713 dump_resource_response_mime_types_ = false;
1722 dump_window_status_changes_ = false; 1714 dump_window_status_changes_ = false;
1723 dump_progress_finished_callback_ = false;
1724 dump_spell_check_callbacks_ = false; 1715 dump_spell_check_callbacks_ = false;
1725 dump_back_forward_list_ = false; 1716 dump_back_forward_list_ = false;
1726 dump_selection_rect_ = false; 1717 dump_selection_rect_ = false;
1727 dump_drag_image_ = false; 1718 dump_drag_image_ = false;
1728 dump_navigation_policy_ = false; 1719 dump_navigation_policy_ = false;
1729 test_repaint_ = false; 1720 test_repaint_ = false;
1730 sweep_horizontally_ = false; 1721 sweep_horizontally_ = false;
1731 is_printing_ = false; 1722 is_printing_ = false;
1732 midi_accessor_result_ = true; 1723 midi_accessor_result_ = true;
1733 should_stay_on_page_after_handling_before_unload_ = false; 1724 should_stay_on_page_after_handling_before_unload_ = false;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 } 1879 }
1889 1880
1890 WebContentSettingsClient* TestRunner::GetWebContentSettings() const { 1881 WebContentSettingsClient* TestRunner::GetWebContentSettings() const {
1891 return web_content_settings_.get(); 1882 return web_content_settings_.get();
1892 } 1883 }
1893 1884
1894 bool TestRunner::shouldDumpStatusCallbacks() const { 1885 bool TestRunner::shouldDumpStatusCallbacks() const {
1895 return dump_window_status_changes_; 1886 return dump_window_status_changes_;
1896 } 1887 }
1897 1888
1898 bool TestRunner::shouldDumpProgressFinishedCallback() const {
1899 return dump_progress_finished_callback_;
1900 }
1901
1902 bool TestRunner::shouldDumpSpellCheckCallbacks() const { 1889 bool TestRunner::shouldDumpSpellCheckCallbacks() const {
1903 return dump_spell_check_callbacks_; 1890 return dump_spell_check_callbacks_;
1904 } 1891 }
1905 1892
1906 bool TestRunner::ShouldDumpBackForwardList() const { 1893 bool TestRunner::ShouldDumpBackForwardList() const {
1907 return dump_back_forward_list_; 1894 return dump_back_forward_list_;
1908 } 1895 }
1909 1896
1910 bool TestRunner::shouldDumpSelectionRect() const { 1897 bool TestRunner::shouldDumpSelectionRect() const {
1911 return dump_selection_rect_; 1898 return dump_selection_rect_;
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 } 2726 }
2740 2727
2741 void TestRunner::DumpPermissionClientCallbacks() { 2728 void TestRunner::DumpPermissionClientCallbacks() {
2742 web_content_settings_->SetDumpCallbacks(true); 2729 web_content_settings_->SetDumpCallbacks(true);
2743 } 2730 }
2744 2731
2745 void TestRunner::DumpWindowStatusChanges() { 2732 void TestRunner::DumpWindowStatusChanges() {
2746 dump_window_status_changes_ = true; 2733 dump_window_status_changes_ = true;
2747 } 2734 }
2748 2735
2749 void TestRunner::DumpProgressFinishedCallback() {
2750 dump_progress_finished_callback_ = true;
2751 }
2752
2753 void TestRunner::DumpSpellCheckCallbacks() { 2736 void TestRunner::DumpSpellCheckCallbacks() {
2754 dump_spell_check_callbacks_ = true; 2737 dump_spell_check_callbacks_ = true;
2755 } 2738 }
2756 2739
2757 void TestRunner::DumpBackForwardList() { 2740 void TestRunner::DumpBackForwardList() {
2758 dump_back_forward_list_ = true; 2741 dump_back_forward_list_ = true;
2759 } 2742 }
2760 2743
2761 void TestRunner::DumpSelectionRect() { 2744 void TestRunner::DumpSelectionRect() {
2762 dump_selection_rect_ = true; 2745 dump_selection_rect_ = true;
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
3153 } 3136 }
3154 3137
3155 void TestRunner::DidLosePointerLockInternal() { 3138 void TestRunner::DidLosePointerLockInternal() {
3156 bool was_locked = pointer_locked_; 3139 bool was_locked = pointer_locked_;
3157 pointer_locked_ = false; 3140 pointer_locked_ = false;
3158 if (was_locked) 3141 if (was_locked)
3159 web_view_->didLosePointerLock(); 3142 web_view_->didLosePointerLock();
3160 } 3143 }
3161 3144
3162 } // namespace test_runner 3145 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/web_frame_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698