OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class SkBitmap; | 24 class SkBitmap; |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class DictionaryValue; | 27 class DictionaryValue; |
28 } | 28 } |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 class WebDeviceMotionData; | 31 class WebDeviceMotionData; |
32 class WebDeviceOrientationData; | 32 class WebDeviceOrientationData; |
| 33 class WebFrame; |
33 class WebView; | 34 class WebView; |
34 } | 35 } |
35 | 36 |
36 namespace test_runner { | 37 namespace test_runner { |
37 class AppBannerService; | 38 class AppBannerService; |
38 } | 39 } |
39 | 40 |
40 namespace content { | 41 namespace content { |
41 | 42 |
42 class LeakDetector; | 43 class LeakDetector; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 void DispatchBeforeInstallPromptEvent( | 154 void DispatchBeforeInstallPromptEvent( |
154 const std::vector<std::string>& event_platforms, | 155 const std::vector<std::string>& event_platforms, |
155 const base::Callback<void(bool)>& callback) override; | 156 const base::Callback<void(bool)>& callback) override; |
156 void ResolveBeforeInstallPromptPromise( | 157 void ResolveBeforeInstallPromptPromise( |
157 const std::string& platform) override; | 158 const std::string& platform) override; |
158 blink::WebPlugin* CreatePluginPlaceholder( | 159 blink::WebPlugin* CreatePluginPlaceholder( |
159 blink::WebLocalFrame* frame, | 160 blink::WebLocalFrame* frame, |
160 const blink::WebPluginParams& params) override; | 161 const blink::WebPluginParams& params) override; |
161 float GetDeviceScaleFactor() const override; | 162 float GetDeviceScaleFactor() const override; |
162 void RunIdleTasks(const base::Closure& callback) override; | 163 void RunIdleTasks(const base::Closure& callback) override; |
| 164 void ForceTextInputStateUpdate(blink::WebFrame* frame) override; |
163 | 165 |
164 // Resets a RenderView to a known state for layout tests. It is used both when | 166 // Resets a RenderView to a known state for layout tests. It is used both when |
165 // a RenderView is created and when reusing an existing RenderView for the | 167 // a RenderView is created and when reusing an existing RenderView for the |
166 // next test case. | 168 // next test case. |
167 // When reusing an existing RenderView, |for_new_test| should be true, which | 169 // When reusing an existing RenderView, |for_new_test| should be true, which |
168 // also resets additional state, like the main frame's name and opener. | 170 // also resets additional state, like the main frame's name and opener. |
169 void Reset(bool for_new_test); | 171 void Reset(bool for_new_test); |
170 | 172 |
171 void ReportLeakDetectionResult(const LeakDetectionResult& result); | 173 void ReportLeakDetectionResult(const LeakDetectionResult& result); |
172 | 174 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 std::unique_ptr<test_runner::AppBannerService> app_banner_service_; | 223 std::unique_ptr<test_runner::AppBannerService> app_banner_service_; |
222 | 224 |
223 std::unique_ptr<LeakDetector> leak_detector_; | 225 std::unique_ptr<LeakDetector> leak_detector_; |
224 | 226 |
225 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 227 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
226 }; | 228 }; |
227 | 229 |
228 } // namespace content | 230 } // namespace content |
229 | 231 |
230 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 232 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
OLD | NEW |