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

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: 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..e0ff7e9e556878a46a401ce98c33a5a896e49498 100644
--- a/public/platform/modules/presentation/WebPresentationController.h
+++ b/public/platform/modules/presentation/WebPresentationController.h
@@ -5,9 +5,9 @@
#ifndef WebPresentationController_h
#define WebPresentationController_h
-namespace blink {
+#include "public/platform/modules/presentation/WebPresentationSessionClient.h"
mlamouri (slow - plz ping) 2015/03/23 17:54:16 You should make the enum an enum class so you can
whywhat 2015/03/23 21:12:16 Done.
-class WebPresentationSessionClient;
+namespace blink {
// The delegate Blink provides to WebPresentationClient in order to get updates.
class WebPresentationController {
@@ -24,6 +24,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*, WebPresentationSessionClient::SessionState) = 0;
Peter Beverloo 2015/03/20 19:07:40 This means that the Chromium patch has to land fir
Peter Beverloo 2015/03/20 19:16:59 Scrap that :-).
whywhat 2015/03/23 21:12:16 Acknowledged.
whywhat 2015/03/23 21:12:16 Acknowledged.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698