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

Unified Diff: mash/wm/frame/non_client_frame_view_mash.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/frame/non_client_frame_view_mash.h ('k') | mash/wm/root_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/non_client_frame_view_mash.cc
diff --git a/mash/wm/frame/non_client_frame_view_mash.cc b/mash/wm/frame/non_client_frame_view_mash.cc
index d763f570377aced457a4942b06dde02e6a478bb3..86717f29dc397fcfc9a5b358fae283ebab06d537 100644
--- a/mash/wm/frame/non_client_frame_view_mash.cc
+++ b/mash/wm/frame/non_client_frame_view_mash.cc
@@ -10,7 +10,7 @@
#include "base/macros.h"
#include "components/mus/public/cpp/window.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
+#include "components/mus/public/cpp/window_tree_client.h"
#include "grit/mash_wm_resources.h"
#include "mash/wm/frame/caption_buttons/frame_caption_button_container_view.h"
#include "mash/wm/frame/default_header_painter.h"
@@ -132,7 +132,8 @@ void NonClientFrameViewMash::HeaderView::Layout() {
}
void NonClientFrameViewMash::HeaderView::OnPaint(gfx::Canvas* canvas) {
- const mus::Window* focused_window = window_->connection()->GetFocusedWindow();
+ const mus::Window* focused_window =
+ window_->window_tree()->GetFocusedWindow();
const bool paint_as_active =
focused_window && window_->Contains(focused_window);
caption_button_container_->SetPaintAsActive(paint_as_active);
@@ -169,7 +170,7 @@ NonClientFrameViewMash::NonClientFrameViewMash(views::Widget* frame,
// overlay the web contents in immersive fullscreen.
AddChildView(header_view_);
window_->AddObserver(this);
- window_->connection()->AddObserver(this);
+ window_->window_tree()->AddObserver(this);
}
NonClientFrameViewMash::~NonClientFrameViewMash() {
@@ -353,7 +354,7 @@ void NonClientFrameViewMash::RemoveObservers() {
return;
window_->RemoveObserver(this);
- window_->connection()->RemoveObserver(this);
+ window_->window_tree()->RemoveObserver(this);
window_ = nullptr;
}
« no previous file with comments | « mash/wm/frame/non_client_frame_view_mash.h ('k') | mash/wm/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698