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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 return; | 881 return; |
882 blink::WebPrintParams printParams(page_size_in_pixels); | 882 blink::WebPrintParams printParams(page_size_in_pixels); |
883 frame->printBegin(printParams); | 883 frame->printBegin(printParams); |
884 frame->printEnd(); | 884 frame->printEnd(); |
885 } | 885 } |
886 | 886 |
887 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { | 887 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { |
888 return GetMIDIClientMock(); | 888 return GetMIDIClientMock(); |
889 } | 889 } |
890 | 890 |
891 blink::WebSpeechRecognizer* WebTestProxyBase::GetSpeechRecognizer() { | |
892 return GetSpeechRecognizerMock(); | |
893 } | |
894 | |
895 bool WebTestProxyBase::RequestPointerLock() { | 891 bool WebTestProxyBase::RequestPointerLock() { |
896 return test_interfaces_->GetTestRunner()->RequestPointerLock(); | 892 return test_interfaces_->GetTestRunner()->RequestPointerLock(); |
897 } | 893 } |
898 | 894 |
899 void WebTestProxyBase::RequestPointerUnlock() { | 895 void WebTestProxyBase::RequestPointerUnlock() { |
900 test_interfaces_->GetTestRunner()->RequestPointerUnlock(); | 896 test_interfaces_->GetTestRunner()->RequestPointerUnlock(); |
901 } | 897 } |
902 | 898 |
903 bool WebTestProxyBase::IsPointerLocked() { | 899 bool WebTestProxyBase::IsPointerLocked() { |
904 return test_interfaces_->GetTestRunner()->isPointerLocked(); | 900 return test_interfaces_->GetTestRunner()->isPointerLocked(); |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 // to cancel the input method's ongoing composition session. | 1309 // to cancel the input method's ongoing composition session. |
1314 if (web_widget_) | 1310 if (web_widget_) |
1315 web_widget_->confirmComposition(); | 1311 web_widget_->confirmComposition(); |
1316 } | 1312 } |
1317 | 1313 |
1318 blink::WebString WebTestProxyBase::acceptLanguages() { | 1314 blink::WebString WebTestProxyBase::acceptLanguages() { |
1319 return blink::WebString::fromUTF8(accept_languages_); | 1315 return blink::WebString::fromUTF8(accept_languages_); |
1320 } | 1316 } |
1321 | 1317 |
1322 } // namespace content | 1318 } // namespace content |
OLD | NEW |