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

Unified Diff: content/public/common/mojo_geoposition.mojom

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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: content/public/common/mojo_geoposition.mojom
diff --git a/content/public/common/mojo_geoposition.mojom b/content/public/common/mojo_geoposition.mojom
index 852f2a9c44bb6bf464eed9df249702a4564ab9bf..b88ffc22361df5fca1883ef433dd6eec6abe072c 100644
--- a/content/public/common/mojo_geoposition.mojom
+++ b/content/public/common/mojo_geoposition.mojom
@@ -14,11 +14,11 @@ struct MojoGeoposition {
// 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.

Powered by Google App Engine
This is Rietveld 408576698