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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp

Issue 2265363002: [Presentation API] make PresentationReceiver API consistent with latest spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..2dc856f8772bab827fb45a84a4fda6657ec32348
--- /dev/null
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
haraken 2016/08/23 00:03:48 2016
zhaobin 2016/08/23 00:45:51 Done.
zhaobin 2016/08/23 00:45:51 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "modules/presentation/PresentationConnectionList.h"
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "core/dom/DOMException.h"
+#include "core/dom/Document.h"
+#include "core/dom/ExceptionCode.h"
+#include "core/events/Event.h"
+#include "core/frame/LocalFrame.h"
+#include "modules/EventTargetModules.h"
+
+namespace blink {
+
+PresentationConnectionList::PresentationConnectionList(LocalFrame* frame)
+ : DOMWindowProperty(frame)
+{
+}
+
+const AtomicString& PresentationConnectionList::interfaceName() const
+{
+ return EventTargetNames::PresentationConnectionList;
+}
+
+ExecutionContext* PresentationConnectionList::getExecutionContext() const
+{
+ return nullptr;
haraken 2016/08/23 00:03:48 We shouldn't return nullptr from getExecutionConte
zhaobin 2016/08/23 00:45:51 Done.
+}
+
+const HeapVector<Member<PresentationConnection>>& PresentationConnectionList::connections() const
+{
+ return m_connections;
+}
+
+DEFINE_TRACE(PresentationConnectionList)
+{
+ visitor->trace(m_connections);
+ EventTargetWithInlineData::trace(visitor);
+ DOMWindowProperty::trace(visitor);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698