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 17 matching lines...) Expand all Loading... |
28 namespace blink { | 28 namespace blink { |
29 class WebAXObject; | 29 class WebAXObject; |
30 class WebAudioDevice; | 30 class WebAudioDevice; |
31 class WebCachedURLRequest; | 31 class WebCachedURLRequest; |
32 class WebColorChooser; | 32 class WebColorChooser; |
33 class WebColorChooserClient; | 33 class WebColorChooserClient; |
34 class WebDataSource; | 34 class WebDataSource; |
35 class WebDragData; | 35 class WebDragData; |
36 class WebFileChooserCompletion; | 36 class WebFileChooserCompletion; |
37 class WebFrame; | 37 class WebFrame; |
38 class WebGeolocationClient; | |
39 class WebGeolocationClientMock; | |
40 class WebImage; | 38 class WebImage; |
41 class WebMIDIAccessor; | 39 class WebMIDIAccessor; |
42 class WebMIDIAccessorClient; | 40 class WebMIDIAccessorClient; |
43 class WebMIDIClient; | 41 class WebMIDIClient; |
44 class WebMIDIClientMock; | 42 class WebMIDIClientMock; |
45 class WebNode; | 43 class WebNode; |
46 class WebNotificationPresenter; | 44 class WebNotificationPresenter; |
47 class WebPlugin; | 45 class WebPlugin; |
48 class WebRange; | 46 class WebRange; |
49 class WebSerializedScriptValue; | 47 class WebSerializedScriptValue; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void scheduleComposite(); | 108 void scheduleComposite(); |
111 | 109 |
112 void didOpenChooser(); | 110 void didOpenChooser(); |
113 void didCloseChooser(); | 111 void didCloseChooser(); |
114 bool isChooserShown(); | 112 bool isChooserShown(); |
115 | 113 |
116 void display(); | 114 void display(); |
117 void displayInvalidatedRegion(); | 115 void displayInvalidatedRegion(); |
118 void discardBackingStore(); | 116 void discardBackingStore(); |
119 | 117 |
120 blink::WebGeolocationClientMock* geolocationClientMock(); | |
121 blink::WebMIDIClientMock* midiClientMock(); | 118 blink::WebMIDIClientMock* midiClientMock(); |
122 MockWebSpeechInputController* speechInputControllerMock(); | 119 MockWebSpeechInputController* speechInputControllerMock(); |
123 MockWebSpeechRecognizer* speechRecognizerMock(); | 120 MockWebSpeechRecognizer* speechRecognizerMock(); |
124 | 121 |
125 WebTaskList* taskList() { return &m_taskList; } | 122 WebTaskList* taskList() { return &m_taskList; } |
126 | 123 |
127 blink::WebView* webView(); | 124 blink::WebView* webView(); |
128 | 125 |
129 void didForceResize(); | 126 void didForceResize(); |
130 | 127 |
(...skipping 16 matching lines...) Expand all Loading... |
147 void didChangeContents(); | 144 void didChangeContents(); |
148 void didEndEditing(); | 145 void didEndEditing(); |
149 bool createView(blink::WebFrame* creator, const blink::WebURLRequest&, const
blink::WebWindowFeatures&, const blink::WebString& frameName, blink::WebNavigat
ionPolicy, bool suppressOpener); | 146 bool createView(blink::WebFrame* creator, const blink::WebURLRequest&, const
blink::WebWindowFeatures&, const blink::WebString& frameName, blink::WebNavigat
ionPolicy, bool suppressOpener); |
150 blink::WebPlugin* createPlugin(blink::WebFrame*, const blink::WebPluginParam
s&); | 147 blink::WebPlugin* createPlugin(blink::WebFrame*, const blink::WebPluginParam
s&); |
151 void setStatusText(const blink::WebString&); | 148 void setStatusText(const blink::WebString&); |
152 void didStopLoading(); | 149 void didStopLoading(); |
153 void showContextMenu(blink::WebFrame*, const blink::WebContextMenuData&); | 150 void showContextMenu(blink::WebFrame*, const blink::WebContextMenuData&); |
154 blink::WebUserMediaClient* userMediaClient(); | 151 blink::WebUserMediaClient* userMediaClient(); |
155 void printPage(blink::WebFrame*); | 152 void printPage(blink::WebFrame*); |
156 blink::WebNotificationPresenter* notificationPresenter(); | 153 blink::WebNotificationPresenter* notificationPresenter(); |
157 blink::WebGeolocationClient* geolocationClient(); | |
158 blink::WebMIDIClient* webMIDIClient(); | 154 blink::WebMIDIClient* webMIDIClient(); |
159 blink::WebSpeechInputController* speechInputController(blink::WebSpeechInput
Listener*); | 155 blink::WebSpeechInputController* speechInputController(blink::WebSpeechInput
Listener*); |
160 blink::WebSpeechRecognizer* speechRecognizer(); | 156 blink::WebSpeechRecognizer* speechRecognizer(); |
161 bool requestPointerLock(); | 157 bool requestPointerLock(); |
162 void requestPointerUnlock(); | 158 void requestPointerUnlock(); |
163 bool isPointerLocked(); | 159 bool isPointerLocked(); |
164 void didFocus(); | 160 void didFocus(); |
165 void didBlur(); | 161 void didBlur(); |
166 void setToolTipText(const blink::WebString&, blink::WebTextDirection); | 162 void setToolTipText(const blink::WebString&, blink::WebTextDirection); |
167 void didAddMessageToConsole(const blink::WebConsoleMessage&, const blink::We
bString& sourceName, unsigned sourceLine); | 163 void didAddMessageToConsole(const blink::WebConsoleMessage&, const blink::We
bString& sourceName, unsigned sourceLine); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 scoped_ptr<SkCanvas> m_canvas; | 214 scoped_ptr<SkCanvas> m_canvas; |
219 blink::WebRect m_paintRect; | 215 blink::WebRect m_paintRect; |
220 bool m_isPainting; | 216 bool m_isPainting; |
221 bool m_animateScheduled; | 217 bool m_animateScheduled; |
222 std::map<unsigned, std::string> m_resourceIdentifierMap; | 218 std::map<unsigned, std::string> m_resourceIdentifierMap; |
223 std::map<unsigned, blink::WebURLRequest> m_requestMap; | 219 std::map<unsigned, blink::WebURLRequest> m_requestMap; |
224 | 220 |
225 bool m_logConsoleOutput; | 221 bool m_logConsoleOutput; |
226 int m_chooserCount; | 222 int m_chooserCount; |
227 | 223 |
228 scoped_ptr<blink::WebGeolocationClientMock> m_geolocationClient; | |
229 scoped_ptr<blink::WebMIDIClientMock> m_midiClient; | 224 scoped_ptr<blink::WebMIDIClientMock> m_midiClient; |
230 scoped_ptr<MockWebSpeechRecognizer> m_speechRecognizer; | 225 scoped_ptr<MockWebSpeechRecognizer> m_speechRecognizer; |
231 scoped_ptr<MockWebSpeechInputController> m_speechInputController; | 226 scoped_ptr<MockWebSpeechInputController> m_speechInputController; |
232 | 227 |
233 private: | 228 private: |
234 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); | 229 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); |
235 }; | 230 }; |
236 | 231 |
237 // Use this template to inject methods into your WebViewClient/WebFrameClient | 232 // Use this template to inject methods into your WebViewClient/WebFrameClient |
238 // implementation required for the running layout tests. | 233 // implementation required for the running layout tests. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 return WebTestProxyBase::userMediaClient(); | 319 return WebTestProxyBase::userMediaClient(); |
325 } | 320 } |
326 virtual void printPage(blink::WebFrame* frame) | 321 virtual void printPage(blink::WebFrame* frame) |
327 { | 322 { |
328 WebTestProxyBase::printPage(frame); | 323 WebTestProxyBase::printPage(frame); |
329 } | 324 } |
330 virtual blink::WebNotificationPresenter* notificationPresenter() | 325 virtual blink::WebNotificationPresenter* notificationPresenter() |
331 { | 326 { |
332 return WebTestProxyBase::notificationPresenter(); | 327 return WebTestProxyBase::notificationPresenter(); |
333 } | 328 } |
334 virtual blink::WebGeolocationClient* geolocationClient() | |
335 { | |
336 return WebTestProxyBase::geolocationClient(); | |
337 } | |
338 virtual blink::WebMIDIClient* webMIDIClient() | 329 virtual blink::WebMIDIClient* webMIDIClient() |
339 { | 330 { |
340 return WebTestProxyBase::webMIDIClient(); | 331 return WebTestProxyBase::webMIDIClient(); |
341 } | 332 } |
342 virtual blink::WebSpeechInputController* speechInputController(blink::WebSpe
echInputListener* listener) | 333 virtual blink::WebSpeechInputController* speechInputController(blink::WebSpe
echInputListener* listener) |
343 { | 334 { |
344 return WebTestProxyBase::speechInputController(listener); | 335 return WebTestProxyBase::speechInputController(listener); |
345 } | 336 } |
346 virtual blink::WebSpeechRecognizer* speechRecognizer() | 337 virtual blink::WebSpeechRecognizer* speechRecognizer() |
347 { | 338 { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 WebTestProxyBase::postSpellCheckEvent(eventName); | 519 WebTestProxyBase::postSpellCheckEvent(eventName); |
529 } | 520 } |
530 | 521 |
531 private: | 522 private: |
532 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 523 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
533 }; | 524 }; |
534 | 525 |
535 } | 526 } |
536 | 527 |
537 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 528 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
OLD | NEW |