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 #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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 bool suppress_opener); | 166 bool suppress_opener); |
167 blink::WebPlugin* CreatePlugin(blink::WebLocalFrame* frame, | 167 blink::WebPlugin* CreatePlugin(blink::WebLocalFrame* frame, |
168 const blink::WebPluginParams& params); | 168 const blink::WebPluginParams& params); |
169 void SetStatusText(const blink::WebString& text); | 169 void SetStatusText(const blink::WebString& text); |
170 void DidStopLoading(); | 170 void DidStopLoading(); |
171 void ShowContextMenu(blink::WebLocalFrame* frame, | 171 void ShowContextMenu(blink::WebLocalFrame* frame, |
172 const blink::WebContextMenuData& data); | 172 const blink::WebContextMenuData& data); |
173 blink::WebUserMediaClient* GetUserMediaClient(); | 173 blink::WebUserMediaClient* GetUserMediaClient(); |
174 void PrintPage(blink::WebLocalFrame* frame); | 174 void PrintPage(blink::WebLocalFrame* frame); |
175 blink::WebMIDIClient* GetWebMIDIClient(); | 175 blink::WebMIDIClient* GetWebMIDIClient(); |
176 blink::WebSpeechRecognizer* GetSpeechRecognizer(); | |
177 bool RequestPointerLock(); | 176 bool RequestPointerLock(); |
178 void RequestPointerUnlock(); | 177 void RequestPointerUnlock(); |
179 bool IsPointerLocked(); | 178 bool IsPointerLocked(); |
180 void DidFocus(); | 179 void DidFocus(); |
181 void DidBlur(); | 180 void DidBlur(); |
182 void SetToolTipText(const blink::WebString& text, | 181 void SetToolTipText(const blink::WebString& text, |
183 blink::WebTextDirection direction); | 182 blink::WebTextDirection direction); |
184 void DidAddMessageToConsole(const blink::WebConsoleMessage& text, | 183 void DidAddMessageToConsole(const blink::WebConsoleMessage& text, |
185 const blink::WebString& source_name, | 184 const blink::WebString& source_name, |
186 unsigned source_line); | 185 unsigned source_line); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 return Base::createView( | 341 return Base::createView( |
343 creator, request, features, frame_name, policy, suppress_opener); | 342 creator, request, features, frame_name, policy, suppress_opener); |
344 } | 343 } |
345 virtual void setStatusText(const blink::WebString& text) { | 344 virtual void setStatusText(const blink::WebString& text) { |
346 WebTestProxyBase::SetStatusText(text); | 345 WebTestProxyBase::SetStatusText(text); |
347 Base::setStatusText(text); | 346 Base::setStatusText(text); |
348 } | 347 } |
349 virtual void printPage(blink::WebLocalFrame* frame) { | 348 virtual void printPage(blink::WebLocalFrame* frame) { |
350 WebTestProxyBase::PrintPage(frame); | 349 WebTestProxyBase::PrintPage(frame); |
351 } | 350 } |
352 virtual blink::WebSpeechRecognizer* speechRecognizer() { | |
353 return WebTestProxyBase::GetSpeechRecognizer(); | |
354 } | |
355 virtual bool requestPointerLock() { | 351 virtual bool requestPointerLock() { |
356 return WebTestProxyBase::RequestPointerLock(); | 352 return WebTestProxyBase::RequestPointerLock(); |
357 } | 353 } |
358 virtual void requestPointerUnlock() { | 354 virtual void requestPointerUnlock() { |
359 WebTestProxyBase::RequestPointerUnlock(); | 355 WebTestProxyBase::RequestPointerUnlock(); |
360 } | 356 } |
361 virtual bool isPointerLocked() { return WebTestProxyBase::IsPointerLocked(); } | 357 virtual bool isPointerLocked() { return WebTestProxyBase::IsPointerLocked(); } |
362 virtual void didFocus() { | 358 virtual void didFocus() { |
363 WebTestProxyBase::DidFocus(); | 359 WebTestProxyBase::DidFocus(); |
364 Base::didFocus(); | 360 Base::didFocus(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 return WebTestProxyBase::acceptLanguages(); | 394 return WebTestProxyBase::acceptLanguages(); |
399 } | 395 } |
400 | 396 |
401 private: | 397 private: |
402 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 398 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
403 }; | 399 }; |
404 | 400 |
405 } // namespace content | 401 } // namespace content |
406 | 402 |
407 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 403 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
OLD | NEW |