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

Unified Diff: services/ui/ws/window_finder.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 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 | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_finder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_finder.cc
diff --git a/services/ui/ws/window_finder.cc b/services/ui/ws/window_finder.cc
index 3e03a1ad4f962b211c2cb5e0c456f3febe361cd1..8135d6e412d9a9694c5a1e91f27f9a9e609ba1a2 100644
--- a/services/ui/ws/window_finder.cc
+++ b/services/ui/ws/window_finder.cc
@@ -6,9 +6,9 @@
#include "base/containers/adapters.h"
#include "services/ui/ws/server_window.h"
+#include "services/ui/ws/server_window_compositor_frame_sink.h"
+#include "services/ui/ws/server_window_compositor_frame_sink_manager.h"
#include "services/ui/ws/server_window_delegate.h"
-#include "services/ui/ws/server_window_surface.h"
-#include "services/ui/ws/server_window_surface_manager.h"
#include "services/ui/ws/window_coordinate_conversions.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_f.h"
@@ -18,13 +18,16 @@ namespace ui {
namespace ws {
bool IsValidWindowForEvents(ServerWindow* window) {
- ServerWindowSurfaceManager* surface_manager = window->surface_manager();
+ ServerWindowCompositorFrameSinkManager* compositor_frame_sink_manager =
+ window->compositor_frame_sink_manager();
// Valid windows have at least one of the two surface types. Only an underlay
// is valid as we assume the window manager will likely get the event in this
// case.
- return surface_manager &&
- (surface_manager->HasSurfaceOfType(mojom::SurfaceType::DEFAULT) ||
- surface_manager->HasSurfaceOfType(mojom::SurfaceType::UNDERLAY));
+ return compositor_frame_sink_manager &&
+ (compositor_frame_sink_manager->HasCompositorFrameSinkOfType(
+ mojom::CompositorFrameSinkType::DEFAULT) ||
+ compositor_frame_sink_manager->HasCompositorFrameSinkOfType(
+ mojom::CompositorFrameSinkType::UNDERLAY));
}
ServerWindow* FindDeepestVisibleWindowForEvents(ServerWindow* window,
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_finder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698