| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |