| 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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 class GURL; | 24 class GURL; |
| 25 class SkBitmap; | 25 class SkBitmap; |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 class WebContentSettingsClient; | 28 class WebContentSettingsClient; |
| 29 class WebFrame; | 29 class WebFrame; |
| 30 class WebLocalFrame; | 30 class WebLocalFrame; |
| 31 class WebString; | 31 class WebString; |
| 32 class WebView; | 32 class WebView; |
| 33 class WebWidget; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace gin { | 36 namespace gin { |
| 36 class ArrayBufferView; | 37 class ArrayBufferView; |
| 37 class Arguments; | 38 class Arguments; |
| 38 } | 39 } |
| 39 | 40 |
| 40 namespace test_runner { | 41 namespace test_runner { |
| 41 | 42 |
| 42 class MockContentSettingsClient; | 43 class MockContentSettingsClient; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const base::Callback<void(const SkBitmap&)>& callback) override; | 92 const base::Callback<void(const SkBitmap&)>& callback) override; |
| 92 void ReplicateLayoutTestRuntimeFlagsChanges( | 93 void ReplicateLayoutTestRuntimeFlagsChanges( |
| 93 const base::DictionaryValue& changed_values) override; | 94 const base::DictionaryValue& changed_values) override; |
| 94 bool HasCustomTextDump(std::string* custom_text_dump) const override; | 95 bool HasCustomTextDump(std::string* custom_text_dump) const override; |
| 95 bool ShouldDumpBackForwardList() const override; | 96 bool ShouldDumpBackForwardList() const override; |
| 96 blink::WebContentSettingsClient* GetWebContentSettings() const override; | 97 blink::WebContentSettingsClient* GetWebContentSettings() const override; |
| 97 void InitializeWebViewWithMocks(blink::WebView* web_view) override; | 98 void InitializeWebViewWithMocks(blink::WebView* web_view) override; |
| 98 void SetFocus(blink::WebView* web_view, bool focus) override; | 99 void SetFocus(blink::WebView* web_view, bool focus) override; |
| 99 | 100 |
| 100 // Methods used by WebViewTestClient and WebFrameTestClient. | 101 // Methods used by WebViewTestClient and WebFrameTestClient. |
| 101 void OnAnimationScheduled(blink::WebView* view); | 102 void OnAnimationScheduled(blink::WebWidget* widget); |
| 102 void OnAnimationBegun(blink::WebView* view); | 103 void OnAnimationBegun(blink::WebWidget* widget); |
| 103 std::string GetAcceptLanguages() const; | 104 std::string GetAcceptLanguages() const; |
| 104 bool shouldStayOnPageAfterHandlingBeforeUnload() const; | 105 bool shouldStayOnPageAfterHandlingBeforeUnload() const; |
| 105 MockScreenOrientationClient* getMockScreenOrientationClient(); | 106 MockScreenOrientationClient* getMockScreenOrientationClient(); |
| 106 MockWebUserMediaClient* getMockWebUserMediaClient(); | 107 MockWebUserMediaClient* getMockWebUserMediaClient(); |
| 107 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); | 108 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); |
| 108 bool isPrinting() const; | 109 bool isPrinting() const; |
| 109 bool shouldDumpAsCustomText() const; | 110 bool shouldDumpAsCustomText() const; |
| 110 std:: string customDumpText() const; | 111 std:: string customDumpText() const; |
| 111 void ShowDevTools(const std::string& settings, | 112 void ShowDevTools(const std::string& settings, |
| 112 const std::string& frontend_url); | 113 const std::string& frontend_url); |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 int chooser_count_; | 635 int chooser_count_; |
| 635 | 636 |
| 636 // Captured drag image. | 637 // Captured drag image. |
| 637 blink::WebImage drag_image_; | 638 blink::WebImage drag_image_; |
| 638 | 639 |
| 639 // View that was focused by a previous call to TestRunner::SetFocus method. | 640 // View that was focused by a previous call to TestRunner::SetFocus method. |
| 640 // Note - this can be a dangling pointer to an already destroyed WebView (this | 641 // Note - this can be a dangling pointer to an already destroyed WebView (this |
| 641 // is ok, because this is taken care of in WebTestDelegate::SetFocus). | 642 // is ok, because this is taken care of in WebTestDelegate::SetFocus). |
| 642 blink::WebView* previously_focused_view_; | 643 blink::WebView* previously_focused_view_; |
| 643 | 644 |
| 644 std::set<blink::WebView*> views_with_scheduled_animations_; | 645 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; |
| 645 | 646 |
| 646 base::WeakPtrFactory<TestRunner> weak_factory_; | 647 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 647 | 648 |
| 648 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 649 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 649 }; | 650 }; |
| 650 | 651 |
| 651 } // namespace test_runner | 652 } // namespace test_runner |
| 652 | 653 |
| 653 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 654 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |