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

Unified Diff: third_party/WebKit/public/platform/modules/geolocation/geolocation.mojom

Issue 2201883003: Geolocation: move mojom from WebKit to device/geolocation/public/interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ortuno@s and rockot@s comments, tiny rebase Created 4 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 | « third_party/WebKit/public/platform/modules/geolocation/OWNERS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/geolocation/geolocation.mojom
diff --git a/third_party/WebKit/public/platform/modules/geolocation/geolocation.mojom b/third_party/WebKit/public/platform/modules/geolocation/geolocation.mojom
deleted file mode 100644
index 165192321e8d1c65463122bb3304edb77df26540..0000000000000000000000000000000000000000
--- a/third_party/WebKit/public/platform/modules/geolocation/geolocation.mojom
+++ /dev/null
@@ -1,67 +0,0 @@
-// 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.
-
-module blink.mojom;
-
-// A Geoposition represents a position fix. It was originally derived from:
-// http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h
-// TODO(blundell): Investigate killing content::Geoposition in favor of using
-// this struct everywhere.
-struct Geoposition {
- // These values follow the W3C geolocation specification and can be returned
- // to JavaScript without the need for a conversion.
- enum ErrorCode {
- NONE = 0, // Chrome addition.
- PERMISSION_DENIED = 1,
- POSITION_UNAVAILABLE = 2,
- TIMEOUT = 3,
- LAST = TIMEOUT
- };
-
- // Whether this geoposition is valid.
- bool valid;
-
- // These properties correspond to those of the JavaScript Position object
- // although their types may differ.
- // Latitude in decimal degrees north (WGS84 coordinate frame).
- double latitude;
- // Longitude in decimal degrees west (WGS84 coordinate frame).
- double longitude;
- // Altitude in meters (above WGS84 datum).
- double altitude;
- // Accuracy of horizontal position in meters.
- double accuracy;
- // Accuracy of altitude in meters.
- double altitude_accuracy;
- // Heading in decimal degrees clockwise from true north.
- double heading;
- // Horizontal component of device velocity in meters per second.
- double speed;
- // TODO(blundell): If I need to represent this differently to use this
- // struct to replace content::Geolocation, I'll need to convert
- // correctly into seconds-since-epoch when using this in
- // GeolocationDispatcher::OnLocationUpdate().
- // Time of position measurement in seconds since Epoch in UTC time. This is
- // taken from the host computer's system clock (i.e. from Time::Now(), not the
- // source device's clock).
- double timestamp;
-
- // Error code, see enum above.
- ErrorCode error_code;
- // Human-readable error message.
- string error_message;
-};
-
-// The Geolocation service provides updates on the device's location. By
-// default, it provides updates with low accuracy, but |SetHighAccuracy()| may
-// be called to change this.
-interface GeolocationService {
- SetHighAccuracy(bool high_accuracy);
-
- // Position is reported once it changes or immediately (to report the initial
- // position) if this is the first call to QueryNextPosition on this instance.
- // Position updates may be throttled by the service. Overlapping calls to
- // this method are prohibited and will be treated as a connection error.
- QueryNextPosition() => (Geoposition geoposition);
-};
« no previous file with comments | « third_party/WebKit/public/platform/modules/geolocation/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698