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

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

Issue 391923006: Extra parameter to pass sub-message direction for validation message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compilation fix for Windows Created 6 years, 3 months 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 blink::WebSpellCheckClient* GetSpellCheckClient() const; 103 blink::WebSpellCheckClient* GetSpellCheckClient() const;
104 blink::WebColorChooser* CreateColorChooser( 104 blink::WebColorChooser* CreateColorChooser(
105 blink::WebColorChooserClient* client, 105 blink::WebColorChooserClient* client,
106 const blink::WebColor& color, 106 const blink::WebColor& color,
107 const blink::WebVector<blink::WebColorSuggestion>& suggestions); 107 const blink::WebVector<blink::WebColorSuggestion>& suggestions);
108 bool RunFileChooser(const blink::WebFileChooserParams& params, 108 bool RunFileChooser(const blink::WebFileChooserParams& params,
109 blink::WebFileChooserCompletion* completion); 109 blink::WebFileChooserCompletion* completion);
110 void ShowValidationMessage(const blink::WebRect& anchor_in_root_view, 110 void ShowValidationMessage(const blink::WebRect& anchor_in_root_view,
111 const blink::WebString& message, 111 const blink::WebString& message,
112 blink::WebTextDirection message_hint,
112 const blink::WebString& sub_message, 113 const blink::WebString& sub_message,
113 blink::WebTextDirection hint); 114 blink::WebTextDirection hint);
114 void HideValidationMessage(); 115 void HideValidationMessage();
115 void MoveValidationMessage(const blink::WebRect& anchor_in_root_view); 116 void MoveValidationMessage(const blink::WebRect& anchor_in_root_view);
116 117
117 std::string CaptureTree(bool debug_render_tree); 118 std::string CaptureTree(bool debug_render_tree);
118 void CapturePixelsForPrinting( 119 void CapturePixelsForPrinting(
119 const base::Callback<void(const SkBitmap&)>& callback); 120 const base::Callback<void(const SkBitmap&)>& callback);
120 void CopyImageAtAndCapturePixels( 121 void CopyImageAtAndCapturePixels(
121 int x, int y, const base::Callback<void(const SkBitmap&)>& callback); 122 int x, int y, const base::Callback<void(const SkBitmap&)>& callback);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 WebTestProxyBase::SetToolTipText(text, hint); 372 WebTestProxyBase::SetToolTipText(text, hint);
372 Base::setToolTipText(text, hint); 373 Base::setToolTipText(text, hint);
373 } 374 }
374 virtual void resetInputMethod() { WebTestProxyBase::ResetInputMethod(); } 375 virtual void resetInputMethod() { WebTestProxyBase::ResetInputMethod(); }
375 virtual bool runFileChooser(const blink::WebFileChooserParams& params, 376 virtual bool runFileChooser(const blink::WebFileChooserParams& params,
376 blink::WebFileChooserCompletion* completion) { 377 blink::WebFileChooserCompletion* completion) {
377 return WebTestProxyBase::RunFileChooser(params, completion); 378 return WebTestProxyBase::RunFileChooser(params, completion);
378 } 379 }
379 virtual void showValidationMessage(const blink::WebRect& anchor_in_root_view, 380 virtual void showValidationMessage(const blink::WebRect& anchor_in_root_view,
380 const blink::WebString& message, 381 const blink::WebString& message,
382 blink::WebTextDirection message_hint,
381 const blink::WebString& sub_message, 383 const blink::WebString& sub_message,
382 blink::WebTextDirection hint) { 384 blink::WebTextDirection hint) {
383 WebTestProxyBase::ShowValidationMessage( 385 WebTestProxyBase::ShowValidationMessage(
384 anchor_in_root_view, message, sub_message, hint); 386 anchor_in_root_view, message, message_hint, sub_message, hint);
385 } 387 }
386 virtual void postSpellCheckEvent(const blink::WebString& event_name) { 388 virtual void postSpellCheckEvent(const blink::WebString& event_name) {
387 WebTestProxyBase::PostSpellCheckEvent(event_name); 389 WebTestProxyBase::PostSpellCheckEvent(event_name);
388 } 390 }
389 virtual blink::WebString acceptLanguages() { 391 virtual blink::WebString acceptLanguages() {
390 return WebTestProxyBase::acceptLanguages(); 392 return WebTestProxyBase::acceptLanguages();
391 } 393 }
392 virtual blink::WebPushClient* webPushClient() { 394 virtual blink::WebPushClient* webPushClient() {
393 return WebTestProxyBase::GetWebPushClient(); 395 return WebTestProxyBase::GetWebPushClient();
394 } 396 }
395 397
396 private: 398 private:
397 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 399 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
398 }; 400 };
399 401
400 } // namespace content 402 } // namespace content
401 403
402 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 404 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698