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

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: 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
« no previous file with comments | « Source/modules/presentation/Presentation.h ('k') | Source/modules/presentation/Presentation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/Presentation.cpp
diff --git a/Source/modules/presentation/Presentation.cpp b/Source/modules/presentation/Presentation.cpp
index 6213d4f13505572dec88ee06057941372f2fe0df..0e470d6bc75f570accdb7035c48c0620ce362e4e 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/DefaultSessionStartEvent.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::didStartDefaultSession(PresentationSession* session)
+{
+ dispatchEvent(DefaultSessionStartEvent::create(EventTypeNames::defaultsessionstart, session));
+}
+
void Presentation::registerSession(PresentationSession* session)
{
m_openSessions.add(session);
« no previous file with comments | « Source/modules/presentation/Presentation.h ('k') | Source/modules/presentation/Presentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698