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

Unified Diff: content/common/presentation/presentation_service.mojom

Issue 1024903003: [Presentation API] Plumbing of |onstatechange| from the Mojo service to the public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the Mojo method again from the callback Created 5 years, 9 months 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/browser/presentation/presentation_service_impl.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/presentation/presentation_service.mojom
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom
index 99ab552c37f40c542d3588b9c14c0189abb8df32..0476e9dea653633316664162cbca9b1fa8b41822 100644
--- a/content/common/presentation/presentation_service.mojom
+++ b/content/common/presentation/presentation_service.mojom
@@ -9,6 +9,11 @@ struct PresentationSessionInfo {
string id;
};
+enum PresentationSessionState {
+ CONNECTED,
+ DISCONNECTED
+};
+
enum PresentationErrorType {
NO_AVAILABLE_SCREENS,
SESSION_REQUEST_CANCELLED,
@@ -72,4 +77,11 @@ interface PresentationService {
// Called when closeSession() is called by the frame.
CloseSession(string presentation_url, string presentation_id);
+
+ // Called when the frame is ready to process the next state change. Returns
+ // the last session state if it’s changed since the last time the callback
+ // was called. Might cause the event fired with the initial state change.
+ ListenForSessionStateChange()
+ => (PresentationSessionInfo sessionInfo,
+ PresentationSessionState newState);
};
« no previous file with comments | « content/browser/presentation/presentation_service_impl.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698