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

Unified Diff: ui/views/mus/window_manager_connection.cc

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: Created 4 years, 12 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: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index d4bceb6e1a702c8ef081d5a8dacf8af621a565d8..2cdb8477ac2e8577424efbf47e40cee01f312fef 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -28,13 +28,13 @@ namespace mojo {
gfx::Display::Rotation GFXRotationFromMojomRotation(
mus::mojom::Rotation input) {
switch (input) {
- case mus::mojom::ROTATION_VALUE_0:
+ case mus::mojom::Rotation::VALUE_0:
return gfx::Display::ROTATE_0;
- case mus::mojom::ROTATION_VALUE_90:
+ case mus::mojom::Rotation::VALUE_90:
return gfx::Display::ROTATE_90;
- case mus::mojom::ROTATION_VALUE_180:
+ case mus::mojom::Rotation::VALUE_180:
return gfx::Display::ROTATE_180;
- case mus::mojom::ROTATION_VALUE_270:
+ case mus::mojom::Rotation::VALUE_270:
return gfx::Display::ROTATE_270;
}
return gfx::Display::ROTATE_0;
@@ -149,7 +149,7 @@ NativeWidget* WindowManagerConnection::CreateNativeWidget(
std::map<std::string, std::vector<uint8_t>> properties;
NativeWidgetMus::ConfigurePropertiesForNewWindow(init_params, &properties);
return new NativeWidgetMus(delegate, app_->shell(), NewWindow(properties),
- mus::mojom::SURFACE_TYPE_DEFAULT);
+ mus::mojom::SurfaceType::DEFAULT);
}
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698