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

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

Issue 832263007: Added plumbing for the availablechange event from Blink to WebPresentationClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added isAvailableChangeWatched Created 5 years, 11 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/AvailableChangeEvent.cpp
diff --git a/Source/modules/presentation/AvailableChangeEvent.cpp b/Source/modules/presentation/AvailableChangeEvent.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..781ccefdeb7183e499549e1fc21877d4aa1819ec
--- /dev/null
+++ b/Source/modules/presentation/AvailableChangeEvent.cpp
@@ -0,0 +1,36 @@
+// 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/AvailableChangeEvent.h"
+
+namespace blink {
+
+AvailableChangeEvent::~AvailableChangeEvent()
+{
+}
+
+AvailableChangeEvent::AvailableChangeEvent()
+ : m_available(false)
+{
+}
+
+AvailableChangeEvent::AvailableChangeEvent(const AtomicString& eventType, bool available)
+ : Event(eventType, false, false)
+ , m_available(available)
mlamouri (slow - plz ping) 2015/01/26 10:24:44 nit: you could call the ctor below if creating a A
whywhat 2015/01/26 11:18:05 AvailableChangeEventInit doesn't have a constructo
+{
+}
+
+AvailableChangeEvent::AvailableChangeEvent(const AtomicString& eventType, const AvailableChangeEventInit& initializer)
+ : Event(eventType, initializer)
+ , m_available(initializer.available())
+{
+}
+
+const AtomicString& AvailableChangeEvent::interfaceName() const
+{
+ return EventNames::AvailableChangeEvent;
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698