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

Unified Diff: mash/wallpaper/wallpaper.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 | « mash/shelf/shelf_application.cc ('k') | mash/wm/accelerator_registrar_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wallpaper/wallpaper.cc
diff --git a/mash/wallpaper/wallpaper.cc b/mash/wallpaper/wallpaper.cc
index 07e35718ca311d47a51bd9d7deca32c8bc79c1cb..fa86f6dbf7fd5038bbe863c1069f5916f4a6da35 100644
--- a/mash/wallpaper/wallpaper.cc
+++ b/mash/wallpaper/wallpaper.cc
@@ -58,11 +58,11 @@ class WallpaperApplicationDelegate : public mojo::ApplicationDelegate {
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, app->shell(), window, mus::mojom::SURFACE_TYPE_DEFAULT);
+ widget, app->shell(), window, mus::mojom::SurfaceType::DEFAULT);
widget->Init(params);
widget->Show();
}
« no previous file with comments | « mash/shelf/shelf_application.cc ('k') | mash/wm/accelerator_registrar_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698