Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const std::string& value, 140 const std::string& value,
140 const GURL& origin, 141 const GURL& origin,
141 const GURL& embedding_origin) override; 142 const GURL& embedding_origin) override;
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 const std::vector<std::string>& event_platforms, 150 const std::vector<std::string>& event_platforms,
151 const base::Callback<void(bool)>& callback) override; 151 const base::Callback<void(bool)>& callback) override;
152 void ResolveBeforeInstallPromptPromise(
153 const std::string& platform) override;
152 blink::WebPlugin* CreatePluginPlaceholder( 154 blink::WebPlugin* CreatePluginPlaceholder(
153 blink::WebLocalFrame* frame, 155 blink::WebLocalFrame* frame,
154 const blink::WebPluginParams& params) override; 156 const blink::WebPluginParams& params) override;
155 float GetDeviceScaleFactor() const override; 157 float GetDeviceScaleFactor() const override;
156 void RunIdleTasks(const base::Closure& callback) override; 158 void RunIdleTasks(const base::Closure& callback) override;
157 159
158 // Resets a RenderView to a known state for layout tests. It is used both when 160 // 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 161 // a RenderView is created and when reusing an existing RenderView for the
160 // next test case. 162 // next test case.
161 // When reusing an existing RenderView, |for_new_test| should be true, which 163 // When reusing an existing RenderView, |for_new_test| should be true, which
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 std::vector<std::vector<PageState> > session_histories_; 207 std::vector<std::vector<PageState> > session_histories_;
206 std::vector<unsigned> current_entry_indexes_; 208 std::vector<unsigned> current_entry_indexes_;
207 209
208 std::deque<base::Callback<void(const std::vector<std::string>&)>> 210 std::deque<base::Callback<void(const std::vector<std::string>&)>>
209 get_bluetooth_events_callbacks_; 211 get_bluetooth_events_callbacks_;
210 212
211 bool is_main_window_; 213 bool is_main_window_;
212 214
213 bool focus_on_next_commit_; 215 bool focus_on_next_commit_;
214 216
217 std::unique_ptr<test_runner::AppBannerService> app_banner_service_;
218
215 std::unique_ptr<LeakDetector> leak_detector_; 219 std::unique_ptr<LeakDetector> leak_detector_;
216 220
217 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 221 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
218 }; 222 };
219 223
220 } // namespace content 224 } // namespace content
221 225
222 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 226 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698