OLD | NEW |
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 CONTENT_PUBLIC_COMMON_GEOPOSITION_H_ | 9 #ifndef CONTENT_PUBLIC_COMMON_GEOPOSITION_H_ |
10 #define CONTENT_PUBLIC_COMMON_GEOPOSITION_H_ | 10 #define CONTENT_PUBLIC_COMMON_GEOPOSITION_H_ |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 struct CONTENT_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. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Error code, see enum above. | 58 // Error code, see enum above. |
59 ErrorCode error_code; | 59 ErrorCode error_code; |
60 // Human-readable error message. | 60 // Human-readable error message. |
61 std::string error_message; | 61 std::string error_message; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_COMMON_GEOPOSITION_H_ | 66 #endif // CONTENT_COMMON_GEOPOSITION_H_ |
OLD | NEW |