Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 }; | |
| OLD | NEW |