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

Side by Side Diff: content/common/presentation_session.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.
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 // PresentationSession represents an interface between the page and one of its
8 // presentations on the second screen. See the Presentation API for more details
9 // about the API.
10 [Client=PresentationSessionClient]
11 interface PresentationSession {
Peter Beverloo 2015/01/07 15:13:01 If you prune the unused methods in the other .mojo
whywhat 2015/01/07 18:02:59 Done.
12 /* PresentationSession idl */
13
14 // when onstatechange listener is added;
15 // might cause the event fired with the initial state change
16 StateChangeListenerAdded();
17
18 // when onstatechange listener is removed;
19 // might close the session?
20 StateChangeListenerRemoved();
21
22 // when onmessage listener is added;
23 // might open the communication channel
24 MessageListenerAdded();
25
26 // when onmessage listener is removed;
27 // might close the communication channel?
28 MessageListenerRemoved();
29
30 // when postMessage() is called
31 PostMessage(string message);
32
33 // when close() is called
34 CloseSession();
35 };
36
37 interface PresentationSessionClient {
38 // When to fire onstatechange event
39 SessionStateChanged(string new_state);
40
41 // When to fire onmessage event
42 SessionMessageReceived(string message);
43 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698