| 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 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 class WebDeviceMotionData; | 32 class WebDeviceMotionData; |
| 33 class WebDeviceOrientationData; | 33 class WebDeviceOrientationData; |
| 34 class WebView; | 34 class WebView; |
| 35 struct WebRect; | 35 struct WebRect; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace test_runner { | 38 namespace test_runner { |
| 39 class AppBannerService; |
| 39 class WebViewTestProxyBase; | 40 class WebViewTestProxyBase; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace content { | 43 namespace content { |
| 43 | 44 |
| 44 class LeakDetector; | 45 class LeakDetector; |
| 45 struct LeakDetectionResult; | 46 struct LeakDetectionResult; |
| 46 | 47 |
| 47 // This is the renderer side of the webkit test runner. | 48 // This is the renderer side of the webkit test runner. |
| 48 // TODO(lukasza): Rename to LayoutTestRenderViewObserver for consistency with | 49 // TODO(lukasza): Rename to LayoutTestRenderViewObserver for consistency with |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 void ResetPermissions() override; | 143 void ResetPermissions() override; |
| 143 bool AddMediaStreamVideoSourceAndTrack( | 144 bool AddMediaStreamVideoSourceAndTrack( |
| 144 blink::WebMediaStream* stream) override; | 145 blink::WebMediaStream* stream) override; |
| 145 bool AddMediaStreamAudioSourceAndTrack( | 146 bool AddMediaStreamAudioSourceAndTrack( |
| 146 blink::WebMediaStream* stream) override; | 147 blink::WebMediaStream* stream) override; |
| 147 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 148 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
| 148 void DispatchBeforeInstallPromptEvent( | 149 void DispatchBeforeInstallPromptEvent( |
| 149 int request_id, | 150 int request_id, |
| 150 const std::vector<std::string>& event_platforms, | 151 const std::vector<std::string>& event_platforms, |
| 151 const base::Callback<void(bool)>& callback) override; | 152 const base::Callback<void(bool)>& callback) override; |
| 153 void ResolveBeforeInstallPromptPromise( |
| 154 int request_id, |
| 155 const std::string& platform) override; |
| 152 blink::WebPlugin* CreatePluginPlaceholder( | 156 blink::WebPlugin* CreatePluginPlaceholder( |
| 153 blink::WebLocalFrame* frame, | 157 blink::WebLocalFrame* frame, |
| 154 const blink::WebPluginParams& params) override; | 158 const blink::WebPluginParams& params) override; |
| 155 float GetDeviceScaleFactor() const override; | 159 float GetDeviceScaleFactor() const override; |
| 156 void RunIdleTasks(const base::Closure& callback) override; | 160 void RunIdleTasks(const base::Closure& callback) override; |
| 157 | 161 |
| 158 // Resets a RenderView to a known state for layout tests. It is used both when | 162 // Resets a RenderView to a known state for layout tests. It is used both when |
| 159 // a RenderView is created and when reusing an existing RenderView for the | 163 // a RenderView is created and when reusing an existing RenderView for the |
| 160 // next test case. | 164 // next test case. |
| 161 // When reusing an existing RenderView, |for_new_test| should be true, which | 165 // When reusing an existing RenderView, |for_new_test| should be true, which |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 std::vector<std::vector<PageState> > session_histories_; | 209 std::vector<std::vector<PageState> > session_histories_; |
| 206 std::vector<unsigned> current_entry_indexes_; | 210 std::vector<unsigned> current_entry_indexes_; |
| 207 | 211 |
| 208 std::deque<base::Callback<void(const std::vector<std::string>&)>> | 212 std::deque<base::Callback<void(const std::vector<std::string>&)>> |
| 209 get_bluetooth_events_callbacks_; | 213 get_bluetooth_events_callbacks_; |
| 210 | 214 |
| 211 bool is_main_window_; | 215 bool is_main_window_; |
| 212 | 216 |
| 213 bool focus_on_next_commit_; | 217 bool focus_on_next_commit_; |
| 214 | 218 |
| 219 std::unique_ptr<test_runner::AppBannerService> app_banner_service_; |
| 220 |
| 215 std::unique_ptr<LeakDetector> leak_detector_; | 221 std::unique_ptr<LeakDetector> leak_detector_; |
| 216 | 222 |
| 217 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 223 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
| 218 }; | 224 }; |
| 219 | 225 |
| 220 } // namespace content | 226 } // namespace content |
| 221 | 227 |
| 222 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 228 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
| OLD | NEW |