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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 struct WebPluginParams; | 69 struct WebPluginParams; |
70 struct WebPoint; | 70 struct WebPoint; |
71 struct WebSize; | 71 struct WebSize; |
72 struct WebWindowFeatures; | 72 struct WebWindowFeatures; |
73 typedef unsigned WebColor; | 73 typedef unsigned WebColor; |
74 } | 74 } |
75 | 75 |
76 namespace content { | 76 namespace content { |
77 | 77 |
78 class MockCredentialManagerClient; | 78 class MockCredentialManagerClient; |
| 79 class MockPresentationService; |
79 class MockScreenOrientationClient; | 80 class MockScreenOrientationClient; |
80 class MockWebSpeechRecognizer; | 81 class MockWebSpeechRecognizer; |
81 class MockWebUserMediaClient; | 82 class MockWebUserMediaClient; |
82 class RenderFrame; | 83 class RenderFrame; |
83 class SpellCheckClient; | 84 class SpellCheckClient; |
84 class TestInterfaces; | 85 class TestInterfaces; |
85 class WebTestDelegate; | 86 class WebTestDelegate; |
86 class WebTestInterfaces; | 87 class WebTestInterfaces; |
87 | 88 |
88 // WebTestProxyBase is the "brain" of WebTestProxy in the sense that | 89 // WebTestProxyBase is the "brain" of WebTestProxy in the sense that |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void DidCloseChooser(); | 125 void DidCloseChooser(); |
125 bool IsChooserShown(); | 126 bool IsChooserShown(); |
126 | 127 |
127 void DisplayAsyncThen(const base::Closure& callback); | 128 void DisplayAsyncThen(const base::Closure& callback); |
128 | 129 |
129 void GetScreenOrientationForTesting(blink::WebScreenInfo&); | 130 void GetScreenOrientationForTesting(blink::WebScreenInfo&); |
130 MockScreenOrientationClient* GetScreenOrientationClientMock(); | 131 MockScreenOrientationClient* GetScreenOrientationClientMock(); |
131 blink::WebMIDIClientMock* GetMIDIClientMock(); | 132 blink::WebMIDIClientMock* GetMIDIClientMock(); |
132 MockWebSpeechRecognizer* GetSpeechRecognizerMock(); | 133 MockWebSpeechRecognizer* GetSpeechRecognizerMock(); |
133 MockCredentialManagerClient* GetCredentialManagerClientMock(); | 134 MockCredentialManagerClient* GetCredentialManagerClientMock(); |
| 135 MockPresentationService* GetPresentationServiceMock(); |
134 | 136 |
135 WebTaskList* mutable_task_list() { return &task_list_; } | 137 WebTaskList* mutable_task_list() { return &task_list_; } |
136 | 138 |
137 blink::WebView* GetWebView() const; | 139 blink::WebView* GetWebView() const; |
138 | 140 |
139 void PostSpellCheckEvent(const blink::WebString& event_name); | 141 void PostSpellCheckEvent(const blink::WebString& event_name); |
140 | 142 |
141 void SetAcceptLanguages(const std::string& accept_languages); | 143 void SetAcceptLanguages(const std::string& accept_languages); |
142 | 144 |
143 protected: | 145 protected: |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 bool animate_scheduled_; | 264 bool animate_scheduled_; |
263 std::map<unsigned, std::string> resource_identifier_map_; | 265 std::map<unsigned, std::string> resource_identifier_map_; |
264 | 266 |
265 bool log_console_output_; | 267 bool log_console_output_; |
266 int chooser_count_; | 268 int chooser_count_; |
267 | 269 |
268 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; | 270 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; |
269 scoped_ptr<blink::WebMIDIClientMock> midi_client_; | 271 scoped_ptr<blink::WebMIDIClientMock> midi_client_; |
270 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; | 272 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; |
271 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; | 273 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; |
| 274 scoped_ptr<MockPresentationService> presentation_service_; |
272 | 275 |
273 std::string accept_languages_; | 276 std::string accept_languages_; |
274 | 277 |
275 private: | 278 private: |
276 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); | 279 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); |
277 }; | 280 }; |
278 | 281 |
279 // WebTestProxy is used during LayoutTests and always instantiated, at time of | 282 // WebTestProxy is used during LayoutTests and always instantiated, at time of |
280 // writing with Base=RenderViewImpl. It does not directly inherit from it for | 283 // writing with Base=RenderViewImpl. It does not directly inherit from it for |
281 // layering purposes. | 284 // layering purposes. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 397 |
395 private: | 398 private: |
396 virtual ~WebTestProxy() {} | 399 virtual ~WebTestProxy() {} |
397 | 400 |
398 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 401 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
399 }; | 402 }; |
400 | 403 |
401 } // namespace content | 404 } // namespace content |
402 | 405 |
403 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 406 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
OLD | NEW |