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

Unified Diff: components/mus/ws/server_window_surface_manager.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 | « components/mus/ws/server_window.cc ('k') | components/mus/ws/server_window_surface_manager_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window_surface_manager.cc
diff --git a/components/mus/ws/server_window_surface_manager.cc b/components/mus/ws/server_window_surface_manager.cc
index 06612094230036dc4c1dbc686e8c86e1e6d9032e..1699de41bc8006f97d94066f349ca176f0927731 100644
--- a/components/mus/ws/server_window_surface_manager.cc
+++ b/components/mus/ws/server_window_surface_manager.cc
@@ -25,8 +25,8 @@ bool ServerWindowSurfaceManager::ShouldDraw() {
return true;
waiting_for_initial_frames_ =
- !IsSurfaceReadyAndNonEmpty(mojom::SURFACE_TYPE_DEFAULT) ||
- !IsSurfaceReadyAndNonEmpty(mojom::SURFACE_TYPE_UNDERLAY);
+ !IsSurfaceReadyAndNonEmpty(mojom::SurfaceType::DEFAULT) ||
+ !IsSurfaceReadyAndNonEmpty(mojom::SurfaceType::UNDERLAY);
return !waiting_for_initial_frames_;
}
@@ -39,11 +39,11 @@ void ServerWindowSurfaceManager::CreateSurface(
}
ServerWindowSurface* ServerWindowSurfaceManager::GetDefaultSurface() {
- return GetSurfaceByType(mojom::SURFACE_TYPE_DEFAULT);
+ return GetSurfaceByType(mojom::SurfaceType::DEFAULT);
}
ServerWindowSurface* ServerWindowSurfaceManager::GetUnderlaySurface() {
- return GetSurfaceByType(mojom::SURFACE_TYPE_UNDERLAY);
+ return GetSurfaceByType(mojom::SurfaceType::UNDERLAY);
}
ServerWindowSurface* ServerWindowSurfaceManager::GetSurfaceByType(
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/ws/server_window_surface_manager_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698