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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 void setLogConsoleOutput(bool enabled); | 103 void setLogConsoleOutput(bool enabled); |
104 | 104 |
105 // FIXME: Make this private again. | 105 // FIXME: Make this private again. |
106 void scheduleComposite(); | 106 void scheduleComposite(); |
107 | 107 |
108 void didOpenChooser(); | 108 void didOpenChooser(); |
109 void didCloseChooser(); | 109 void didCloseChooser(); |
110 bool isChooserShown(); | 110 bool isChooserShown(); |
111 | 111 |
112 void display(base::Closure callback); | |
113 void displayAsyncThen(base::Closure callback); | 112 void displayAsyncThen(base::Closure callback); |
114 | 113 |
115 void discardBackingStore(); | 114 void discardBackingStore(); |
116 | 115 |
117 blink::WebMIDIClientMock* midiClientMock(); | 116 blink::WebMIDIClientMock* midiClientMock(); |
118 MockWebSpeechRecognizer* speechRecognizerMock(); | 117 MockWebSpeechRecognizer* speechRecognizerMock(); |
119 | 118 |
120 WebTaskList* taskList() { return &m_taskList; } | 119 WebTaskList* taskList() { return &m_taskList; } |
121 | 120 |
122 blink::WebView* webView(); | 121 blink::WebView* webView(); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 private: | 187 private: |
189 template<class, typename, typename> friend class WebFrameTestProxy; | 188 template<class, typename, typename> friend class WebFrameTestProxy; |
190 void locationChangeDone(blink::WebFrame*); | 189 void locationChangeDone(blink::WebFrame*); |
191 void paintRect(const blink::WebRect&); | 190 void paintRect(const blink::WebRect&); |
192 void paintInvalidatedRegion(); | 191 void paintInvalidatedRegion(); |
193 void paintPagesWithBoundaries(); | 192 void paintPagesWithBoundaries(); |
194 SkCanvas* canvas(); | 193 SkCanvas* canvas(); |
195 void invalidateAll(); | 194 void invalidateAll(); |
196 void animateNow(); | 195 void animateNow(); |
197 void DrawSelectionRect(SkCanvas* canvas); | 196 void DrawSelectionRect(SkCanvas* canvas); |
| 197 void DisplayForSoftwareMode(const base::Closure& callback); |
| 198 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap); |
198 | 199 |
199 blink::WebWidget* webWidget(); | 200 blink::WebWidget* webWidget(); |
200 | 201 |
201 TestInterfaces* m_testInterfaces; | 202 TestInterfaces* m_testInterfaces; |
202 WebTestDelegate* m_delegate; | 203 WebTestDelegate* m_delegate; |
203 blink::WebWidget* m_webWidget; | 204 blink::WebWidget* m_webWidget; |
204 | 205 |
205 WebTaskList m_taskList; | 206 WebTaskList m_taskList; |
206 | 207 |
207 scoped_ptr<SpellCheckClient> m_spellcheck; | 208 scoped_ptr<SpellCheckClient> m_spellcheck; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 WebTestProxyBase::postSpellCheckEvent(eventName); | 369 WebTestProxyBase::postSpellCheckEvent(eventName); |
369 } | 370 } |
370 | 371 |
371 private: | 372 private: |
372 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 373 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
373 }; | 374 }; |
374 | 375 |
375 } // namespace content | 376 } // namespace content |
376 | 377 |
377 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 378 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
OLD | NEW |