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 #include "config.h" | 5 #include "config.h" |
6 #include "modules/geofencing/GeofencingEvent.h" | 6 #include "modules/geofencing/GeofencingEvent.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 GeofencingEvent::GeofencingEvent() | 10 GeofencingEvent::GeofencingEvent() |
11 { | 11 { |
12 } | 12 } |
13 | 13 |
14 GeofencingEvent::GeofencingEvent(const AtomicString& type, const String& id, Geo
fencingRegion* region) | 14 GeofencingEvent::GeofencingEvent(const AtomicString& type, const String& id, Geo
fencingRegion* region) |
15 : Event(type, /*canBubble=*/false, /*cancelable=*/false) | 15 : Event(type, /*canBubble=*/false, /*cancelable=*/false) |
16 , m_id(id) | 16 , m_id(id) |
17 , m_region(region) | 17 , m_region(region) |
18 { | 18 { |
19 } | 19 } |
20 | 20 |
21 GeofencingEvent::~GeofencingEvent() | 21 GeofencingEvent::~GeofencingEvent() |
22 { | 22 { |
23 } | 23 } |
24 | 24 |
| 25 void GeofencingEvent::trace(Visitor* visitor) |
| 26 { |
| 27 visitor->trace(m_region); |
| 28 Event::trace(visitor); |
| 29 } |
| 30 |
25 const AtomicString& GeofencingEvent::interfaceName() const | 31 const AtomicString& GeofencingEvent::interfaceName() const |
26 { | 32 { |
27 return EventNames::GeofencingEvent; | 33 return EventNames::GeofencingEvent; |
28 } | 34 } |
29 | 35 |
30 } // namespace blink | 36 } // namespace blink |
OLD | NEW |