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

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: Created 4 years, 4 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.
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 "bindings/core/v8/ScriptPromise.h"
haraken 2016/08/23 00:03:48 It's unused.
zhaobin 2016/08/23 00:45:51 Done.
9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowProperty.h"
11 #include "modules/presentation/PresentationConnection.h"
12 #include "platform/heap/Handle.h"
13 #include "platform/heap/Heap.h"
14
15 namespace blink {
16
17 // Implements the PresentationConnectionList interface from the Presentation API from
18 // which represents set of presentation connections in the set of
19 // presentation controllers.
20 class PresentationConnectionList final
21 : public EventTargetWithInlineData
22 , public DOMWindowProperty {
haraken 2016/08/23 00:03:48 Why do you need to inherit from DOMWindowProperty?
zhaobin 2016/08/23 00:45:51 Done.
23 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnectionList);
24 DEFINE_WRAPPERTYPEINFO();
25 public:
26 PresentationConnectionList(LocalFrame*);
haraken 2016/08/23 00:03:48 Add explicit.
zhaobin 2016/08/23 00:45:51 Done.
27 ~PresentationConnectionList() = default;
28
29 // EventTarget implementation.
30 const AtomicString& interfaceName() const override;
31 ExecutionContext* getExecutionContext() const override;
32
33 const HeapVector<Member<PresentationConnection>>& connections() const;
34 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
35
36 DECLARE_VIRTUAL_TRACE();
37
38 private:
39 HeapVector<Member<PresentationConnection>> m_connections;
40 };
41
42 } // namespace blink
43
44 #endif // PresentationConnectionList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698