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_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 bool IsRecursiveLayoutDumpRequested() override; | 93 bool IsRecursiveLayoutDumpRequested() override; |
94 std::string DumpLayout(blink::WebLocalFrame* frame) override; | 94 std::string DumpLayout(blink::WebLocalFrame* frame) override; |
95 void DumpPixelsAsync( | 95 void DumpPixelsAsync( |
96 blink::WebView* web_view, | 96 blink::WebView* web_view, |
97 const base::Callback<void(const SkBitmap&)>& callback) override; | 97 const base::Callback<void(const SkBitmap&)>& callback) override; |
98 void ReplicateLayoutTestRuntimeFlagsChanges( | 98 void ReplicateLayoutTestRuntimeFlagsChanges( |
99 const base::DictionaryValue& changed_values) override; | 99 const base::DictionaryValue& changed_values) override; |
100 bool HasCustomTextDump(std::string* custom_text_dump) const override; | 100 bool HasCustomTextDump(std::string* custom_text_dump) const override; |
101 bool ShouldDumpBackForwardList() const override; | 101 bool ShouldDumpBackForwardList() const override; |
102 blink::WebContentSettingsClient* GetWebContentSettings() const override; | 102 blink::WebContentSettingsClient* GetWebContentSettings() const override; |
| 103 blink::WebTextCheckClient* GetWebTextCheckClient() const override; |
103 void InitializeWebViewWithMocks(blink::WebView* web_view) override; | 104 void InitializeWebViewWithMocks(blink::WebView* web_view) override; |
104 void SetFocus(blink::WebView* web_view, bool focus) override; | 105 void SetFocus(blink::WebView* web_view, bool focus) override; |
105 | 106 |
106 // Methods used by WebViewTestClient and WebFrameTestClient. | 107 // Methods used by WebViewTestClient and WebFrameTestClient. |
107 void OnNavigationBegin(blink::WebFrame* frame); | 108 void OnNavigationBegin(blink::WebFrame* frame); |
108 void OnNavigationEnd() { will_navigate_ = false; } | 109 void OnNavigationEnd() { will_navigate_ = false; } |
109 std::string GetAcceptLanguages() const; | 110 std::string GetAcceptLanguages() const; |
110 bool shouldStayOnPageAfterHandlingBeforeUnload() const; | 111 bool shouldStayOnPageAfterHandlingBeforeUnload() const; |
111 MockScreenOrientationClient* getMockScreenOrientationClient(); | 112 MockScreenOrientationClient* getMockScreenOrientationClient(); |
112 MockWebUserMediaClient* getMockWebUserMediaClient(); | 113 MockWebUserMediaClient* getMockWebUserMediaClient(); |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 bool disable_v8_cache_ = false; | 667 bool disable_v8_cache_ = false; |
667 | 668 |
668 base::WeakPtrFactory<TestRunner> weak_factory_; | 669 base::WeakPtrFactory<TestRunner> weak_factory_; |
669 | 670 |
670 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 671 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
671 }; | 672 }; |
672 | 673 |
673 } // namespace test_runner | 674 } // namespace test_runner |
674 | 675 |
675 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 676 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |