Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |