Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: Source/modules/geofencing/GeofencingEvent.h

Issue 639133002: Oilpan: fix build after r183426. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/geofencing/GeofencingEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 GeofencingEvent_h 5 #ifndef GeofencingEvent_h
6 #define GeofencingEvent_h 6 #define GeofencingEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/geofencing/GeofencingRegion.h" 9 #include "modules/geofencing/GeofencingRegion.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/text/AtomicString.h" 11 #include "wtf/text/AtomicString.h"
12 #include "wtf/text/WTFString.h" 12 #include "wtf/text/WTFString.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class GeofencingRegion; 16 class GeofencingRegion;
17 17
18 // FIXME: This should derive from ExtendableEvent. 18 // FIXME: This should derive from ExtendableEvent.
19 class GeofencingEvent FINAL : public Event { 19 class GeofencingEvent final : public Event {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 public: 21 public:
22 static PassRefPtrWillBeRawPtr<GeofencingEvent> create() 22 static PassRefPtrWillBeRawPtr<GeofencingEvent> create()
23 { 23 {
24 return adoptRefWillBeNoop(new GeofencingEvent); 24 return adoptRefWillBeNoop(new GeofencingEvent);
25 } 25 }
26
26 static PassRefPtrWillBeRawPtr<GeofencingEvent> create(const AtomicString& ty pe, const String& id, GeofencingRegion* region) 27 static PassRefPtrWillBeRawPtr<GeofencingEvent> create(const AtomicString& ty pe, const String& id, GeofencingRegion* region)
27 { 28 {
28 return adoptRefWillBeNoop(new GeofencingEvent(type, id, region)); 29 return adoptRefWillBeNoop(new GeofencingEvent(type, id, region));
29 } 30 }
30 31
31 virtual ~GeofencingEvent(); 32 virtual ~GeofencingEvent();
33 virtual void trace(Visitor*) override;
32 34
33 virtual const AtomicString& interfaceName() const override; 35 virtual const AtomicString& interfaceName() const override;
34 36
35 String id() const { return m_id; } 37 String id() const { return m_id; }
36 38
37 GeofencingRegion* region() const { return m_region; } 39 GeofencingRegion* region() const { return m_region; }
38 40
39 private: 41 private:
40 GeofencingEvent(); 42 GeofencingEvent();
41 GeofencingEvent(const AtomicString& type, const String& id, GeofencingRegion *); 43 GeofencingEvent(const AtomicString& type, const String& id, GeofencingRegion *);
42 String m_id; 44 String m_id;
43 PersistentWillBeMember<GeofencingRegion> m_region; 45 PersistentWillBeMember<GeofencingRegion> m_region;
44 }; 46 };
45 47
46 } // namespace blink 48 } // namespace blink
47 49
48 #endif // GeofencingEvent_h 50 #endif // GeofencingEvent_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/geofencing/GeofencingEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698