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

Unified Diff: components/mus/ws/window_finder.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/transient_windows_unittest.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_finder.cc
diff --git a/components/mus/ws/window_finder.cc b/components/mus/ws/window_finder.cc
index 6596a3e1326885baa9d5bb4c55a68a718eb48a12..592d7538d330c71705ce4306769ecc00f7abd544 100644
--- a/components/mus/ws/window_finder.cc
+++ b/components/mus/ws/window_finder.cc
@@ -22,7 +22,7 @@ namespace {
bool IsValidWindowForEvents(ServerWindow* window) {
ServerWindowSurfaceManager* surface_manager = window->surface_manager();
return surface_manager &&
- surface_manager->HasSurfaceOfType(mojom::SURFACE_TYPE_DEFAULT);
+ surface_manager->HasSurfaceOfType(mojom::SurfaceType::DEFAULT);
}
ServerWindow* FindDeepestVisibleWindowNonSurface(ServerWindow* window,
@@ -114,9 +114,9 @@ gfx::Transform GetTransformToWindow(cc::SurfaceId display_surface_id,
if (!display_surface_id.is_null()) {
gfx::Transform transform;
if (HitTestSurfaceOfType(display_surface_id, window,
- mus::mojom::SURFACE_TYPE_DEFAULT, &transform) ||
+ mus::mojom::SurfaceType::DEFAULT, &transform) ||
HitTestSurfaceOfType(display_surface_id, window,
- mus::mojom::SURFACE_TYPE_UNDERLAY, &transform)) {
+ mus::mojom::SurfaceType::UNDERLAY, &transform)) {
return transform;
}
}
« no previous file with comments | « components/mus/ws/transient_windows_unittest.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698