| 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 #include "modules/presentation/PresentationConnectionAvailableEvent.h" | 5 #include "modules/presentation/PresentationConnectionAvailableEvent.h" |
| 6 | 6 |
| 7 #include "modules/presentation/PresentationConnectionAvailableEventInit.h" | 7 #include "modules/presentation/PresentationConnectionAvailableEventInit.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 PresentationConnectionAvailableEvent::~PresentationConnectionAvailableEvent() | 11 PresentationConnectionAvailableEvent::~PresentationConnectionAvailableEvent() |
| 12 { | 12 { |
| 13 } | 13 } |
| 14 | 14 |
| 15 PresentationConnectionAvailableEvent::PresentationConnectionAvailableEvent() | |
| 16 { | |
| 17 } | |
| 18 | |
| 19 PresentationConnectionAvailableEvent::PresentationConnectionAvailableEvent(const
AtomicString& eventType, PresentationConnection* connection) | 15 PresentationConnectionAvailableEvent::PresentationConnectionAvailableEvent(const
AtomicString& eventType, PresentationConnection* connection) |
| 20 : Event(eventType, false /* canBubble */, false /* cancelable */) | 16 : Event(eventType, false /* canBubble */, false /* cancelable */) |
| 21 , m_connection(connection) | 17 , m_connection(connection) |
| 22 { | 18 { |
| 23 } | 19 } |
| 24 | 20 |
| 25 PresentationConnectionAvailableEvent::PresentationConnectionAvailableEvent(const
AtomicString& eventType, const PresentationConnectionAvailableEventInit& initia
lizer) | 21 PresentationConnectionAvailableEvent::PresentationConnectionAvailableEvent(const
AtomicString& eventType, const PresentationConnectionAvailableEventInit& initia
lizer) |
| 26 : Event(eventType, initializer) | 22 : Event(eventType, initializer) |
| 27 , m_connection(initializer.connection()) | 23 , m_connection(initializer.connection()) |
| 28 { | 24 { |
| 29 } | 25 } |
| 30 | 26 |
| 31 const AtomicString& PresentationConnectionAvailableEvent::interfaceName() const | 27 const AtomicString& PresentationConnectionAvailableEvent::interfaceName() const |
| 32 { | 28 { |
| 33 return EventNames::PresentationConnectionAvailableEvent; | 29 return EventNames::PresentationConnectionAvailableEvent; |
| 34 } | 30 } |
| 35 | 31 |
| 36 DEFINE_TRACE(PresentationConnectionAvailableEvent) | 32 DEFINE_TRACE(PresentationConnectionAvailableEvent) |
| 37 { | 33 { |
| 38 visitor->trace(m_connection); | 34 visitor->trace(m_connection); |
| 39 Event::trace(visitor); | 35 Event::trace(visitor); |
| 40 } | 36 } |
| 41 | 37 |
| 42 } // namespace blink | 38 } // namespace blink |
| OLD | NEW |