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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 blink::WebSpellCheckClient* GetSpellCheckClient() const; | 102 blink::WebSpellCheckClient* GetSpellCheckClient() const; |
103 blink::WebColorChooser* CreateColorChooser( | 103 blink::WebColorChooser* CreateColorChooser( |
104 blink::WebColorChooserClient* client, | 104 blink::WebColorChooserClient* client, |
105 const blink::WebColor& color, | 105 const blink::WebColor& color, |
106 const blink::WebVector<blink::WebColorSuggestion>& suggestions); | 106 const blink::WebVector<blink::WebColorSuggestion>& suggestions); |
107 bool RunFileChooser(const blink::WebFileChooserParams& params, | 107 bool RunFileChooser(const blink::WebFileChooserParams& params, |
108 blink::WebFileChooserCompletion* completion); | 108 blink::WebFileChooserCompletion* completion); |
109 void ShowValidationMessage(const blink::WebRect& anchor_in_root_view, | 109 void ShowValidationMessage(const blink::WebRect& anchor_in_root_view, |
110 const blink::WebString& message, | 110 const blink::WebString& message, |
| 111 blink::WebTextDirection message_hint, |
111 const blink::WebString& sub_message, | 112 const blink::WebString& sub_message, |
112 blink::WebTextDirection hint); | 113 blink::WebTextDirection hint); |
113 void HideValidationMessage(); | 114 void HideValidationMessage(); |
114 void MoveValidationMessage(const blink::WebRect& anchor_in_root_view); | 115 void MoveValidationMessage(const blink::WebRect& anchor_in_root_view); |
115 | 116 |
116 std::string CaptureTree(bool debug_render_tree); | 117 std::string CaptureTree(bool debug_render_tree); |
117 void CapturePixelsForPrinting( | 118 void CapturePixelsForPrinting( |
118 const base::Callback<void(const SkBitmap&)>& callback); | 119 const base::Callback<void(const SkBitmap&)>& callback); |
119 void CopyImageAtAndCapturePixels( | 120 void CopyImageAtAndCapturePixels( |
120 int x, int y, const base::Callback<void(const SkBitmap&)>& callback); | 121 int x, int y, const base::Callback<void(const SkBitmap&)>& callback); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 WebTestProxyBase::SetToolTipText(text, hint); | 376 WebTestProxyBase::SetToolTipText(text, hint); |
376 Base::setToolTipText(text, hint); | 377 Base::setToolTipText(text, hint); |
377 } | 378 } |
378 virtual void resetInputMethod() { WebTestProxyBase::ResetInputMethod(); } | 379 virtual void resetInputMethod() { WebTestProxyBase::ResetInputMethod(); } |
379 virtual bool runFileChooser(const blink::WebFileChooserParams& params, | 380 virtual bool runFileChooser(const blink::WebFileChooserParams& params, |
380 blink::WebFileChooserCompletion* completion) { | 381 blink::WebFileChooserCompletion* completion) { |
381 return WebTestProxyBase::RunFileChooser(params, completion); | 382 return WebTestProxyBase::RunFileChooser(params, completion); |
382 } | 383 } |
383 virtual void showValidationMessage(const blink::WebRect& anchor_in_root_view, | 384 virtual void showValidationMessage(const blink::WebRect& anchor_in_root_view, |
384 const blink::WebString& message, | 385 const blink::WebString& message, |
| 386 blink::WebTextDirection message_hint, |
385 const blink::WebString& sub_message, | 387 const blink::WebString& sub_message, |
386 blink::WebTextDirection hint) { | 388 blink::WebTextDirection hint) { |
387 WebTestProxyBase::ShowValidationMessage( | 389 WebTestProxyBase::ShowValidationMessage( |
388 anchor_in_root_view, message, sub_message, hint); | 390 anchor_in_root_view, message, message_hint, sub_message, hint); |
389 } | 391 } |
390 virtual void postSpellCheckEvent(const blink::WebString& event_name) { | 392 virtual void postSpellCheckEvent(const blink::WebString& event_name) { |
391 WebTestProxyBase::PostSpellCheckEvent(event_name); | 393 WebTestProxyBase::PostSpellCheckEvent(event_name); |
392 } | 394 } |
393 virtual blink::WebString acceptLanguages() { | 395 virtual blink::WebString acceptLanguages() { |
394 return WebTestProxyBase::acceptLanguages(); | 396 return WebTestProxyBase::acceptLanguages(); |
395 } | 397 } |
396 virtual blink::WebPushClient* webPushClient() { | 398 virtual blink::WebPushClient* webPushClient() { |
397 return WebTestProxyBase::GetWebPushClient(); | 399 return WebTestProxyBase::GetWebPushClient(); |
398 } | 400 } |
399 | 401 |
400 private: | 402 private: |
401 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 403 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
402 }; | 404 }; |
403 | 405 |
404 } // namespace content | 406 } // namespace content |
405 | 407 |
406 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 408 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
OLD | NEW |