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

Side by Side 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: Removed X11 support for --start-fullscreen, --start-maximized 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 "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 9 #include "mojo/services/public/cpp/geometry/geometry_type_converters.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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 event.Pass(), 803 event.Pass(),
804 base::Bind(&base::DoNothing)); 804 base::Bind(&base::DoNothing));
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
813 void ViewManagerServiceImpl::OnNodeViewReplaced(const Node* node, 819 void ViewManagerServiceImpl::OnNodeViewReplaced(const Node* node,
814 const View* new_view, 820 const View* new_view,
815 const View* old_view) { 821 const View* old_view) {
816 root_node_manager_->ProcessNodeViewReplaced(node, new_view, old_view); 822 root_node_manager_->ProcessNodeViewReplaced(node, new_view, old_view);
817 } 823 }
818 824
819 void ViewManagerServiceImpl::OnViewInputEvent(const View* view, 825 void ViewManagerServiceImpl::OnViewInputEvent(const View* view,
820 const ui::Event* event) { 826 const ui::Event* event) {
821 root_node_manager_->DispatchViewInputEventToWindowManager(view, event); 827 root_node_manager_->DispatchViewInputEventToWindowManager(view, event);
822 } 828 }
(...skipping 12 matching lines...) Expand all
835 client()->OnViewManagerConnectionEstablished( 841 client()->OnViewManagerConnectionEstablished(
836 id_, 842 id_,
837 creator_url_, 843 creator_url_,
838 root_node_manager_->next_server_change_id(), 844 root_node_manager_->next_server_change_id(),
839 NodesToNodeDatas(to_send)); 845 NodesToNodeDatas(to_send));
840 } 846 }
841 847
842 } // namespace service 848 } // namespace service
843 } // namespace view_manager 849 } // namespace view_manager
844 } // namespace mojo 850 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698