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

Side by Side Diff: content/public/common/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, 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 unified diff | Download patch
« no previous file with comments | « content/public/browser/location_provider.h ('k') | content/public/common/geoposition.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file declares the Geoposition structure, used to represent a position 5 // This file declares the Geoposition structure, used to represent a position
6 // fix. It was originally derived from: 6 // fix. It was originally derived from:
7 // http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h 7 // http://gears.googlecode.com/svn/trunk/gears/geolocation/geolocation.h
8 8
9 #ifndef DEVICE_GEOLOCATION_GEOPOSITION_H_ 9 #ifndef CONTENT_PUBLIC_COMMON_GEOPOSITION_H_
10 #define DEVICE_GEOLOCATION_GEOPOSITION_H_ 10 #define CONTENT_PUBLIC_COMMON_GEOPOSITION_H_
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "device/geolocation/geolocation_export.h" 15 #include "content/common/content_export.h"
16 16
17 namespace device { 17 namespace content {
18 18
19 struct DEVICE_GEOLOCATION_EXPORT Geoposition { 19 struct CONTENT_EXPORT Geoposition {
20 public: 20 public:
21 // These values follow the W3C geolocation specification and can be returned 21 // These values follow the W3C geolocation specification and can be returned
22 // to JavaScript without the need for a conversion. 22 // to JavaScript without the need for a conversion.
23 enum ErrorCode { 23 enum ErrorCode {
24 ERROR_CODE_NONE = 0, // Chrome addition. 24 ERROR_CODE_NONE = 0, // Chrome addition.
25 ERROR_CODE_PERMISSION_DENIED = 1, 25 ERROR_CODE_PERMISSION_DENIED = 1,
26 ERROR_CODE_POSITION_UNAVAILABLE = 2, 26 ERROR_CODE_POSITION_UNAVAILABLE = 2,
27 ERROR_CODE_TIMEOUT = 3, 27 ERROR_CODE_TIMEOUT = 3,
28 ERROR_CODE_LAST = ERROR_CODE_TIMEOUT 28 ERROR_CODE_LAST = ERROR_CODE_TIMEOUT
29 }; 29 };
(...skipping 27 matching lines...) Expand all
57 // taken from the host computer's system clock (i.e. from Time::Now(), not the 57 // taken from the host computer's system clock (i.e. from Time::Now(), not the
58 // source device's clock). 58 // source device's clock).
59 base::Time timestamp; 59 base::Time timestamp;
60 60
61 // Error code, see enum above. 61 // Error code, see enum above.
62 ErrorCode error_code; 62 ErrorCode error_code;
63 // Human-readable error message. 63 // Human-readable error message.
64 std::string error_message; 64 std::string error_message;
65 }; 65 };
66 66
67 } // namespace device 67 } // namespace content
68 68
69 #endif // DEVICE_GEOLOCATION_GEOPOSITION_H_ 69 #endif // CONTENT_PUBLIC_COMMON_GEOPOSITION_H_
OLDNEW
« no previous file with comments | « content/public/browser/location_provider.h ('k') | content/public/common/geoposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698