| OLD | NEW |
| 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 "components/view_manager/connection_manager.h" | 5 #include "components/view_manager/connection_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "components/view_manager/client_connection.h" | 9 #include "components/view_manager/client_connection.h" |
| 10 #include "components/view_manager/connection_manager_delegate.h" | 10 #include "components/view_manager/connection_manager_delegate.h" |
| 11 #include "components/view_manager/display_manager.h" | 11 #include "components/view_manager/display_manager.h" |
| 12 #include "components/view_manager/focus_controller.h" | 12 #include "components/view_manager/focus_controller.h" |
| 13 #include "components/view_manager/server_view.h" | 13 #include "components/view_manager/server_view.h" |
| 14 #include "components/view_manager/view_coordinate_conversions.h" | 14 #include "components/view_manager/view_coordinate_conversions.h" |
| 15 #include "components/view_manager/view_manager_service_impl.h" | 15 #include "components/view_manager/view_manager_service_impl.h" |
| 16 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
| 16 #include "mojo/converters/geometry/geometry_type_converters.h" | 17 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 17 #include "mojo/converters/input_events/input_events_type_converters.h" | 18 #include "mojo/converters/input_events/input_events_type_converters.h" |
| 18 #include "third_party/mojo/src/mojo/public/interfaces/application/service_provid
er.mojom.h" | |
| 19 | 19 |
| 20 using mojo::ConnectionSpecificId; | 20 using mojo::ConnectionSpecificId; |
| 21 | 21 |
| 22 namespace view_manager { | 22 namespace view_manager { |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Creates a copy of |view|. The copied view has |delegate| as its delegate. | 25 // Creates a copy of |view|. The copied view has |delegate| as its delegate. |
| 26 // This does not recurse. | 26 // This does not recurse. |
| 27 ServerView* CloneView(const ServerView* view, ServerViewDelegate* delegate) { | 27 ServerView* CloneView(const ServerView* view, ServerViewDelegate* delegate) { |
| 28 ServerView* clone = new ServerView(delegate, ClonedViewId()); | 28 ServerView* clone = new ServerView(delegate, ClonedViewId()); |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 if (wm_connection != owning_connection_old && | 609 if (wm_connection != owning_connection_old && |
| 610 wm_connection != embedded_connection_old && | 610 wm_connection != embedded_connection_old && |
| 611 wm_connection != owning_connection_new && | 611 wm_connection != owning_connection_new && |
| 612 wm_connection != embedded_connection_new) { | 612 wm_connection != embedded_connection_new) { |
| 613 wm_connection->ProcessFocusChanged(old_focused_view, new_focused_view); | 613 wm_connection->ProcessFocusChanged(old_focused_view, new_focused_view); |
| 614 } | 614 } |
| 615 } | 615 } |
| 616 } | 616 } |
| 617 | 617 |
| 618 } // namespace view_manager | 618 } // namespace view_manager |
| OLD | NEW |