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

Unified Diff: Source/modules/geolocation/GeofencingRegion.h

Issue 375353002: Add the first very basic bits of a geofencing API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nits Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/geolocation/CircularRegion.idl ('k') | Source/modules/geolocation/GeofencingRegion.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/GeofencingRegion.h
diff --git a/Source/modules/geolocation/GeofencingRegion.h b/Source/modules/geolocation/GeofencingRegion.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a0256ee8f88fb666deb74fde13a0d42473bca39
--- /dev/null
+++ b/Source/modules/geolocation/GeofencingRegion.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GeofencingRegion_h
+#define GeofencingRegion_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+#include "wtf/text/WTFString.h"
+
+namespace WebCore {
+
+class GeofencingRegion : public GarbageCollectedFinalized<GeofencingRegion>, public ScriptWrappable {
+ WTF_MAKE_NONCOPYABLE(GeofencingRegion);
+public:
+ virtual ~GeofencingRegion() { }
+
+ String id() const { return m_id; }
+
+ virtual void trace(Visitor*) { }
+
+protected:
+ GeofencingRegion(const String& id) : m_id(id) { }
+
+private:
+ String m_id;
+};
+
+} // namespace WebCore
+
+#endif
« no previous file with comments | « Source/modules/geolocation/CircularRegion.idl ('k') | Source/modules/geolocation/GeofencingRegion.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698