| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 DefaultSessionStartEvent_h | 5 #ifndef DefaultSessionStartEvent_h |
| 6 #define DefaultSessionStartEvent_h | 6 #define DefaultSessionStartEvent_h |
| 7 | 7 |
| 8 #include "modules/EventModules.h" | 8 #include "modules/EventModules.h" |
| 9 #include "modules/presentation/PresentationSession.h" | 9 #include "modules/presentation/PresentationSession.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 static PassRefPtrWillBeRawPtr<DefaultSessionStartEvent> create(const AtomicS
tring& eventType, const DefaultSessionStartEventInit& initializer) | 32 static PassRefPtrWillBeRawPtr<DefaultSessionStartEvent> create(const AtomicS
tring& eventType, const DefaultSessionStartEventInit& initializer) |
| 33 { | 33 { |
| 34 return adoptRefWillBeNoop(new DefaultSessionStartEvent(eventType, initia
lizer)); | 34 return adoptRefWillBeNoop(new DefaultSessionStartEvent(eventType, initia
lizer)); |
| 35 } | 35 } |
| 36 | 36 |
| 37 PresentationSession* session() { return m_session.get(); } | 37 PresentationSession* session() { return m_session.get(); } |
| 38 | 38 |
| 39 virtual const AtomicString& interfaceName() const override; | 39 virtual const AtomicString& interfaceName() const override; |
| 40 | 40 |
| 41 DECLARE_VIRTUAL_TRACE(); |
| 42 |
| 41 private: | 43 private: |
| 42 DefaultSessionStartEvent(); | 44 DefaultSessionStartEvent(); |
| 43 DefaultSessionStartEvent(const AtomicString& eventType, PresentationSession*
); | 45 DefaultSessionStartEvent(const AtomicString& eventType, PresentationSession*
); |
| 44 DefaultSessionStartEvent(const AtomicString& eventType, const DefaultSession
StartEventInit& initializer); | 46 DefaultSessionStartEvent(const AtomicString& eventType, const DefaultSession
StartEventInit& initializer); |
| 45 | 47 |
| 46 Persistent<PresentationSession> m_session; | 48 PersistentWillBeMember<PresentationSession> m_session; |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 DEFINE_TYPE_CASTS(DefaultSessionStartEvent, Event, event, event->interfaceName()
== EventNames::DefaultSessionStartEvent, event.interfaceName() == EventNames::D
efaultSessionStartEvent); | 51 DEFINE_TYPE_CASTS(DefaultSessionStartEvent, Event, event, event->interfaceName()
== EventNames::DefaultSessionStartEvent, event.interfaceName() == EventNames::D
efaultSessionStartEvent); |
| 50 | 52 |
| 51 } // namespace blink | 53 } // namespace blink |
| 52 | 54 |
| 53 #endif // DefaultSessionStartEvent_h | 55 #endif // DefaultSessionStartEvent_h |
| OLD | NEW |