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

Unified Diff: device/geolocation/geoposition.h

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 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 | « device/geolocation/geolocation_service_impl.cc ('k') | device/geolocation/geoposition.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geoposition.h
diff --git a/device/geolocation/geoposition.h b/device/geolocation/geoposition.h
deleted file mode 100644
index 55006c5786dcd3fce71d6364961a118cf413bd6b..0000000000000000000000000000000000000000
--- a/device/geolocation/geoposition.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 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.
-
-// This file declares the Geoposition structure, used to represent a position
-// fix. It was originally derived from:
-// http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h
-
-#ifndef DEVICE_GEOLOCATION_GEOPOSITION_H_
-#define DEVICE_GEOLOCATION_GEOPOSITION_H_
-
-#include <string>
-
-#include "base/time/time.h"
-#include "device/geolocation/geolocation_export.h"
-
-namespace device {
-
-struct DEVICE_GEOLOCATION_EXPORT Geoposition {
- public:
- // These values follow the W3C geolocation specification and can be returned
- // to JavaScript without the need for a conversion.
- enum ErrorCode {
- ERROR_CODE_NONE = 0, // Chrome addition.
- ERROR_CODE_PERMISSION_DENIED = 1,
- ERROR_CODE_POSITION_UNAVAILABLE = 2,
- ERROR_CODE_TIMEOUT = 3,
- ERROR_CODE_LAST = ERROR_CODE_TIMEOUT
- };
-
- // All fields are initialized to sentinel values marking them as invalid. The
- // error code is set to ERROR_CODE_NONE.
- Geoposition();
-
- Geoposition(const Geoposition& other);
-
- // A valid fix has a valid latitude, longitude, accuracy and timestamp.
- bool Validate() const;
-
- // 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;
- // Time of position measurement in milisecons 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).
- base::Time timestamp;
-
- // Error code, see enum above.
- ErrorCode error_code;
- // Human-readable error message.
- std::string error_message;
-};
-
-} // namespace device
-
-#endif // DEVICE_GEOLOCATION_GEOPOSITION_H_
« no previous file with comments | « device/geolocation/geolocation_service_impl.cc ('k') | device/geolocation/geoposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698