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

Unified Diff: public/platform/modules/presentation/WebPresentationController.h

Issue 1020303004: [PresentationAPI] Plumbing |onstatechange| event for the PresentationSession from Blink to platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added a return statement for the conversion function 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
Index: public/platform/modules/presentation/WebPresentationController.h
diff --git a/public/platform/modules/presentation/WebPresentationController.h b/public/platform/modules/presentation/WebPresentationController.h
index 8ed2da2f86fa5916a696978cba54dd8cd75a50ff..aab8fff61bbd94285f022d69ee1eedd27e9af9d1 100644
--- a/public/platform/modules/presentation/WebPresentationController.h
+++ b/public/platform/modules/presentation/WebPresentationController.h
@@ -8,6 +8,7 @@
namespace blink {
class WebPresentationSessionClient;
+enum class WebPresentationSessionState;
// The delegate Blink provides to WebPresentationClient in order to get updates.
class WebPresentationController {
@@ -24,6 +25,9 @@ public:
// Called when the presentation session is started by the embedder using
// the default presentation URL and id.
virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0;
+
+ // Called when the state of a session changes.
+ virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresentationSessionState) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698