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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 StartSession(string presentation_url, string? presentation_id) | 63 StartSession(string presentation_url, string? presentation_id) |
64 => (PresentationSessionInfo? sessionInfo, PresentationError? error); | 64 => (PresentationSessionInfo? sessionInfo, PresentationError? error); |
65 | 65 |
66 // Called when joinSession() is called by the frame. The result callback | 66 // Called when joinSession() is called by the frame. The result callback |
67 // works the same as for the method above. JoinSession will join a known | 67 // works the same as for the method above. JoinSession will join a known |
68 // session (i.e. when the page navigates or the user opens another tab) | 68 // session (i.e. when the page navigates or the user opens another tab) |
69 // silently and without user action. | 69 // silently and without user action. |
70 JoinSession(string presentation_url, string? presentation_id) | 70 JoinSession(string presentation_url, string? presentation_id) |
71 => (PresentationSessionInfo? sessionInfo, PresentationError? error); | 71 => (PresentationSessionInfo? sessionInfo, PresentationError? error); |
72 | 72 |
73 // Called when postMessage(DOMString) is called by the frame. | |
74 PostMessage(string presentation_url, string presentation_id, string message) ; | |
whywhat
2015/03/26 00:24:14
nit: fit into 80 lines
Mojo guidelines suggest we
| |
75 | |
73 // Called when closeSession() is called by the frame. | 76 // Called when closeSession() is called by the frame. |
74 CloseSession(string presentation_url, string presentation_id); | 77 CloseSession(string presentation_url, string presentation_id); |
75 }; | 78 }; |
OLD | NEW |