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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h

Issue 2265363002: [Presentation API] make PresentationReceiver API consistent with latest spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve code review comments 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698