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

Unified Diff: mojo/services/view_manager/connection_manager.cc

Issue 549883003: Window controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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
Index: mojo/services/view_manager/connection_manager.cc
diff --git a/mojo/services/view_manager/connection_manager.cc b/mojo/services/view_manager/connection_manager.cc
index 3d390b35a4033455d7a6e3a71074cb8373a958bd..94b829dbfe2a116de43db5ab985f74910d1cc36a 100644
--- a/mojo/services/view_manager/connection_manager.cc
+++ b/mojo/services/view_manager/connection_manager.cc
@@ -263,6 +263,11 @@ void ConnectionManager::OnViewHierarchyChanged(const ServerView* view,
const ServerView* old_parent) {
if (!display_manager_.in_setup())
ProcessViewHierarchyChanged(view, new_parent, old_parent);
+ // TODO(beng): optimize.
+ if (old_parent)
+ display_manager_.SchedulePaint(old_parent, old_parent->bounds());
sky 2014/09/11 19:32:22 I think you want gfx::Rect(old_parent()->bounds().
+ if (new_parent)
+ display_manager_.SchedulePaint(new_parent, new_parent->bounds());
}
void ConnectionManager::OnViewBoundsChanged(const ServerView* view,

Powered by Google App Engine
This is Rietveld 408576698