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

Unified Diff: Source/modules/presentation/Presentation.h

Issue 974993002: [Presentation API] Added the DefaultPresentationStart event and parsing of the default presentation… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed last reviewers wishes 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 b324a562654628f786f10582bbd7715684de7fe2..8a5ce56b7ffacd79e69c2b1c3bbe3ed1e235e886 100644
--- a/Source/modules/presentation/Presentation.h
+++ b/Source/modules/presentation/Presentation.h
@@ -46,6 +46,7 @@ public:
ScriptPromise joinSession(ScriptState*, const String& presentationUrl, const String& presentationId);
DEFINE_ATTRIBUTE_EVENT_LISTENER(availablechange);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(defaultsessionstart);
// The embedder needs to keep track if anything is listening to the event so it could stop the
// might be expensive screen discovery process.
@@ -57,6 +58,10 @@ public:
void didChangeAvailability(bool available);
// Queried by the controller if |availablechange| event has any listeners.
bool isAvailableChangeWatched() const;
+
+ // Called when the |defaultsessionstart| event needs to be fired.
+ void didStartDefaultSession(PresentationSession*);
+
// Adds a session to the open sessions list.
void registerSession(PresentationSession*);
« no previous file with comments | « Source/modules/presentation/DefaultSessionStartEventInit.idl ('k') | Source/modules/presentation/Presentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698