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

Unified Diff: Source/modules/presentation/Presentation.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: Source/modules/presentation/Presentation.h
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h
index 8a5ce56b7ffacd79e69c2b1c3bbe3ed1e235e886..ab92d860cda2a51f53d85273a899bed966a35689 100644
--- a/Source/modules/presentation/Presentation.h
+++ b/Source/modules/presentation/Presentation.h
@@ -21,6 +21,7 @@ namespace blink {
class LocalFrame;
class PresentationController;
class ScriptState;
+class WebPresentationSessionClient;
// Implements the main entry point of the Presentation API corresponding to the Presentation.idl
// See https://w3c.github.io/presentation-api/#navigatorpresentation for details.
@@ -65,6 +66,9 @@ public:
// Adds a session to the open sessions list.
void registerSession(PresentationSession*);
+ // Returns the session that matches the WebPresentationSessionClient or null.
+ PresentationSession* findSession(WebPresentationSessionClient*);
+
private:
explicit Presentation(LocalFrame*);
« no previous file with comments | « no previous file | Source/modules/presentation/Presentation.cpp » ('j') | Source/modules/presentation/Presentation.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698