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

Side by Side Diff: chrome/browser/media/router/media_router.mojom

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed yuri's comments #16 Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 module media_router.interfaces; 5 module media_router.interfaces;
6 6
7 // Represents an output sink to which media can be routed. 7 // Represents an output sink to which media can be routed.
8 struct MediaSink { 8 struct MediaSink {
9 enum IconType { 9 enum IconType {
10 CAST, 10 CAST,
(...skipping 23 matching lines...) Expand all
34 // "Tab casting". 34 // "Tab casting".
35 string description; 35 string description;
36 // Specifies that the route is requested locally. 36 // Specifies that the route is requested locally.
37 bool is_local; 37 bool is_local;
38 // An optional path to an HTML page bundled bundled with the media router 38 // An optional path to an HTML page bundled bundled with the media router
39 // component extension. When set, the route can have custom route detail as 39 // component extension. When set, the route can have custom route detail as
40 // well as its own route controls in the media router dialog. 40 // well as its own route controls in the media router dialog.
41 string? custom_controller_path; 41 string? custom_controller_path;
42 // Set to true if this route should be displayed for |media_sink_id| in UI. 42 // Set to true if this route should be displayed for |media_sink_id| in UI.
43 bool for_display; 43 bool for_display;
44 // Set to true if this route corresponds to an offscreen presentation.
45 bool is_offscreen_presentation;
44 }; 46 };
45 47
46 // Notifications or an actionable events to be shown to the user. 48 // Notifications or an actionable events to be shown to the user.
47 // When is_blocking is true, media router UI shows issue only: 49 // When is_blocking is true, media router UI shows issue only:
48 // 50 //
49 // Title 51 // Title
50 // Message 52 // Message
51 // default_action_button secondary_action_button 53 // default_action_button secondary_action_button
52 // 54 //
53 // When is_blocking is false, media router UI uses banner: 55 // When is_blocking is false, media router UI uses banner:
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Called when the Media Route Manager receives a new list of sinks. 199 // Called when the Media Route Manager receives a new list of sinks.
198 OnSinksReceived(string media_source, array<MediaSink> sinks); 200 OnSinksReceived(string media_source, array<MediaSink> sinks);
199 201
200 // Called when issues are reported for media routes. 202 // Called when issues are reported for media routes.
201 OnIssue(Issue issue); 203 OnIssue(Issue issue);
202 204
203 // Called when list of routes has been updated. 205 // Called when list of routes has been updated.
204 OnRoutesUpdated(array<MediaRoute> routes); 206 OnRoutesUpdated(array<MediaRoute> routes);
205 }; 207 };
206 208
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698