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

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

Issue 354933002: Connect X11 ConfigureNotify events to Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed double-notification for node bounds changes Created 6 years, 5 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/view_manager_service_impl.cc
diff --git a/mojo/services/view_manager/view_manager_service_impl.cc b/mojo/services/view_manager/view_manager_service_impl.cc
index 7f0a225a713f71a7fd1b1950f672375376130824..5b8954a902f500cf6c3fac980ca46d6bcb63b2c5 100644
--- a/mojo/services/view_manager/view_manager_service_impl.cc
+++ b/mojo/services/view_manager/view_manager_service_impl.cc
@@ -750,8 +750,6 @@ void ViewManagerServiceImpl::SetNodeBounds(
RootNodeManager::CHANGE_TYPE_DONT_ADVANCE_SERVER_CHANGE_ID, false);
gfx::Rect old_bounds = node->window()->bounds();
node->window()->SetBounds(bounds.To<gfx::Rect>());
- root_node_manager_->ProcessNodeBoundsChanged(
- node, old_bounds, bounds.To<gfx::Rect>());
callback.Run(true);
}
@@ -810,6 +808,12 @@ void ViewManagerServiceImpl::OnNodeHierarchyChanged(const Node* node,
root_node_manager_->ProcessNodeHierarchyChanged(node, new_parent, old_parent);
}
+void ViewManagerServiceImpl::OnNodeBoundsChanged(const Node* node,
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) {
+ root_node_manager_->ProcessNodeBoundsChanged(node, old_bounds, new_bounds);
+}
+
void ViewManagerServiceImpl::OnNodeViewReplaced(const Node* node,
const View* new_view,
const View* old_view) {
« no previous file with comments | « mojo/services/view_manager/view_manager_service_impl.h ('k') | mojo/services/view_manager/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698