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

Unified Diff: components/mus/public/interfaces/window_manager_constants.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: components/mus/public/interfaces/window_manager_constants.mojom
diff --git a/components/mus/public/interfaces/window_manager_constants.mojom b/components/mus/public/interfaces/window_manager_constants.mojom
index ff66f0c68394c7472c1f49f82532d48270ee4a8c..010b2a6f108c9b5ecb4198fbe469ae041ffbc638 100644
--- a/components/mus/public/interfaces/window_manager_constants.mojom
+++ b/components/mus/public/interfaces/window_manager_constants.mojom
@@ -8,7 +8,7 @@ import "ui/mojo/geometry/geometry.mojom";
enum WindowManagerErrorCode {
SUCCESS,
- ERROR_ACCESS_DENIED
+ ACCESS_DENIED
};
enum ShowState {
@@ -26,12 +26,10 @@ enum Rotation {
VALUE_270,
};
-enum ResizeBehavior {
- NONE = 0,
- CAN_RESIZE = 1,
- CAN_MAXIMIZE = 2,
- CAN_MINIMIZE = 4,
-};
+const int32 kResizeBehaviorNone = 0;
+const int32 kResizeBehaviorCanResize = 1;
+const int32 kResizeBehaviorCanMaximize = 2;
+const int32 kResizeBehaviorCanMinimize = 4;
struct Display {
int64 id;
« no previous file with comments | « components/mus/public/interfaces/input_key_codes.mojom ('k') | components/mus/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698