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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const std::string& value, 147 const std::string& value,
147 const GURL& origin, 148 const GURL& origin,
148 const GURL& embedding_origin) override; 149 const GURL& embedding_origin) override;
149 void ResetPermissions() override; 150 void ResetPermissions() override;
150 bool AddMediaStreamVideoSourceAndTrack( 151 bool AddMediaStreamVideoSourceAndTrack(
151 blink::WebMediaStream* stream) override; 152 blink::WebMediaStream* stream) override;
152 bool AddMediaStreamAudioSourceAndTrack( 153 bool AddMediaStreamAudioSourceAndTrack(
153 blink::WebMediaStream* stream) override; 154 blink::WebMediaStream* stream) override;
154 cc::SharedBitmapManager* GetSharedBitmapManager() override; 155 cc::SharedBitmapManager* GetSharedBitmapManager() override;
155 void DispatchBeforeInstallPromptEvent( 156 void DispatchBeforeInstallPromptEvent(
156 int request_id,
157 const std::vector<std::string>& event_platforms, 157 const std::vector<std::string>& event_platforms,
158 const base::Callback<void(bool)>& callback) override; 158 const base::Callback<void(bool)>& callback) override;
159 void ResolveBeforeInstallPromptPromise(
160 const std::string& platform) override;
159 blink::WebPlugin* CreatePluginPlaceholder( 161 blink::WebPlugin* CreatePluginPlaceholder(
160 blink::WebLocalFrame* frame, 162 blink::WebLocalFrame* frame,
161 const blink::WebPluginParams& params) override; 163 const blink::WebPluginParams& params) override;
162 float GetDeviceScaleFactor() const override; 164 float GetDeviceScaleFactor() const override;
163 void RunIdleTasks(const base::Closure& callback) override; 165 void RunIdleTasks(const base::Closure& callback) override;
164 166
165 // Resets a RenderView to a known state for layout tests. It is used both when 167 // Resets a RenderView to a known state for layout tests. It is used both when
166 // a RenderView is created and when reusing an existing RenderView for the 168 // a RenderView is created and when reusing an existing RenderView for the
167 // next test case. 169 // next test case.
168 // When reusing an existing RenderView, |for_new_test| should be true, which 170 // When reusing an existing RenderView, |for_new_test| should be true, which
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 std::vector<std::vector<PageState> > session_histories_; 214 std::vector<std::vector<PageState> > session_histories_;
213 std::vector<unsigned> current_entry_indexes_; 215 std::vector<unsigned> current_entry_indexes_;
214 216
215 std::deque<base::Callback<void(const std::vector<std::string>&)>> 217 std::deque<base::Callback<void(const std::vector<std::string>&)>>
216 get_bluetooth_events_callbacks_; 218 get_bluetooth_events_callbacks_;
217 219
218 bool is_main_window_; 220 bool is_main_window_;
219 221
220 bool focus_on_next_commit_; 222 bool focus_on_next_commit_;
221 223
224 std::unique_ptr<test_runner::AppBannerService> app_banner_service_;
225
222 std::unique_ptr<LeakDetector> leak_detector_; 226 std::unique_ptr<LeakDetector> leak_detector_;
223 227
224 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 228 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
225 }; 229 };
226 230
227 } // namespace content 231 } // namespace content
228 232
229 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 233 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698