| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 struct WebFileChooserParams; | 70 struct WebFileChooserParams; |
| 71 struct WebPluginParams; | 71 struct WebPluginParams; |
| 72 struct WebPoint; | 72 struct WebPoint; |
| 73 struct WebSize; | 73 struct WebSize; |
| 74 struct WebWindowFeatures; | 74 struct WebWindowFeatures; |
| 75 typedef unsigned WebColor; | 75 typedef unsigned WebColor; |
| 76 } | 76 } |
| 77 | 77 |
| 78 namespace content { | 78 namespace content { |
| 79 | 79 |
| 80 class MockCredentialManagerClient; |
| 80 class MockScreenOrientationClient; | 81 class MockScreenOrientationClient; |
| 81 class MockWebPushClient; | 82 class MockWebPushClient; |
| 82 class MockWebSpeechRecognizer; | 83 class MockWebSpeechRecognizer; |
| 83 class MockWebUserMediaClient; | 84 class MockWebUserMediaClient; |
| 84 class RenderFrame; | 85 class RenderFrame; |
| 85 class SpellCheckClient; | 86 class SpellCheckClient; |
| 86 class TestInterfaces; | 87 class TestInterfaces; |
| 87 class WebTestDelegate; | 88 class WebTestDelegate; |
| 88 class WebTestInterfaces; | 89 class WebTestInterfaces; |
| 89 | 90 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void DidOpenChooser(); | 126 void DidOpenChooser(); |
| 126 void DidCloseChooser(); | 127 void DidCloseChooser(); |
| 127 bool IsChooserShown(); | 128 bool IsChooserShown(); |
| 128 | 129 |
| 129 void DisplayAsyncThen(const base::Closure& callback); | 130 void DisplayAsyncThen(const base::Closure& callback); |
| 130 | 131 |
| 131 void GetScreenOrientationForTesting(blink::WebScreenInfo&); | 132 void GetScreenOrientationForTesting(blink::WebScreenInfo&); |
| 132 MockScreenOrientationClient* GetScreenOrientationClientMock(); | 133 MockScreenOrientationClient* GetScreenOrientationClientMock(); |
| 133 blink::WebMIDIClientMock* GetMIDIClientMock(); | 134 blink::WebMIDIClientMock* GetMIDIClientMock(); |
| 134 MockWebSpeechRecognizer* GetSpeechRecognizerMock(); | 135 MockWebSpeechRecognizer* GetSpeechRecognizerMock(); |
| 136 MockCredentialManagerClient* GetCredentialManagerClientMock(); |
| 135 | 137 |
| 136 WebTaskList* mutable_task_list() { return &task_list_; } | 138 WebTaskList* mutable_task_list() { return &task_list_; } |
| 137 | 139 |
| 138 blink::WebView* GetWebView() const; | 140 blink::WebView* GetWebView() const; |
| 139 | 141 |
| 140 void PostSpellCheckEvent(const blink::WebString& event_name); | 142 void PostSpellCheckEvent(const blink::WebString& event_name); |
| 141 | 143 |
| 142 // WebCompositeAndReadbackAsyncCallback implementation. | 144 // WebCompositeAndReadbackAsyncCallback implementation. |
| 143 virtual void didCompositeAndReadback(const SkBitmap& bitmap); | 145 virtual void didCompositeAndReadback(const SkBitmap& bitmap); |
| 144 | 146 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 scoped_ptr<MockWebUserMediaClient> user_media_client_; | 267 scoped_ptr<MockWebUserMediaClient> user_media_client_; |
| 266 | 268 |
| 267 bool animate_scheduled_; | 269 bool animate_scheduled_; |
| 268 std::map<unsigned, std::string> resource_identifier_map_; | 270 std::map<unsigned, std::string> resource_identifier_map_; |
| 269 std::deque<base::Callback<void(const SkBitmap&)> > | 271 std::deque<base::Callback<void(const SkBitmap&)> > |
| 270 composite_and_readback_callbacks_; | 272 composite_and_readback_callbacks_; |
| 271 | 273 |
| 272 bool log_console_output_; | 274 bool log_console_output_; |
| 273 int chooser_count_; | 275 int chooser_count_; |
| 274 | 276 |
| 277 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; |
| 275 scoped_ptr<blink::WebMIDIClientMock> midi_client_; | 278 scoped_ptr<blink::WebMIDIClientMock> midi_client_; |
| 276 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; | 279 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; |
| 277 scoped_ptr<MockWebPushClient> push_client_; | 280 scoped_ptr<MockWebPushClient> push_client_; |
| 278 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; | 281 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; |
| 279 | 282 |
| 280 std::string accept_languages_; | 283 std::string accept_languages_; |
| 281 | 284 |
| 282 private: | 285 private: |
| 283 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); | 286 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); |
| 284 }; | 287 }; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 return WebTestProxyBase::GetWebPushClient(); | 407 return WebTestProxyBase::GetWebPushClient(); |
| 405 } | 408 } |
| 406 | 409 |
| 407 private: | 410 private: |
| 408 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 411 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
| 409 }; | 412 }; |
| 410 | 413 |
| 411 } // namespace content | 414 } // namespace content |
| 412 | 415 |
| 413 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 416 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
| OLD | NEW |