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

Side by Side Diff: components/test_runner/web_test_delegate.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 virtual void ResetPermissions() = 0; 269 virtual void ResetPermissions() = 0;
270 270
271 // Add content MediaStream classes to the Blink MediaStream ones. 271 // Add content MediaStream classes to the Blink MediaStream ones.
272 virtual bool AddMediaStreamVideoSourceAndTrack( 272 virtual bool AddMediaStreamVideoSourceAndTrack(
273 blink::WebMediaStream* stream) = 0; 273 blink::WebMediaStream* stream) = 0;
274 virtual bool AddMediaStreamAudioSourceAndTrack( 274 virtual bool AddMediaStreamAudioSourceAndTrack(
275 blink::WebMediaStream* stream) = 0; 275 blink::WebMediaStream* stream) = 0;
276 276
277 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 277 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
278 278
279 // Causes the beforeinstallprompt event to be sent to the renderer with a 279 // Causes the beforeinstallprompt event to be sent to the renderer.
280 // request id of |request_id|. |event_platforms| are the platforms to be sent 280 // |event_platforms| are the platforms to be sent with the event. Once the
281 // with the event. Once the event listener completes, |callback| will be 281 // event listener completes, |callback| will be called with a boolean
282 // called with a boolean argument. This argument will be true if the event is 282 // argument. This argument will be true if the event is canceled, and false
283 // canceled, and false otherwise. 283 // otherwise.
284 virtual void DispatchBeforeInstallPromptEvent( 284 virtual void DispatchBeforeInstallPromptEvent(
285 int request_id,
286 const std::vector<std::string>& event_platforms, 285 const std::vector<std::string>& event_platforms,
287 const base::Callback<void(bool)>& callback) = 0; 286 const base::Callback<void(bool)>& callback) = 0;
288 287
288 // Resolves the in-flight beforeinstallprompt event userChoice promise with a
289 // platform of |platform|.
290 virtual void ResolveBeforeInstallPromptPromise(
291 const std::string& platform) = 0;
292
289 virtual blink::WebPlugin* CreatePluginPlaceholder( 293 virtual blink::WebPlugin* CreatePluginPlaceholder(
290 blink::WebLocalFrame* frame, 294 blink::WebLocalFrame* frame,
291 const blink::WebPluginParams& params) = 0; 295 const blink::WebPluginParams& params) = 0;
292 296
293 virtual float GetDeviceScaleFactor() const = 0; 297 virtual float GetDeviceScaleFactor() const = 0;
294 298
295 // Run all pending idle tasks, and then run callback. 299 // Run all pending idle tasks, and then run callback.
296 virtual void RunIdleTasks(const base::Closure& callback) = 0; 300 virtual void RunIdleTasks(const base::Closure& callback) = 0;
297 }; 301 };
298 302
299 } // namespace test_runner 303 } // namespace test_runner
300 304
301 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 305 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner_for_specific_view.cc ('k') | components/test_runner/web_test_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698