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

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: Replaced the unused forward declaration with the used one Created 5 years, 10 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..c506a301f7e912e53f2bc22f3d3fb84b5b7e0a27 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(defaultpresentationstart);
// 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 |defaultpresentationstart| event needs to be fired.
+ void didStartDefaultPresentation(PresentationSession*);
+
// Adds a session to the open sessions list.
void registerSession(PresentationSession*);

Powered by Google App Engine
This is Rietveld 408576698