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

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: 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..8fe660ee0b424b4f3cbfff1ac2a2038f276750b5
--- /dev/null
+++ b/Source/modules/presentation/AvailableChangeEvent.cpp
@@ -0,0 +1,40 @@
+// 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)
+{
+}
+
+AvailableChangeEvent::AvailableChangeEvent(const AtomicString& eventType, const AvailableChangeEventInit& initializer)
+ : Event(eventType, initializer)
+ , m_available(initializer.hasAvailable() ? initializer.available() : false)
Peter Beverloo 2015/01/07 14:29:08 Please set the default value in AvailableChangeEve
whywhat 2015/01/07 16:22:15 Done.
+{
+}
+
+const AtomicString& AvailableChangeEvent::interfaceName() const
+{
+ return EventNames::AvailableChangeEvent;
+}
+
+} // namespace blink
+
+
Peter Beverloo 2015/01/07 14:29:08 nit: excess newlines.
whywhat 2015/01/07 16:22:15 Done.
+
+

Powered by Google App Engine
This is Rietveld 408576698