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

Unified Diff: components/mus/ws/window_server.cc

Issue 2065573003: Mus: Delete unused Mandoline Surfaces code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mus_ws_unittests Created 4 years, 6 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/window_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_server.cc
diff --git a/components/mus/ws/window_server.cc b/components/mus/ws/window_server.cc
index 3a6a8d6d200347c820ceafadb8325e8b9e8ea016..4f716c51acfa7a0f067826c05f38a649876bafbf 100644
--- a/components/mus/ws/window_server.cc
+++ b/components/mus/ws/window_server.cc
@@ -486,31 +486,6 @@ void WindowServer::ScheduleSurfaceDestruction(ServerWindow* window) {
display->ScheduleSurfaceDestruction(window);
}
-ServerWindow* WindowServer::FindWindowForSurface(
- const ServerWindow* ancestor,
- mojom::SurfaceType surface_type,
- const ClientWindowId& client_window_id) {
- WindowTree* window_tree;
- if (ancestor->id().client_id == kInvalidClientId) {
- WindowManagerAndDisplay wm_and_display =
- display_manager_->GetWindowManagerAndDisplay(ancestor);
- window_tree = wm_and_display.window_manager_state
- ? wm_and_display.window_manager_state->tree()
- : nullptr;
- } else {
- window_tree = GetTreeWithId(ancestor->id().client_id);
- }
- if (!window_tree)
- return nullptr;
- if (surface_type == mojom::SurfaceType::DEFAULT) {
- // At embed points the default surface comes from the embedded app.
- WindowTree* tree_with_root = GetTreeWithRoot(ancestor);
- if (tree_with_root)
- window_tree = tree_with_root;
- }
- return window_tree->GetWindowByClientId(client_window_id);
-}
-
void WindowServer::OnWindowDestroyed(ServerWindow* window) {
ProcessWindowDeleted(window);
}
« no previous file with comments | « components/mus/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698