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

Unified Diff: components/geolocation/public/interfaces/geoposition.mojom

Issue 1373883003: Move geolocation and permission mojoms into components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: components/geolocation/public/interfaces/geoposition.mojom
diff --git a/content/public/common/mojo_geoposition.mojom b/components/geolocation/public/interfaces/geoposition.mojom
similarity index 89%
rename from content/public/common/mojo_geoposition.mojom
rename to components/geolocation/public/interfaces/geoposition.mojom
index 852f2a9c44bb6bf464eed9df249702a4564ab9bf..5a30adddf4aadfa43ee38e5e248661d7a030e876 100644
--- a/content/public/common/mojo_geoposition.mojom
+++ b/components/geolocation/public/interfaces/geoposition.mojom
@@ -8,17 +8,17 @@
// TODO(blundell): Investigate killing content::Geoposition in favor of using
// this struct everywhere (and renaming it to Geoposition).
-module content;
+module geolocation;
-struct MojoGeoposition {
+struct Geoposition {
// 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
+ NONE = 0, // Chrome addition.
+ PERMISSION_DENIED = 1,
+ POSITION_UNAVAILABLE = 2,
+ TIMEOUT = 3,
+ LAST = TIMEOUT
};
// Whether this geoposition is valid.
« no previous file with comments | « components/geolocation/public/interfaces/geolocation_interfaces.gyp ('k') | components/permission/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698