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/mus/ws/connection_manager.h" | 5 #include "components/mus/ws/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/mus/ws/client_connection.h" | 9 #include "components/mus/ws/client_connection.h" |
10 #include "components/mus/ws/connection_manager_delegate.h" | 10 #include "components/mus/ws/connection_manager_delegate.h" |
11 #include "components/mus/ws/operation.h" | 11 #include "components/mus/ws/operation.h" |
12 #include "components/mus/ws/server_window.h" | 12 #include "components/mus/ws/server_window.h" |
13 #include "components/mus/ws/window_coordinate_conversions.h" | 13 #include "components/mus/ws/window_coordinate_conversions.h" |
14 #include "components/mus/ws/window_manager_factory_service.h" | 14 #include "components/mus/ws/window_manager_factory_service.h" |
15 #include "components/mus/ws/window_tree_host_connection.h" | 15 #include "components/mus/ws/window_tree_host_connection.h" |
16 #include "components/mus/ws/window_tree_impl.h" | 16 #include "components/mus/ws/window_tree_impl.h" |
17 #include "mojo/converters/geometry/geometry_type_converters.h" | 17 #include "mojo/converters/geometry/geometry_type_converters.h" |
18 #include "mojo/converters/input_events/input_events_type_converters.h" | 18 #include "mojo/converters/input_events/input_events_type_converters.h" |
19 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 19 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
20 #include "mojo/shell/public/cpp/application_connection.h" | 20 #include "mojo/shell/public/cpp/connection.h" |
21 #include "ui/gfx/geometry/size_conversions.h" | 21 #include "ui/gfx/geometry/size_conversions.h" |
22 | 22 |
23 namespace mus { | 23 namespace mus { |
24 namespace ws { | 24 namespace ws { |
25 | 25 |
26 ConnectionManager::ConnectionManager( | 26 ConnectionManager::ConnectionManager( |
27 ConnectionManagerDelegate* delegate, | 27 ConnectionManagerDelegate* delegate, |
28 const scoped_refptr<mus::SurfacesState>& surfaces_state) | 28 const scoped_refptr<mus::SurfacesState>& surfaces_state) |
29 : delegate_(delegate), | 29 : delegate_(delegate), |
30 surfaces_state_(surfaces_state), | 30 surfaces_state_(surfaces_state), |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 if (!got_valid_frame_decorations_) { | 703 if (!got_valid_frame_decorations_) { |
704 display_manager_observers_.AddInterfacePtr(std::move(observer)); | 704 display_manager_observers_.AddInterfacePtr(std::move(observer)); |
705 return; | 705 return; |
706 } | 706 } |
707 CallOnDisplays(observer.get()); | 707 CallOnDisplays(observer.get()); |
708 display_manager_observers_.AddInterfacePtr(std::move(observer)); | 708 display_manager_observers_.AddInterfacePtr(std::move(observer)); |
709 } | 709 } |
710 | 710 |
711 } // namespace ws | 711 } // namespace ws |
712 } // namespace mus | 712 } // namespace mus |
OLD | NEW |