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 MockPresentationClient; |
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 MockPresentationClient* GetPresentationClientMock(); |
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 bool animate_scheduled_; | 262 bool animate_scheduled_; |
261 std::map<unsigned, std::string> resource_identifier_map_; | 263 std::map<unsigned, std::string> resource_identifier_map_; |
262 | 264 |
263 bool log_console_output_; | 265 bool log_console_output_; |
264 int chooser_count_; | 266 int chooser_count_; |
265 | 267 |
266 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; | 268 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; |
267 scoped_ptr<blink::WebMIDIClientMock> midi_client_; | 269 scoped_ptr<blink::WebMIDIClientMock> midi_client_; |
268 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; | 270 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; |
269 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; | 271 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; |
| 272 scoped_ptr<MockPresentationClient> presentation_client_; |
270 | 273 |
271 std::string accept_languages_; | 274 std::string accept_languages_; |
272 | 275 |
273 private: | 276 private: |
274 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); | 277 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); |
275 }; | 278 }; |
276 | 279 |
277 // WebTestProxy is used during LayoutTests and always instantiated, at time of | 280 // WebTestProxy is used during LayoutTests and always instantiated, at time of |
278 // writing with Base=RenderViewImpl. It does not directly inherit from it for | 281 // writing with Base=RenderViewImpl. It does not directly inherit from it for |
279 // layering purposes. | 282 // layering purposes. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 395 |
393 private: | 396 private: |
394 virtual ~WebTestProxy() {} | 397 virtual ~WebTestProxy() {} |
395 | 398 |
396 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 399 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
397 }; | 400 }; |
398 | 401 |
399 } // namespace content | 402 } // namespace content |
400 | 403 |
401 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 404 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
OLD | NEW |