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

Unified Diff: mash/wm/user_window_controller_impl.cc

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 7 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/wm/user_window_controller_impl.h ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/user_window_controller_impl.cc
diff --git a/mash/wm/user_window_controller_impl.cc b/mash/wm/user_window_controller_impl.cc
index de983c7c325de710937992044c3fcca234b080de..7e87f01d8acd0e36c6f88b9a09ddb18355330617 100644
--- a/mash/wm/user_window_controller_impl.cc
+++ b/mash/wm/user_window_controller_impl.cc
@@ -7,7 +7,7 @@
#include "components/mus/public/cpp/property_type_converters.h"
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_property.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
+#include "components/mus/public/cpp/window_tree_client.h"
#include "mash/wm/property_util.h"
#include "mash/wm/public/interfaces/container.mojom.h"
#include "mash/wm/root_window_controller.h"
@@ -40,7 +40,7 @@ mojom::UserWindowPtr GetUserWindow(mus::Window* window) {
user_window->window_app_icon = GetWindowAppIcon(window);
user_window->window_app_id = mojo::String::From(GetAppID(window));
user_window->ignored_by_shelf = GetWindowIgnoredByShelf(window);
- mus::Window* focused = window->connection()->GetFocusedWindow();
+ mus::Window* focused = window->window_tree()->GetFocusedWindow();
focused = GetTopLevelWindow(focused, window->parent());
user_window->window_has_focus = focused == window;
return user_window;
@@ -102,7 +102,7 @@ void UserWindowControllerImpl::Initialize(
DCHECK(!root_controller_);
root_controller_ = root_controller;
GetUserWindowContainer()->AddObserver(this);
- GetUserWindowContainer()->connection()->AddObserver(this);
+ GetUserWindowContainer()->window_tree()->AddObserver(this);
window_property_observer_.reset(new WindowPropertyObserver(this));
for (mus::Window* window : GetUserWindowContainer()->children()) {
AssignIdIfNecessary(window);
@@ -117,7 +117,7 @@ void UserWindowControllerImpl::AssignIdIfNecessary(mus::Window* window) {
void UserWindowControllerImpl::RemoveObservers(mus::Window* user_container) {
user_container->RemoveObserver(this);
- user_container->connection()->RemoveObserver(this);
+ user_container->window_tree()->RemoveObserver(this);
for (auto iter : user_container->children())
iter->RemoveObserver(window_property_observer_.get());
}
« no previous file with comments | « mash/wm/user_window_controller_impl.h ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698