| 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 COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 6 #define COMPONENTS_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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void SetStatusText(const blink::WebString& text); | 167 void SetStatusText(const blink::WebString& text); |
| 168 void DidStopLoading(); | 168 void DidStopLoading(); |
| 169 void ShowContextMenu(const blink::WebContextMenuData& data); | 169 void ShowContextMenu(const blink::WebContextMenuData& data); |
| 170 blink::WebUserMediaClient* GetUserMediaClient(); | 170 blink::WebUserMediaClient* GetUserMediaClient(); |
| 171 void PrintPage(blink::WebLocalFrame* frame); | 171 void PrintPage(blink::WebLocalFrame* frame); |
| 172 blink::WebSpeechRecognizer* GetSpeechRecognizer(); | 172 blink::WebSpeechRecognizer* GetSpeechRecognizer(); |
| 173 bool RequestPointerLock(); | 173 bool RequestPointerLock(); |
| 174 void RequestPointerUnlock(); | 174 void RequestPointerUnlock(); |
| 175 bool IsPointerLocked(); | 175 bool IsPointerLocked(); |
| 176 void DidFocus(); | 176 void DidFocus(); |
| 177 void DidBlur(); | |
| 178 void SetToolTipText(const blink::WebString& text, | 177 void SetToolTipText(const blink::WebString& text, |
| 179 blink::WebTextDirection direction); | 178 blink::WebTextDirection direction); |
| 180 void DidAddMessageToConsole(const blink::WebConsoleMessage& text, | 179 void DidAddMessageToConsole(const blink::WebConsoleMessage& text, |
| 181 const blink::WebString& source_name, | 180 const blink::WebString& source_name, |
| 182 unsigned source_line); | 181 unsigned source_line); |
| 183 void LoadURLExternally(blink::WebLocalFrame* frame, | 182 void LoadURLExternally(blink::WebLocalFrame* frame, |
| 184 const blink::WebURLRequest& request, | 183 const blink::WebURLRequest& request, |
| 185 blink::WebNavigationPolicy policy, | 184 blink::WebNavigationPolicy policy, |
| 186 const blink::WebString& suggested_name); | 185 const blink::WebString& suggested_name); |
| 187 void DidStartProvisionalLoad(blink::WebLocalFrame*); | 186 void DidStartProvisionalLoad(blink::WebLocalFrame*); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 return WebTestProxyBase::RequestPointerLock(); | 350 return WebTestProxyBase::RequestPointerLock(); |
| 352 } | 351 } |
| 353 virtual void requestPointerUnlock() { | 352 virtual void requestPointerUnlock() { |
| 354 WebTestProxyBase::RequestPointerUnlock(); | 353 WebTestProxyBase::RequestPointerUnlock(); |
| 355 } | 354 } |
| 356 virtual bool isPointerLocked() { return WebTestProxyBase::IsPointerLocked(); } | 355 virtual bool isPointerLocked() { return WebTestProxyBase::IsPointerLocked(); } |
| 357 virtual void didFocus() { | 356 virtual void didFocus() { |
| 358 WebTestProxyBase::DidFocus(); | 357 WebTestProxyBase::DidFocus(); |
| 359 Base::didFocus(); | 358 Base::didFocus(); |
| 360 } | 359 } |
| 361 virtual void didBlur() { | |
| 362 WebTestProxyBase::DidBlur(); | |
| 363 Base::didBlur(); | |
| 364 } | |
| 365 virtual void setToolTipText(const blink::WebString& text, | 360 virtual void setToolTipText(const blink::WebString& text, |
| 366 blink::WebTextDirection hint) { | 361 blink::WebTextDirection hint) { |
| 367 WebTestProxyBase::SetToolTipText(text, hint); | 362 WebTestProxyBase::SetToolTipText(text, hint); |
| 368 Base::setToolTipText(text, hint); | 363 Base::setToolTipText(text, hint); |
| 369 } | 364 } |
| 370 virtual void resetInputMethod() { WebTestProxyBase::ResetInputMethod(); } | 365 virtual void resetInputMethod() { WebTestProxyBase::ResetInputMethod(); } |
| 371 virtual bool runFileChooser(const blink::WebFileChooserParams& params, | 366 virtual bool runFileChooser(const blink::WebFileChooserParams& params, |
| 372 blink::WebFileChooserCompletion* completion) { | 367 blink::WebFileChooserCompletion* completion) { |
| 373 return WebTestProxyBase::RunFileChooser(params, completion); | 368 return WebTestProxyBase::RunFileChooser(params, completion); |
| 374 } | 369 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 389 | 384 |
| 390 private: | 385 private: |
| 391 virtual ~WebTestProxy() {} | 386 virtual ~WebTestProxy() {} |
| 392 | 387 |
| 393 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 388 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
| 394 }; | 389 }; |
| 395 | 390 |
| 396 } // namespace test_runner | 391 } // namespace test_runner |
| 397 | 392 |
| 398 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 393 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
| OLD | NEW |