OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBTESTPROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 blink::WebSpellCheckClient *spellCheckClient() const; | 93 blink::WebSpellCheckClient *spellCheckClient() const; |
94 blink::WebColorChooser* createColorChooser(blink::WebColorChooserClient*, co
nst blink::WebColor&, const blink::WebVector<blink::WebColorSuggestion>& suggest
ions); | 94 blink::WebColorChooser* createColorChooser(blink::WebColorChooserClient*, co
nst blink::WebColor&, const blink::WebVector<blink::WebColorSuggestion>& suggest
ions); |
95 bool runFileChooser(const blink::WebFileChooserParams&, blink::WebFileChoose
rCompletion*); | 95 bool runFileChooser(const blink::WebFileChooserParams&, blink::WebFileChoose
rCompletion*); |
96 void showValidationMessage(const blink::WebRect& anchorInRootView, const bli
nk::WebString& mainText, const blink::WebString& supplementalText, blink::WebTex
tDirection); | 96 void showValidationMessage(const blink::WebRect& anchorInRootView, const bli
nk::WebString& mainText, const blink::WebString& supplementalText, blink::WebTex
tDirection); |
97 void hideValidationMessage(); | 97 void hideValidationMessage(); |
98 void moveValidationMessage(const blink::WebRect& anchorInRootView); | 98 void moveValidationMessage(const blink::WebRect& anchorInRootView); |
99 | 99 |
100 std::string captureTree(bool debugRenderTree); | 100 std::string captureTree(bool debugRenderTree); |
101 SkCanvas* capturePixels(); | 101 SkCanvas* capturePixels(); |
| 102 void CapturePixelsForPrinting( |
| 103 base::Callback<void(const SkBitmap&)> callback); |
102 void CapturePixelsAsync(base::Callback<void(const SkBitmap&)> callback); | 104 void CapturePixelsAsync(base::Callback<void(const SkBitmap&)> callback); |
103 | 105 |
104 void setLogConsoleOutput(bool enabled); | 106 void setLogConsoleOutput(bool enabled); |
105 | 107 |
106 // FIXME: Make this private again. | 108 // FIXME: Make this private again. |
107 void scheduleComposite(); | 109 void scheduleComposite(); |
108 | 110 |
109 void didOpenChooser(); | 111 void didOpenChooser(); |
110 void didCloseChooser(); | 112 void didCloseChooser(); |
111 bool isChooserShown(); | 113 bool isChooserShown(); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 WebTestProxyBase::postSpellCheckEvent(eventName); | 373 WebTestProxyBase::postSpellCheckEvent(eventName); |
372 } | 374 } |
373 | 375 |
374 private: | 376 private: |
375 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 377 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
376 }; | 378 }; |
377 | 379 |
378 } // namespace content | 380 } // namespace content |
379 | 381 |
380 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 382 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
OLD | NEW |