Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 presentation; | 5 module presentation; |
| 6 | 6 |
| 7 struct PresentationSessionInfo { | 7 struct PresentationSessionInfo { |
| 8 string url; | 8 string url; |
| 9 string id; | 9 string id; |
| 10 }; | 10 }; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 | 76 |
| 77 // Called when closeSession() is called by the frame. | 77 // Called when closeSession() is called by the frame. |
| 78 CloseSession(string presentation_url, string presentation_id); | 78 CloseSession(string presentation_url, string presentation_id); |
| 79 | 79 |
| 80 // Called when the frame is ready to process the next state change. Returns | 80 // Called when the frame is ready to process the next state change. Returns |
| 81 // the last session state if it’s changed since the last time the callback | 81 // the last session state if it’s changed since the last time the callback |
| 82 // was called. Might cause the event fired with the initial state change. | 82 // was called. Might cause the event fired with the initial state change. |
| 83 ListenForSessionStateChange() | 83 ListenForSessionStateChange() |
| 84 => (PresentationSessionInfo sessionInfo, | 84 => (PresentationSessionInfo sessionInfo, |
| 85 PresentationSessionState newState); | 85 PresentationSessionState newState); |
| 86 | |
| 87 // Called when the frame is ready to process the next text message. | |
| 88 ListenForSessionTextMessage() | |
|
whywhat
2015/04/23 16:52:27
The Mojo document has something like this:
Listen
haibinlu
2015/04/25 00:05:14
Done. the callback parameter is array<SessionMessa
| |
| 89 => (PresentationSessionInfo sessionInfo, string message); | |
|
whywhat
2015/04/23 16:52:27
Also consider making it a MessageRequest that woul
haibinlu
2015/04/25 00:05:14
Added SessionMessage, borrowed from send-message C
| |
| 86 }; | 90 }; |
| OLD | NEW |