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

Side by Side Diff: mojo/services/view_manager/view_manager_service_impl.cc

Issue 378243002: Revert of Connect X11 ConfigureNotify events to Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/view_manager_service_impl.h" 5 #include "mojo/services/view_manager/view_manager_service_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 8 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h"
9 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" 9 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h"
10 #include "mojo/services/view_manager/node.h" 10 #include "mojo/services/view_manager/node.h"
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 base::Bind(&base::DoNothing)); 803 base::Bind(&base::DoNothing));
804 } 804 }
805 } 805 }
806 806
807 void ViewManagerServiceImpl::OnNodeHierarchyChanged(const Node* node, 807 void ViewManagerServiceImpl::OnNodeHierarchyChanged(const Node* node,
808 const Node* new_parent, 808 const Node* new_parent,
809 const Node* old_parent) { 809 const Node* old_parent) {
810 root_node_manager_->ProcessNodeHierarchyChanged(node, new_parent, old_parent); 810 root_node_manager_->ProcessNodeHierarchyChanged(node, new_parent, old_parent);
811 } 811 }
812 812
813 void ViewManagerServiceImpl::OnNodeBoundsChanged(const Node* node,
814 const gfx::Rect& old_bounds,
815 const gfx::Rect& new_bounds) {
816 root_node_manager_->ProcessNodeBoundsChanged(node, old_bounds, new_bounds);
817 }
818
819 void ViewManagerServiceImpl::OnNodeViewReplaced(const Node* node, 813 void ViewManagerServiceImpl::OnNodeViewReplaced(const Node* node,
820 const View* new_view, 814 const View* new_view,
821 const View* old_view) { 815 const View* old_view) {
822 root_node_manager_->ProcessNodeViewReplaced(node, new_view, old_view); 816 root_node_manager_->ProcessNodeViewReplaced(node, new_view, old_view);
823 } 817 }
824 818
825 void ViewManagerServiceImpl::OnViewInputEvent(const View* view, 819 void ViewManagerServiceImpl::OnViewInputEvent(const View* view,
826 const ui::Event* event) { 820 const ui::Event* event) {
827 root_node_manager_->DispatchViewInputEventToWindowManager(view, event); 821 root_node_manager_->DispatchViewInputEventToWindowManager(view, event);
828 } 822 }
(...skipping 12 matching lines...) Expand all
841 client()->OnViewManagerConnectionEstablished( 835 client()->OnViewManagerConnectionEstablished(
842 id_, 836 id_,
843 creator_url_, 837 creator_url_,
844 root_node_manager_->next_server_change_id(), 838 root_node_manager_->next_server_change_id(),
845 NodesToNodeDatas(to_send)); 839 NodesToNodeDatas(to_send));
846 } 840 }
847 841
848 } // namespace service 842 } // namespace service
849 } // namespace view_manager 843 } // namespace view_manager
850 } // namespace mojo 844 } // namespace mojo
OLDNEW
« 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