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

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
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | mojo/views/native_widget_view_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0b91b9f669b038043d6f93afa72ad4efd903f3f2 100644
--- a/mojo/services/view_manager/connection_manager.cc
+++ b/mojo/services/view_manager/connection_manager.cc
@@ -263,6 +263,15 @@ 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,
+ gfx::Rect(old_parent->bounds().size()));
+ }
+ if (new_parent) {
+ display_manager_.SchedulePaint(new_parent,
+ gfx::Rect(new_parent->bounds().size()));
+ }
}
void ConnectionManager::OnViewBoundsChanged(const ServerView* view,
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | mojo/views/native_widget_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698