| 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 26 matching lines...) Expand all Loading... |
| 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 |
| 43 DECLARE_VIRTUAL_TRACE(); | 43 DECLARE_VIRTUAL_TRACE(); |
| 44 | 44 |
| 45 PresentationSession* session() const; | 45 PresentationSession* session() const; |
| 46 | 46 |
| 47 ScriptPromise startSession(ScriptState*, const String& presentationUrl, cons
t String& presentationId); | 47 ScriptPromise startSession(ScriptState*, const String& presentationUrl); |
| 48 ScriptPromise joinSession(ScriptState*, const String& presentationUrl, const
String& presentationId); | 48 ScriptPromise joinSession(ScriptState*, const String& presentationUrl, const
String& presentationId); |
| 49 ScriptPromise getAvailability(ScriptState*, const String& presentationUrl); | 49 ScriptPromise getAvailability(ScriptState*, const String& presentationUrl); |
| 50 | 50 |
| 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(defaultsessionstart); | 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(defaultsessionstart); |
| 52 | 52 |
| 53 // Called when the |defaultsessionstart| event needs to be fired. | 53 // Called when the |defaultsessionstart| event needs to be fired. |
| 54 void didStartDefaultSession(PresentationSession*); | 54 void didStartDefaultSession(PresentationSession*); |
| 55 | 55 |
| 56 // Called when the |onstatechange| event needs to be fired to the right sess
ion. | 56 // Called when the |onstatechange| event needs to be fired to the right sess
ion. |
| 57 void didChangeSessionState(WebPresentationSessionClient*, WebPresentationSes
sionState); | 57 void didChangeSessionState(WebPresentationSessionClient*, WebPresentationSes
sionState); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 // The session object provided to the presentation page. Not supported. | 71 // The session object provided to the presentation page. Not supported. |
| 72 Member<PresentationSession> m_session; | 72 Member<PresentationSession> m_session; |
| 73 | 73 |
| 74 // The sessions opened for this frame. | 74 // The sessions opened for this frame. |
| 75 HeapHashSet<Member<PresentationSession>> m_openSessions; | 75 HeapHashSet<Member<PresentationSession>> m_openSessions; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // Presentation_h | 80 #endif // Presentation_h |
| OLD | NEW |