Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/presentation.mojom

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: PresentationConnectionProxy::Send() will be invoked from PresentationDispatcher Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // TODO(crbug.com/647290): Rename "Session" to "Connection" 5 // TODO(crbug.com/647290): Rename "Session" to "Connection"
6 6
7 module blink.mojom; 7 module blink.mojom;
8 8
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 interface PresentationConnection { 56 interface PresentationConnection {
57 // TODO(zhaobin): migrate SendSessionMessage from PresentationService => 57 // TODO(zhaobin): migrate SendSessionMessage from PresentationService =>
58 // PresentationConnection.Send(). http://crbug.com/658474 58 // PresentationConnection.Send(). http://crbug.com/658474
59 59
60 // Called to set the PresentationConnection that is the destination for 60 // Called to set the PresentationConnection that is the destination for
61 // messages sent and the source of messages received by this connection. 61 // messages sent and the source of messages received by this connection.
62 SetTargetConnection(PresentationConnection connection); 62 SetTargetConnection(PresentationConnection connection);
63 63
64 // Called when a message is sent by the target connection. 64 // Called when a message is sent by the target connection.
65 OnMessage(SessionMessage message); 65 OnMessage(SessionMessage message) => (bool success);
66
67 // Called when target connection notifies connection state change.
68 DidChangeState(PresentationConnectionState state);
66 }; 69 };
67 70
68 interface PresentationService { 71 interface PresentationService {
69 // Sets the PresentationServiceClient. 72 // Sets the PresentationServiceClient.
70 SetClient(PresentationServiceClient client); 73 SetClient(PresentationServiceClient client);
71 74
72 ///////////// Functions here are for the controller part of the API. ///////// 75 ///////////// Functions here are for the controller part of the API. /////////
73 76
74 // Called when the frame sets or changes the default presentation URLs. 77 // Called when the frame sets or changes the default presentation URLs.
75 // When the default presentation is started on this frame, 78 // When the default presentation is started on this frame,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // See PresentationService::ListenForSessionMessages. 164 // See PresentationService::ListenForSessionMessages.
162 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, 165 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo,
163 array<SessionMessage> messages); 166 array<SessionMessage> messages);
164 167
165 // See PresentationService::SetDefaultPresentationURL. 168 // See PresentationService::SetDefaultPresentationURL.
166 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); 169 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo);
167 170
168 // See PresentationService::ListeningForReceiverPageRendered. 171 // See PresentationService::ListeningForReceiverPageRendered.
169 OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo); 172 OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo);
170 }; 173 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698