summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/geoposition.h
diff options
context:
space:
mode:
authorbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-23 15:36:17 +0000
committerbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-23 15:36:17 +0000
commitf3aedce59786661c87448f40410869ca79b6a7fd (patch)
treecd917f694e3c41279b8f1704f6a7719af6fefbd5 /chrome/browser/geolocation/geoposition.h
parente7e50227f66d9b55f2011ad8ec355d7c3c70867a (diff)
downloadchromium_src-f3aedce59786661c87448f40410869ca79b6a7fd.zip
chromium_src-f3aedce59786661c87448f40410869ca79b6a7fd.tar.gz
chromium_src-f3aedce59786661c87448f40410869ca79b6a7fd.tar.bz2
Removes obsolete geolocation-related files.
TEST=Compiles Review URL: http://codereview.chromium.org/1731006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation/geoposition.h')
-rw-r--r--chrome/browser/geolocation/geoposition.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/chrome/browser/geolocation/geoposition.h b/chrome/browser/geolocation/geoposition.h
deleted file mode 100644
index 7143638..0000000
--- a/chrome/browser/geolocation/geoposition.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2010 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 Position structure, which is used to represent a
-// position fix. Originally derived from
-// http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h
-
-#ifndef CHROME_BROWSER_GEOLOCATION_GEOPOSITION_H_
-#define CHROME_BROWSER_GEOLOCATION_GEOPOSITION_H_
-
-#include "base/string16.h"
-
-// The internal representation of a position. Some properties use different
-// types when passed to JavaScript.
-struct Position {
- public:
- // Error codes for returning to JavaScript. These values are defined by the
- // W3C spec. Note that Gears does not use all of these codes, but we need
- // values for all of them to allow us to provide the constants on the error
- // object.
- enum ErrorCode {
- ERROR_CODE_NONE = 0, // Chrome addition
- ERROR_CODE_PERMISSION_DENIED = 1,
- ERROR_CODE_POSITION_UNAVAILABLE = 2,
- ERROR_CODE_TIMEOUT = 3,
- };
-
- Position();
-
- bool is_valid_latlong() const;
- bool is_valid_altitude() const;
- bool is_valid_accuracy() const;
- bool is_valid_altitude_accuracy() const;
- bool is_valid_timestamp() const;
-
- // A valid fix has a valid latitude, longitude, accuracy and timestamp.
- bool IsValidFix() const;
-
- // A position is considered initialized if it has either a valid fix or
- // an error code other than NONE.
- bool IsInitialized() const;
-
- // These properties correspond to the JavaScript Position object.
- double latitude; // In degrees
- double longitude; // In degrees
- double altitude; // In metres
- double accuracy; // In metres
- double altitude_accuracy; // In metres
- int64 timestamp; // Milliseconds since 1st Jan 1970
-
- // These properties are returned to JavaScript as a PositionError object.
- ErrorCode error_code;
- std::wstring error_message; // Human-readable error message
-};
-
-#endif // CHROME_BROWSER_GEOLOCATION_GEOPOSITION_H_