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

Unified Diff: Source/modules/geofencing/Geofencing.cpp

Issue 401713005: Move all geofencing code into its own module separate from geolocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test expectations Created 6 years, 4 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/geofencing/Geofencing.h ('k') | Source/modules/geofencing/Geofencing.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geofencing/Geofencing.cpp
diff --git a/Source/modules/geofencing/Geofencing.cpp b/Source/modules/geofencing/Geofencing.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..59d8b975755550e0b2f48b7a08e7fda81d16acc8
--- /dev/null
+++ b/Source/modules/geofencing/Geofencing.cpp
@@ -0,0 +1,34 @@
+// 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.
+
+#include "config.h"
+#include "modules/geofencing/Geofencing.h"
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "core/dom/DOMException.h"
+#include "core/dom/ExceptionCode.h"
+
+namespace blink {
+
+Geofencing::Geofencing()
+{
+ ScriptWrappable::init(this);
+}
+
+ScriptPromise Geofencing::registerRegion(ScriptState* scriptState, GeofencingRegion* region)
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
+}
+
+ScriptPromise Geofencing::unregisterRegion(ScriptState* scriptState, const String& regionId)
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
+}
+
+ScriptPromise Geofencing::getRegisteredRegions(ScriptState* scriptState) const
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
+}
+
+} // namespace blink
« no previous file with comments | « Source/modules/geofencing/Geofencing.h ('k') | Source/modules/geofencing/Geofencing.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698