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

Side by Side Diff: content/common/presentation_service.mojom

Issue 839773002: Plumbing from WebPresentationClient to the Presentation Mojo service for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
Peter Beverloo 2015/01/07 15:13:00 nit: 2015. Elsewhere too.
whywhat 2015/01/07 18:02:59 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module presentation;
6
7 import "content/common/presentation_session.mojom";
8
9 [Client=PresentationServiceClient]
10 interface PresentationService {
Peter Beverloo 2015/01/07 15:13:00 Nothing provides this service yet, right? I very m
whywhat 2015/01/07 18:02:59 Done.
11 /* NavigatorPresentation idl */
12
13 // when the default presentation url/id are parsed first and/or when the frame
Peter Beverloo 2015/01/07 15:13:00 While I'm not the appropriate reviewer for Mojo st
whywhat 2015/01/07 18:02:59 Done.
14 // changes at least one of the two.
15 SetDefaultPresentation(
Peter Beverloo 2015/01/07 15:13:01 This is not being used yet. The same goes for Def
whywhat 2015/01/07 18:02:59 Removed from this CL.
16 string default_presentation_url,
17 string? default_presenation_id);
18
19 // when ondefaultpresentationstarted listener added/removed;
20 // indicates if the frame is ready to handle the default presentation session
21 // started by the user agent or not
22 DefaultPresentationListenerChanged(bool is_present);
23
24 // when onavailablechange listener added;
25 // might start device discovery
26 AddDeviceAvailabilityListener();
27
28 // when onavailablechange listener removed;
29 // might stop device discovery
30 RemoveDeviceAvailabilityListener();
31
32 // when startSession() is called
33 // the result callback will return the presentation id (since
34 // it can be provided by the UA) and the session identified to
35 // use with the service going forward
36 StartSession(
37 string presentation_url,
38 string? presentation_id,
39 PresentationSession& session) => (bool success, string? error);
40
41 // when joinSession() is called; same result callback as above
42 JoinSession(
43 string presentation_url,
44 string? presentation_id,
45 PresentationSession& session) => (bool success, string? error);
46 };
47
48 interface PresentationServiceClient {
49 // When to fire onavailablechange event
50 DeviceAvailabilityChanged(bool available);
51
52 // When to fire ondefaultpresentation event
53 DefaultPresentationStarted(PresentationSession? session);
54 };
OLDNEW
« no previous file with comments | « no previous file | content/common/presentation_session.mojom » ('j') | content/common/presentation_session.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698