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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "modules/presentation/PresentationConnectionList.h"
6
7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "core/dom/DOMException.h"
9 #include "core/dom/Document.h"
10 #include "core/dom/ExceptionCode.h"
11 #include "core/events/Event.h"
12 #include "core/frame/LocalFrame.h"
13 #include "modules/EventTargetModules.h"
14
15 namespace blink {
16
17 PresentationConnectionList::PresentationConnectionList(LocalFrame* frame)
18 : DOMWindowProperty(frame)
19 {
20 }
21
22 const AtomicString& PresentationConnectionList::interfaceName() const
23 {
24 return EventTargetNames::PresentationConnectionList;
25 }
26
27 ExecutionContext* PresentationConnectionList::getExecutionContext() const
28 {
29 return nullptr;
haraken 2016/08/23 00:03:48 We shouldn't return nullptr from getExecutionConte
zhaobin 2016/08/23 00:45:51 Done.
30 }
31
32 const HeapVector<Member<PresentationConnection>>& PresentationConnectionList::co nnections() const
33 {
34 return m_connections;
35 }
36
37 DEFINE_TRACE(PresentationConnectionList)
38 {
39 visitor->trace(m_connections);
40 EventTargetWithInlineData::trace(visitor);
41 DOMWindowProperty::trace(visitor);
42 }
43
44 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698