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

Unified Diff: mash/system_ui/system_ui.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: mash/system_ui/system_ui.cc
diff --git a/mash/system_ui/system_ui.cc b/mash/system_ui/system_ui.cc
index 6c4852e3ebeb1ab8d6346bfa61626ac77baf5006..a9284555474620cc525372877a6830c19d915cc3 100644
--- a/mash/system_ui/system_ui.cc
+++ b/mash/system_ui/system_ui.cc
@@ -33,11 +33,11 @@ class DesktopBackground : public views::WidgetDelegateView {
std::map<std::string, std::vector<uint8_t>> properties;
properties[mash::wm::mojom::kWindowContainer_Property] =
mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert(
- mash::wm::mojom::CONTAINER_USER_BACKGROUND);
+ static_cast<int32_t>(mash::wm::mojom::Container::USER_BACKGROUND));
mus::Window* window =
views::WindowManagerConnection::Get()->NewWindow(properties);
params.native_widget = new views::NativeWidgetMus(
- widget, shell, window, mus::mojom::SURFACE_TYPE_DEFAULT);
+ widget, shell, window, mus::mojom::SurfaceType::DEFAULT);
widget->Init(params);
widget->Show();
}
@@ -68,11 +68,11 @@ class Shelf : public views::WidgetDelegateView {
std::map<std::string, std::vector<uint8_t>> properties;
properties[mash::wm::mojom::kWindowContainer_Property] =
mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert(
- mash::wm::mojom::CONTAINER_USER_SHELF);
+ static_cast<int32_t>(mash::wm::mojom::Container::USER_SHELF));
mus::Window* window =
views::WindowManagerConnection::Get()->NewWindow(properties);
params.native_widget = new views::NativeWidgetMus(
- widget, shell, window, mus::mojom::SURFACE_TYPE_DEFAULT);
+ widget, shell, window, mus::mojom::SurfaceType::DEFAULT);
widget->Init(params);
widget->Show();
}

Powered by Google App Engine
This is Rietveld 408576698