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

Side by Side Diff: content/shell/renderer/test_runner/web_test_proxy.cc

Issue 636863003: Make SpeechRecognition per RenderFrame instead of per RenderView. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 11 months 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
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 "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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698