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

Unified Diff: Source/modules/presentation/DefaultPresentationStartEvent.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/DefaultPresentationStartEvent.cpp
diff --git a/Source/modules/presentation/DefaultPresentationStartEvent.cpp b/Source/modules/presentation/DefaultPresentationStartEvent.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..15716a31183a931b7d482020b5b9afe679b56d3c
--- /dev/null
+++ b/Source/modules/presentation/DefaultPresentationStartEvent.cpp
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "modules/presentation/DefaultPresentationStartEvent.h"
+
+namespace blink {
+
+DefaultPresentationStartEvent::~DefaultPresentationStartEvent()
+{
+}
+
+DefaultPresentationStartEvent::DefaultPresentationStartEvent()
+{
+}
+
+DefaultPresentationStartEvent::DefaultPresentationStartEvent(const AtomicString& eventType, PresentationSession* session)
+ : Event(eventType,
+ false, // canBubble
Peter Beverloo 2015/03/09 19:05:28 nit: it's more common in Blink to have something l
whywhat 2015/03/10 13:00:44 Yes, but I believe this is harder to parse and st
Peter Beverloo 2015/03/10 13:06:53 https://code.google.com/p/chromium/codesearch#sear
whywhat 2015/03/10 15:18:51 Done.
+ false) // cancelable
+ , m_session(session)
+{
+}
+
+DefaultPresentationStartEvent::DefaultPresentationStartEvent(const AtomicString& eventType, const DefaultPresentationStartEventInit& initializer)
+ : Event(eventType, initializer)
+ , m_session(initializer.session())
+{
+}
+
+const AtomicString& DefaultPresentationStartEvent::interfaceName() const
+{
+ return EventNames::DefaultPresentationStartEvent;
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698