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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 StartSession(string presentation_url, string? presentation_id) | 67 StartSession(string presentation_url, string? presentation_id) |
| 68 => (PresentationSessionInfo? sessionInfo, PresentationError? error); | 68 => (PresentationSessionInfo? sessionInfo, PresentationError? error); |
| 69 | 69 |
| 70 // Called when joinSession() is called by the frame. The result callback | 70 // Called when joinSession() is called by the frame. The result callback |
| 71 // works the same as for the method above. JoinSession will join a known | 71 // works the same as for the method above. JoinSession will join a known |
| 72 // session (i.e. when the page navigates or the user opens another tab) | 72 // session (i.e. when the page navigates or the user opens another tab) |
| 73 // silently and without user action. | 73 // silently and without user action. |
| 74 JoinSession(string presentation_url, string? presentation_id) | 74 JoinSession(string presentation_url, string? presentation_id) |
| 75 => (PresentationSessionInfo? sessionInfo, PresentationError? error); | 75 => (PresentationSessionInfo? sessionInfo, PresentationError? error); |
| 76 | 76 |
| 77 // Called when send(String) is called by the frame. The result callback is t o get | |
|
mark a. foltz
2015/04/10 19:03:18
Please wrap at 80 columns.
USE s.singapati at gmail.com
2015/04/14 17:51:51
Done.
| |
| 78 // notified that message has been received and ready for the next one. | |
| 79 SendStringMessage( | |
| 80 string presentation_url, | |
| 81 string presentation_id, | |
| 82 string message) => (); | |
| 83 | |
| 77 // Called when closeSession() is called by the frame. | 84 // Called when closeSession() is called by the frame. |
| 78 CloseSession(string presentation_url, string presentation_id); | 85 CloseSession(string presentation_url, string presentation_id); |
| 79 | 86 |
| 80 // Called when the frame is ready to process the next state change. Returns | 87 // 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 | 88 // 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. | 89 // was called. Might cause the event fired with the initial state change. |
| 83 ListenForSessionStateChange() | 90 ListenForSessionStateChange() |
| 84 => (PresentationSessionInfo sessionInfo, | 91 => (PresentationSessionInfo sessionInfo, |
| 85 PresentationSessionState newState); | 92 PresentationSessionState newState); |
| 86 }; | 93 }; |
| OLD | NEW |