| 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 } | 964 } |
| 965 | 965 |
| 966 void WebTestProxyBase::SetStatusText(const blink::WebString& text) { | 966 void WebTestProxyBase::SetStatusText(const blink::WebString& text) { |
| 967 if (!test_interfaces_->GetTestRunner()->shouldDumpStatusCallbacks()) | 967 if (!test_interfaces_->GetTestRunner()->shouldDumpStatusCallbacks()) |
| 968 return; | 968 return; |
| 969 delegate_->PrintMessage( | 969 delegate_->PrintMessage( |
| 970 std::string("UI DELEGATE STATUS CALLBACK: setStatusText:") + | 970 std::string("UI DELEGATE STATUS CALLBACK: setStatusText:") + |
| 971 text.utf8().data() + "\n"); | 971 text.utf8().data() + "\n"); |
| 972 } | 972 } |
| 973 | 973 |
| 974 void WebTestProxyBase::DidStopLoading() { | |
| 975 if (test_interfaces_->GetTestRunner()->shouldDumpProgressFinishedCallback()) | |
| 976 delegate_->PrintMessage("postProgressFinishedNotification\n"); | |
| 977 } | |
| 978 | |
| 979 void WebTestProxyBase::ShowContextMenu( | 974 void WebTestProxyBase::ShowContextMenu( |
| 980 const blink::WebContextMenuData& context_menu_data) { | 975 const blink::WebContextMenuData& context_menu_data) { |
| 981 test_interfaces_->GetEventSender()->SetContextMenuData(context_menu_data); | 976 test_interfaces_->GetEventSender()->SetContextMenuData(context_menu_data); |
| 982 } | 977 } |
| 983 | 978 |
| 984 blink::WebUserMediaClient* WebTestProxyBase::GetUserMediaClient() { | 979 blink::WebUserMediaClient* WebTestProxyBase::GetUserMediaClient() { |
| 985 if (!user_media_client_.get()) | 980 if (!user_media_client_.get()) |
| 986 user_media_client_.reset(new MockWebUserMediaClient(delegate_)); | 981 user_media_client_.reset(new MockWebUserMediaClient(delegate_)); |
| 987 return user_media_client_.get(); | 982 return user_media_client_.get(); |
| 988 } | 983 } |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 // to cancel the input method's ongoing composition session. | 1406 // to cancel the input method's ongoing composition session. |
| 1412 if (web_widget_) | 1407 if (web_widget_) |
| 1413 web_widget_->confirmComposition(); | 1408 web_widget_->confirmComposition(); |
| 1414 } | 1409 } |
| 1415 | 1410 |
| 1416 blink::WebString WebTestProxyBase::acceptLanguages() { | 1411 blink::WebString WebTestProxyBase::acceptLanguages() { |
| 1417 return blink::WebString::fromUTF8(accept_languages_); | 1412 return blink::WebString::fromUTF8(accept_languages_); |
| 1418 } | 1413 } |
| 1419 | 1414 |
| 1420 } // namespace test_runner | 1415 } // namespace test_runner |
| OLD | NEW |