Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PresentationConnectionList_h | |
| 6 #define PresentationConnectionList_h | |
| 7 | |
| 8 #include "core/dom/ContextLifecycleObserver.h" | |
| 9 #include "core/events/EventTarget.h" | |
| 10 #include "modules/presentation/PresentationConnection.h" | |
| 11 #include "platform/heap/Handle.h" | |
| 12 #include "platform/heap/Heap.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 // Implements the PresentationConnectionList interface from the Presentation API from | |
| 17 // which represents set of presentation connections in the set of | |
| 18 // presentation controllers. | |
| 19 class PresentationConnectionList final | |
| 20 : public EventTargetWithInlineData | |
| 21 , public ContextLifecycleObserver { | |
|
mlamouri (slow - plz ping)
2016/08/24 16:48:59
I think DOMWindowProperty would make sense.
zhaobin
2016/08/24 17:34:12
haraken suggests that it is not necessary to inher
| |
| 22 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnectionList); | |
| 23 DEFINE_WRAPPERTYPEINFO(); | |
| 24 public: | |
| 25 explicit PresentationConnectionList(LocalFrame*); | |
|
haraken
2016/08/24 01:09:33
Would you pass in ExecutionContext* instead of Loc
zhaobin
2016/08/24 17:34:12
Done.
| |
| 26 ~PresentationConnectionList() = default; | |
| 27 | |
| 28 // EventTarget implementation. | |
| 29 const AtomicString& interfaceName() const override; | |
| 30 ExecutionContext* getExecutionContext() const override; | |
| 31 | |
| 32 const HeapVector<Member<PresentationConnection>>& connections() const; | |
| 33 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); | |
| 34 | |
| 35 DECLARE_VIRTUAL_TRACE(); | |
| 36 | |
| 37 private: | |
| 38 HeapVector<Member<PresentationConnection>> m_connections; | |
| 39 }; | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif // PresentationConnectionList_h | |
| OLD | NEW |