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

Side by Side Diff: Source/modules/presentation/Presentation.h

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Presentation_h 5 #ifndef Presentation_h
6 #define Presentation_h 6 #define Presentation_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowProperty.h" 10 #include "core/frame/DOMWindowProperty.h"
(...skipping 11 matching lines...) Expand all
22 class PresentationController; 22 class PresentationController;
23 class ScriptState; 23 class ScriptState;
24 class WebPresentationSessionClient; 24 class WebPresentationSessionClient;
25 enum class WebPresentationSessionState; 25 enum class WebPresentationSessionState;
26 26
27 // Implements the main entry point of the Presentation API corresponding to the Presentation.idl 27 // Implements the main entry point of the Presentation API corresponding to the Presentation.idl
28 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details . 28 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details .
29 class Presentation final 29 class Presentation final
30 : public RefCountedGarbageCollectedEventTargetWithInlineData<Presentation> 30 : public RefCountedGarbageCollectedEventTargetWithInlineData<Presentation>
31 , public DOMWindowProperty { 31 , public DOMWindowProperty {
32 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<P resentation>); 32 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(Presentation);
33 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Presentation); 33 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Presentation);
34 DEFINE_WRAPPERTYPEINFO(); 34 DEFINE_WRAPPERTYPEINFO();
35 public: 35 public:
36 static Presentation* create(LocalFrame*); 36 static Presentation* create(LocalFrame*);
37 virtual ~Presentation(); 37 virtual ~Presentation();
38 38
39 // EventTarget implementation. 39 // EventTarget implementation.
40 virtual const AtomicString& interfaceName() const override; 40 virtual const AtomicString& interfaceName() const override;
41 virtual ExecutionContext* executionContext() const override; 41 virtual ExecutionContext* executionContext() const override;
42 42
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // The session object provided to the presentation page. Not supported. 86 // The session object provided to the presentation page. Not supported.
87 Member<PresentationSession> m_session; 87 Member<PresentationSession> m_session;
88 88
89 // The sessions opened for this frame. 89 // The sessions opened for this frame.
90 HeapHashSet<Member<PresentationSession>> m_openSessions; 90 HeapHashSet<Member<PresentationSession>> m_openSessions;
91 }; 91 };
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // Presentation_h 95 #endif // Presentation_h
OLDNEW
« no previous file with comments | « Source/modules/permissions/PermissionStatus.h ('k') | Source/modules/presentation/PresentationSession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698