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

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: 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
« no previous file with comments | « ui/views/mus/platform_window_mus.cc ('k') | ui/views/mus/window_manager_constants_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 286534714f1404a7aa64ebd3376b7d4ec5966335..b13c09e931576b0dedf92d707bd40d17f7d42136 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;
@@ -157,7 +157,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
« no previous file with comments | « ui/views/mus/platform_window_mus.cc ('k') | ui/views/mus/window_manager_constants_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698