Index: Source/modules/presentation/Presentation.h |
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h |
index b324a562654628f786f10582bbd7715684de7fe2..f595a6f7b7e3947592fa6ce745dd2cec7ea52859 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,12 @@ 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*); |
+ // Queried by the controller if |defaultpresentationstart| event has any listeners. |
+ bool isDefaultPresentationStartWatched() const; |
+ |
// Adds a session to the open sessions list. |
void registerSession(PresentationSession*); |