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

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

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.cpp
diff --git a/Source/modules/presentation/Presentation.cpp b/Source/modules/presentation/Presentation.cpp
index 6213d4f13505572dec88ee06057941372f2fe0df..c72b9bdac372c4ee3ac03d4902d8fce805d7ab04 100644
--- a/Source/modules/presentation/Presentation.cpp
+++ b/Source/modules/presentation/Presentation.cpp
@@ -14,6 +14,7 @@
#include "core/frame/LocalFrame.h"
#include "modules/EventTargetModules.h"
#include "modules/presentation/AvailableChangeEvent.h"
+#include "modules/presentation/DefaultPresentationStartEvent.h"
#include "modules/presentation/PresentationController.h"
#include "modules/presentation/PresentationSessionClientCallbacks.h"
@@ -145,6 +146,11 @@ bool Presentation::isAvailableChangeWatched() const
return hasEventListeners(EventTypeNames::availablechange);
}
+void Presentation::didStartDefaultPresentation(PresentationSession* session)
+{
+ dispatchEvent(DefaultPresentationStartEvent::create(EventTypeNames::defaultpresentationstart, session));
+}
+
void Presentation::registerSession(PresentationSession* session)
{
m_openSessions.add(session);

Powered by Google App Engine
This is Rietveld 408576698