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

Unified Diff: mash/wm/bridge/wm_window_mus.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/bridge/wm_root_window_controller_mus.cc ('k') | mash/wm/frame/non_client_frame_view_mash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/bridge/wm_window_mus.cc
diff --git a/mash/wm/bridge/wm_window_mus.cc b/mash/wm/bridge/wm_window_mus.cc
index b830c873884e9fc29cd53815f4134f825b94af00..e65972b3e65e389e7f209e5e21ae9a544ec52d65 100644
--- a/mash/wm/bridge/wm_window_mus.cc
+++ b/mash/wm/bridge/wm_window_mus.cc
@@ -11,7 +11,7 @@
#include "ash/wm/common/wm_window_property.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/bridge/mus_layout_manager_adapter.h"
#include "mash/wm/bridge/wm_globals_mus.h"
#include "mash/wm/bridge/wm_root_window_controller_mus.h"
@@ -559,7 +559,7 @@ bool WmWindowMus::IsFocused() const {
}
bool WmWindowMus::IsActive() const {
- mus::Window* focused = window_->connection()->GetFocusedWindow();
+ mus::Window* focused = window_->window_tree()->GetFocusedWindow();
return focused && window_->Contains(focused);
}
@@ -575,7 +575,7 @@ void WmWindowMus::Activate() {
void WmWindowMus::Deactivate() {
if (IsActive())
- window_->connection()->ClearFocus();
+ window_->window_tree()->ClearFocus();
}
void WmWindowMus::SetFullscreen() {
« no previous file with comments | « mash/wm/bridge/wm_root_window_controller_mus.cc ('k') | mash/wm/frame/non_client_frame_view_mash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698