| 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/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/frame/DOMWindowProperty.h" | 9 #include "core/frame/DOMWindowProperty.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "platform/heap/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class LocalFrame; | 15 class LocalFrame; |
| 16 class PresentationReceiver; | 16 class PresentationReceiver; |
| 17 class PresentationRequest; | 17 class PresentationRequest; |
| 18 | 18 |
| 19 // Implements the main entry point of the Presentation API corresponding to the
Presentation.idl | 19 // Implements the main entry point of the Presentation API corresponding to the |
| 20 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details
. | 20 // Presentation.idl |
| 21 // See https://w3c.github.io/presentation-api/#navigatorpresentation for |
| 22 // details. |
| 21 class Presentation final : public GarbageCollected<Presentation>, | 23 class Presentation final : public GarbageCollected<Presentation>, |
| 22 public ScriptWrappable, | 24 public ScriptWrappable, |
| 23 public DOMWindowProperty { | 25 public DOMWindowProperty { |
| 24 USING_GARBAGE_COLLECTED_MIXIN(Presentation); | 26 USING_GARBAGE_COLLECTED_MIXIN(Presentation); |
| 25 DEFINE_WRAPPERTYPEINFO(); | 27 DEFINE_WRAPPERTYPEINFO(); |
| 26 | 28 |
| 27 public: | 29 public: |
| 28 static Presentation* create(LocalFrame*); | 30 static Presentation* create(LocalFrame*); |
| 29 | 31 |
| 30 DECLARE_VIRTUAL_TRACE(); | 32 DECLARE_VIRTUAL_TRACE(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 Member<PresentationRequest> m_defaultRequest; | 43 Member<PresentationRequest> m_defaultRequest; |
| 42 | 44 |
| 43 // PresentationReceiver instance. It will always be nullptr if the Blink | 45 // PresentationReceiver instance. It will always be nullptr if the Blink |
| 44 // instance is not running as a presentation receiver. | 46 // instance is not running as a presentation receiver. |
| 45 Member<PresentationReceiver> m_receiver; | 47 Member<PresentationReceiver> m_receiver; |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 } // namespace blink | 50 } // namespace blink |
| 49 | 51 |
| 50 #endif // Presentation_h | 52 #endif // Presentation_h |
| OLD | NEW |