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/events/EventTarget.h" | |
| 9 #include "core/frame/DOMWindowProperty.h" | |
|
haraken
2016/08/23 02:19:33
It's unused.
zhaobin
2016/08/23 20:43:53
Done.
| |
| 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 | |
|
mark a. foltz
2016/08/23 19:08:49
mlamouri@: PresentationConnection, PresentationRec
| |
| 20 : public EventTargetWithInlineData { | |
|
mlamouri (slow - plz ping)
2016/08/23 13:04:50
style: keep in the same line?
zhaobin
2016/08/23 20:43:54
Added a new base class, keep them in seperate line
| |
| 21 DEFINE_WRAPPERTYPEINFO(); | |
| 22 public: | |
| 23 explicit PresentationConnectionList(LocalFrame*); | |
| 24 ~PresentationConnectionList() = default; | |
| 25 | |
| 26 // EventTarget implementation. | |
| 27 const AtomicString& interfaceName() const override; | |
| 28 ExecutionContext* getExecutionContext() const override; | |
| 29 | |
| 30 const HeapVector<Member<PresentationConnection>>& connections() const; | |
| 31 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); | |
| 32 | |
| 33 DECLARE_VIRTUAL_TRACE(); | |
| 34 | |
| 35 private: | |
| 36 HeapVector<Member<PresentationConnection>> m_connections; | |
| 37 Member<LocalFrame> m_frame; | |
|
haraken
2016/08/23 02:19:33
There's not reason you need to keep a pointer to L
zhaobin
2016/08/23 20:43:54
Done.
| |
| 38 }; | |
| 39 | |
| 40 } // namespace blink | |
| 41 | |
| 42 #endif // PresentationConnectionList_h | |
| OLD | NEW |