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 import "presentation_session.mojom"; | 7 import "presentation_session.mojom"; |
| 8 | 8 |
| 9 struct PresentationSessionInfo { | 9 struct PresentationSessionInfo { |
| 10 PresentationSession session; | 10 PresentationSession session; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 // UA will generate the presentation id. | 64 // UA will generate the presentation id. |
| 65 StartSession(string presentation_url, string? presentation_id) | 65 StartSession(string presentation_url, string? presentation_id) |
| 66 => (PresentationSessionInfo? sessionInfo, PresentationError? error); | 66 => (PresentationSessionInfo? sessionInfo, PresentationError? error); |
| 67 | 67 |
| 68 // Called when joinSession() is called by the frame. The result callback | 68 // Called when joinSession() is called by the frame. The result callback |
| 69 // works the same as for the method above. JoinSession will join a known | 69 // works the same as for the method above. JoinSession will join a known |
| 70 // session (i.e. when the page navigates or the user opens another tab) | 70 // session (i.e. when the page navigates or the user opens another tab) |
| 71 // silently and without user action. | 71 // silently and without user action. |
| 72 JoinSession(string presentation_url, string? presentation_id) | 72 JoinSession(string presentation_url, string? presentation_id) |
| 73 => (PresentationSessionInfo? sessionInfo, PresentationError? error); | 73 => (PresentationSessionInfo? sessionInfo, PresentationError? error); |
| 74 }; | 74 |
| 75 // Called when closeSession() is called by the frame. | |
| 76 CloseSession(string presentation_url, string? presentation_id); | |
|
whywhat
2015/03/19 01:05:27
I don't think the id is optional here. It will be
haibinlu
2015/03/19 01:15:37
Right, it should not be optional. Updated.
| |
| 77 }; | |
| OLD | NEW |