OLD | NEW |
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/web_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
6 | 6 |
7 #include <cctype> | 7 #include <cctype> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 } | 967 } |
968 | 968 |
969 void WebTestProxyBase::SetStatusText(const blink::WebString& text) { | 969 void WebTestProxyBase::SetStatusText(const blink::WebString& text) { |
970 if (!test_interfaces_->GetTestRunner()->shouldDumpStatusCallbacks()) | 970 if (!test_interfaces_->GetTestRunner()->shouldDumpStatusCallbacks()) |
971 return; | 971 return; |
972 delegate_->PrintMessage( | 972 delegate_->PrintMessage( |
973 std::string("UI DELEGATE STATUS CALLBACK: setStatusText:") + | 973 std::string("UI DELEGATE STATUS CALLBACK: setStatusText:") + |
974 text.utf8().data() + "\n"); | 974 text.utf8().data() + "\n"); |
975 } | 975 } |
976 | 976 |
977 void WebTestProxyBase::DidStopLoading() { | |
978 if (test_interfaces_->GetTestRunner()->shouldDumpProgressFinishedCallback()) | |
979 delegate_->PrintMessage("postProgressFinishedNotification\n"); | |
980 } | |
981 | |
982 void WebTestProxyBase::ShowContextMenu( | 977 void WebTestProxyBase::ShowContextMenu( |
983 const blink::WebContextMenuData& context_menu_data) { | 978 const blink::WebContextMenuData& context_menu_data) { |
984 test_interfaces_->GetEventSender()->SetContextMenuData(context_menu_data); | 979 test_interfaces_->GetEventSender()->SetContextMenuData(context_menu_data); |
985 } | 980 } |
986 | 981 |
987 blink::WebUserMediaClient* WebTestProxyBase::GetUserMediaClient() { | 982 blink::WebUserMediaClient* WebTestProxyBase::GetUserMediaClient() { |
988 if (!user_media_client_.get()) | 983 if (!user_media_client_.get()) |
989 user_media_client_.reset(new MockWebUserMediaClient(delegate_)); | 984 user_media_client_.reset(new MockWebUserMediaClient(delegate_)); |
990 return user_media_client_.get(); | 985 return user_media_client_.get(); |
991 } | 986 } |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 // to cancel the input method's ongoing composition session. | 1414 // to cancel the input method's ongoing composition session. |
1420 if (web_widget_) | 1415 if (web_widget_) |
1421 web_widget_->confirmComposition(); | 1416 web_widget_->confirmComposition(); |
1422 } | 1417 } |
1423 | 1418 |
1424 blink::WebString WebTestProxyBase::acceptLanguages() { | 1419 blink::WebString WebTestProxyBase::acceptLanguages() { |
1425 return blink::WebString::fromUTF8(accept_languages_); | 1420 return blink::WebString::fromUTF8(accept_languages_); |
1426 } | 1421 } |
1427 | 1422 |
1428 } // namespace test_runner | 1423 } // namespace test_runner |
OLD | NEW |