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

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 6 years 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { 888 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() {
889 return GetMIDIClientMock(); 889 return GetMIDIClientMock();
890 } 890 }
891 891
892 blink::WebSpeechRecognizer* WebTestProxyBase::GetSpeechRecognizer() {
893 return GetSpeechRecognizerMock();
894 }
895
896 bool WebTestProxyBase::RequestPointerLock() { 892 bool WebTestProxyBase::RequestPointerLock() {
897 return test_interfaces_->GetTestRunner()->RequestPointerLock(); 893 return test_interfaces_->GetTestRunner()->RequestPointerLock();
898 } 894 }
899 895
900 void WebTestProxyBase::RequestPointerUnlock() { 896 void WebTestProxyBase::RequestPointerUnlock() {
901 test_interfaces_->GetTestRunner()->RequestPointerUnlock(); 897 test_interfaces_->GetTestRunner()->RequestPointerUnlock();
902 } 898 }
903 899
904 bool WebTestProxyBase::IsPointerLocked() { 900 bool WebTestProxyBase::IsPointerLocked() {
905 return test_interfaces_->GetTestRunner()->isPointerLocked(); 901 return test_interfaces_->GetTestRunner()->isPointerLocked();
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 if (!push_client_.get()) 1330 if (!push_client_.get())
1335 push_client_.reset(new MockWebPushClient); 1331 push_client_.reset(new MockWebPushClient);
1336 return push_client_.get(); 1332 return push_client_.get();
1337 } 1333 }
1338 1334
1339 blink::WebPushClient* WebTestProxyBase::GetWebPushClient() { 1335 blink::WebPushClient* WebTestProxyBase::GetWebPushClient() {
1340 return GetPushClientMock(); 1336 return GetPushClientMock();
1341 } 1337 }
1342 1338
1343 } // namespace content 1339 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698