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

Unified Diff: third_party/WebKit/public/platform/modules/presentation/presentation.mojom

Issue 2471573005: [Presentation API] (5th) (1-UA) integrate controller and receiver side for 1-UA messaging (Closed)
Patch Set: call OPM.unregisterOPMController() in PresentationFrame::Reset() Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/presentation/presentation.mojom
diff --git a/third_party/WebKit/public/platform/modules/presentation/presentation.mojom b/third_party/WebKit/public/platform/modules/presentation/presentation.mojom
index 7f96ac8410a8fbfafdb4eb9d68d97381ec7cfba7..ebb776d96a021a67cffc275214cf3d3fa9e5ee21 100644
--- a/third_party/WebKit/public/platform/modules/presentation/presentation.mojom
+++ b/third_party/WebKit/public/platform/modules/presentation/presentation.mojom
@@ -134,6 +134,9 @@ interface PresentationService {
};
interface PresentationServiceClient {
+
+ ////////////Functions here are called only on the controlling page.///////////
+
// Called when the client tries to listen for screen availability changes for
// presentation of |url| but it is not supported by the device or underlying
// platform. This can also be called if the device is currently in a mode
@@ -146,6 +149,11 @@ interface PresentationServiceClient {
// the current known state. It will then be called to notify of state updates.
OnScreenAvailabilityUpdated(url.mojom.Url url, bool available);
+ // See PresentationService::SetDefaultPresentationURL.
+ OnDefaultSessionStarted(PresentationSessionInfo sessionInfo);
+
+ //////////////////////////////////////////////////////////////////////////////
+
// Called when the state of PresentationConnection |connection| started on
// this frame has changed to |newState|.
OnConnectionStateChanged(PresentationSessionInfo connection,
@@ -161,9 +169,8 @@ interface PresentationServiceClient {
OnSessionMessagesReceived(PresentationSessionInfo sessionInfo,
array<SessionMessage> messages);
- // See PresentationService::SetDefaultPresentationURL.
- OnDefaultSessionStarted(PresentationSessionInfo sessionInfo);
-
- // See PresentationService::ListeningForReceiverPageRendered.
- OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo);
+ // Called on a presentation receiver when the first presentation connection is
+ // available from the controlling page.
+ OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo,
+ PresentationConnection connection);
};
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698