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 "content/shell/renderer/test_runner/web_test_proxy.h" | 5 #include "content/shell/renderer/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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 // Simulate a print by going into print mode and then exit straight away. | 878 // Simulate a print by going into print mode and then exit straight away. |
879 void WebTestProxyBase::PrintPage(blink::WebLocalFrame* frame) { | 879 void WebTestProxyBase::PrintPage(blink::WebLocalFrame* frame) { |
880 blink::WebSize page_size_in_pixels = web_widget_->size(); | 880 blink::WebSize page_size_in_pixels = web_widget_->size(); |
881 if (page_size_in_pixels.isEmpty()) | 881 if (page_size_in_pixels.isEmpty()) |
882 return; | 882 return; |
883 blink::WebPrintParams printParams(page_size_in_pixels); | 883 blink::WebPrintParams printParams(page_size_in_pixels); |
884 frame->printBegin(printParams); | 884 frame->printBegin(printParams); |
885 frame->printEnd(); | 885 frame->printEnd(); |
886 } | 886 } |
887 | 887 |
888 blink::WebNotificationPresenter* WebTestProxyBase::GetNotificationPresenter() { | |
889 return test_interfaces_->GetTestRunner()->notification_presenter(); | |
890 } | |
891 | |
892 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { | 888 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { |
893 return GetMIDIClientMock(); | 889 return GetMIDIClientMock(); |
894 } | 890 } |
895 | 891 |
896 blink::WebSpeechRecognizer* WebTestProxyBase::GetSpeechRecognizer() { | 892 blink::WebSpeechRecognizer* WebTestProxyBase::GetSpeechRecognizer() { |
897 return GetSpeechRecognizerMock(); | 893 return GetSpeechRecognizerMock(); |
898 } | 894 } |
899 | 895 |
900 bool WebTestProxyBase::RequestPointerLock() { | 896 bool WebTestProxyBase::RequestPointerLock() { |
901 return test_interfaces_->GetTestRunner()->RequestPointerLock(); | 897 return test_interfaces_->GetTestRunner()->RequestPointerLock(); |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 if (!push_client_.get()) | 1334 if (!push_client_.get()) |
1339 push_client_.reset(new MockWebPushClient); | 1335 push_client_.reset(new MockWebPushClient); |
1340 return push_client_.get(); | 1336 return push_client_.get(); |
1341 } | 1337 } |
1342 | 1338 |
1343 blink::WebPushClient* WebTestProxyBase::GetWebPushClient() { | 1339 blink::WebPushClient* WebTestProxyBase::GetWebPushClient() { |
1344 return GetPushClientMock(); | 1340 return GetPushClientMock(); |
1345 } | 1341 } |
1346 | 1342 |
1347 } // namespace content | 1343 } // namespace content |
OLD | NEW |