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

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

Issue 636863003: Make SpeechRecognition per RenderFrame instead of per RenderView. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanups Created 6 years, 1 month 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 blink::WebPlugin* CreatePlugin(blink::WebLocalFrame* frame, 168 blink::WebPlugin* CreatePlugin(blink::WebLocalFrame* frame,
169 const blink::WebPluginParams& params); 169 const blink::WebPluginParams& params);
170 void SetStatusText(const blink::WebString& text); 170 void SetStatusText(const blink::WebString& text);
171 void DidStopLoading(); 171 void DidStopLoading();
172 void ShowContextMenu(blink::WebLocalFrame* frame, 172 void ShowContextMenu(blink::WebLocalFrame* frame,
173 const blink::WebContextMenuData& data); 173 const blink::WebContextMenuData& data);
174 blink::WebUserMediaClient* GetUserMediaClient(); 174 blink::WebUserMediaClient* GetUserMediaClient();
175 void PrintPage(blink::WebLocalFrame* frame); 175 void PrintPage(blink::WebLocalFrame* frame);
176 blink::WebNotificationPresenter* GetNotificationPresenter(); 176 blink::WebNotificationPresenter* GetNotificationPresenter();
177 blink::WebMIDIClient* GetWebMIDIClient(); 177 blink::WebMIDIClient* GetWebMIDIClient();
178 blink::WebSpeechRecognizer* GetSpeechRecognizer();
179 bool RequestPointerLock(); 178 bool RequestPointerLock();
180 void RequestPointerUnlock(); 179 void RequestPointerUnlock();
181 bool IsPointerLocked(); 180 bool IsPointerLocked();
182 void DidFocus(); 181 void DidFocus();
183 void DidBlur(); 182 void DidBlur();
184 void SetToolTipText(const blink::WebString& text, 183 void SetToolTipText(const blink::WebString& text,
185 blink::WebTextDirection direction); 184 blink::WebTextDirection direction);
186 void DidAddMessageToConsole(const blink::WebConsoleMessage& text, 185 void DidAddMessageToConsole(const blink::WebConsoleMessage& text,
187 const blink::WebString& source_name, 186 const blink::WebString& source_name,
188 unsigned source_line); 187 unsigned source_line);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 return Base::createView( 343 return Base::createView(
345 creator, request, features, frame_name, policy, suppress_opener); 344 creator, request, features, frame_name, policy, suppress_opener);
346 } 345 }
347 virtual void setStatusText(const blink::WebString& text) { 346 virtual void setStatusText(const blink::WebString& text) {
348 WebTestProxyBase::SetStatusText(text); 347 WebTestProxyBase::SetStatusText(text);
349 Base::setStatusText(text); 348 Base::setStatusText(text);
350 } 349 }
351 virtual void printPage(blink::WebLocalFrame* frame) { 350 virtual void printPage(blink::WebLocalFrame* frame) {
352 WebTestProxyBase::PrintPage(frame); 351 WebTestProxyBase::PrintPage(frame);
353 } 352 }
354 virtual blink::WebSpeechRecognizer* speechRecognizer() {
355 return WebTestProxyBase::GetSpeechRecognizer();
356 }
357 virtual bool requestPointerLock() { 353 virtual bool requestPointerLock() {
358 return WebTestProxyBase::RequestPointerLock(); 354 return WebTestProxyBase::RequestPointerLock();
359 } 355 }
360 virtual void requestPointerUnlock() { 356 virtual void requestPointerUnlock() {
361 WebTestProxyBase::RequestPointerUnlock(); 357 WebTestProxyBase::RequestPointerUnlock();
362 } 358 }
363 virtual bool isPointerLocked() { return WebTestProxyBase::IsPointerLocked(); } 359 virtual bool isPointerLocked() { return WebTestProxyBase::IsPointerLocked(); }
364 virtual void didFocus() { 360 virtual void didFocus() {
365 WebTestProxyBase::DidFocus(); 361 WebTestProxyBase::DidFocus();
366 Base::didFocus(); 362 Base::didFocus();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 return WebTestProxyBase::GetWebPushClient(); 399 return WebTestProxyBase::GetWebPushClient();
404 } 400 }
405 401
406 private: 402 private:
407 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 403 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
408 }; 404 };
409 405
410 } // namespace content 406 } // namespace content
411 407
412 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 408 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698