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

Side by Side Diff: mojo/services/view_manager/root_node_manager.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/services/view_manager/root_node_manager.h" 5 #include "mojo/services/view_manager/root_node_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/public/cpp/application/application_connection.h" 8 #include "mojo/public/cpp/application/application_connection.h"
9 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" 9 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
10 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" 10 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 return connection; 259 return connection;
260 } 260 }
261 261
262 void RootNodeManager::OnNodeHierarchyChanged(const Node* node, 262 void RootNodeManager::OnNodeHierarchyChanged(const Node* node,
263 const Node* new_parent, 263 const Node* new_parent,
264 const Node* old_parent) { 264 const Node* old_parent) {
265 if (!root_view_manager_.in_setup()) 265 if (!root_view_manager_.in_setup())
266 ProcessNodeHierarchyChanged(node, new_parent, old_parent); 266 ProcessNodeHierarchyChanged(node, new_parent, old_parent);
267 } 267 }
268 268
269 void RootNodeManager::OnNodeBoundsChanged(const Node* node,
270 const gfx::Rect& old_bounds,
271 const gfx::Rect& new_bounds) {
272 ProcessNodeBoundsChanged(node, old_bounds, new_bounds);
273 }
274
269 void RootNodeManager::OnNodeViewReplaced(const Node* node, 275 void RootNodeManager::OnNodeViewReplaced(const Node* node,
270 const View* new_view, 276 const View* new_view,
271 const View* old_view) { 277 const View* old_view) {
272 ProcessNodeViewReplaced(node, new_view, old_view); 278 ProcessNodeViewReplaced(node, new_view, old_view);
273 } 279 }
274 280
275 void RootNodeManager::OnViewInputEvent(const View* view, 281 void RootNodeManager::OnViewInputEvent(const View* view,
276 const ui::Event* event) { 282 const ui::Event* event) {
277 DispatchViewInputEventToWindowManager(view, event); 283 DispatchViewInputEventToWindowManager(view, event);
278 } 284 }
279 285
280 } // namespace service 286 } // namespace service
281 } // namespace view_manager 287 } // namespace view_manager
282 } // namespace mojo 288 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/root_node_manager.h ('k') | mojo/services/view_manager/view_manager_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698