OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef GeofencingEvent_h | |
6 #define GeofencingEvent_h | |
7 | |
8 #include "modules/EventModules.h" | |
9 #include "modules/ModulesExport.h" | |
10 #include "modules/geofencing/GeofencingRegion.h" | |
11 #include "platform/heap/Handle.h" | |
12 #include "wtf/text/AtomicString.h" | |
13 #include "wtf/text/WTFString.h" | |
14 | |
15 namespace blink { | |
16 | |
17 class GeofencingRegion; | |
18 | |
19 // FIXME: This should derive from ExtendableEvent. | |
20 class MODULES_EXPORT GeofencingEvent final : public Event { | |
21 DEFINE_WRAPPERTYPEINFO(); | |
22 public: | |
23 static GeofencingEvent* create() | |
24 { | |
25 return new GeofencingEvent; | |
26 } | |
27 | |
28 static GeofencingEvent* create(const AtomicString& type, const String& id, G
eofencingRegion* region) | |
29 { | |
30 return new GeofencingEvent(type, id, region); | |
31 } | |
32 | |
33 ~GeofencingEvent() override; | |
34 DECLARE_VIRTUAL_TRACE(); | |
35 | |
36 const AtomicString& interfaceName() const override; | |
37 | |
38 String id() const { return m_id; } | |
39 | |
40 GeofencingRegion* region() const { return m_region; } | |
41 | |
42 private: | |
43 GeofencingEvent(); | |
44 GeofencingEvent(const AtomicString& type, const String& id, GeofencingRegion
*); | |
45 String m_id; | |
46 Member<GeofencingRegion> m_region; | |
47 }; | |
48 | |
49 } // namespace blink | |
50 | |
51 #endif // GeofencingEvent_h | |
OLD | NEW |