OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/display_manager.h" | 5 #include "services/ui/ws/display_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
11 #include "services/ui/display/platform_screen.h" | 11 #include "services/ui/display/screen_manager.h" |
msw
2016/12/01 20:01:18
nit: needed?
kylechar
2016/12/01 21:08:21
Nope. Deleted.
| |
12 #include "services/ui/ws/display.h" | 12 #include "services/ui/ws/display.h" |
13 #include "services/ui/ws/display_binding.h" | 13 #include "services/ui/ws/display_binding.h" |
14 #include "services/ui/ws/event_dispatcher.h" | 14 #include "services/ui/ws/event_dispatcher.h" |
15 #include "services/ui/ws/platform_display_init_params.h" | 15 #include "services/ui/ws/platform_display_init_params.h" |
16 #include "services/ui/ws/server_window.h" | 16 #include "services/ui/ws/server_window.h" |
17 #include "services/ui/ws/user_display_manager.h" | 17 #include "services/ui/ws/user_display_manager.h" |
18 #include "services/ui/ws/user_display_manager_delegate.h" | 18 #include "services/ui/ws/user_display_manager_delegate.h" |
19 #include "services/ui/ws/user_id_tracker.h" | 19 #include "services/ui/ws/user_id_tracker.h" |
20 #include "services/ui/ws/window_manager_state.h" | 20 #include "services/ui/ws/window_manager_state.h" |
21 #include "services/ui/ws/window_manager_window_tree_factory.h" | 21 #include "services/ui/ws/window_manager_window_tree_factory.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 void DisplayManager::OnPrimaryDisplayChanged(int64_t primary_display_id) { | 219 void DisplayManager::OnPrimaryDisplayChanged(int64_t primary_display_id) { |
220 // TODO(kylechar): Send IPCs to WM clients first. | 220 // TODO(kylechar): Send IPCs to WM clients first. |
221 | 221 |
222 // Send IPCs to any DisplayManagerObservers. | 222 // Send IPCs to any DisplayManagerObservers. |
223 for (const auto& pair : user_display_managers_) | 223 for (const auto& pair : user_display_managers_) |
224 pair.second->OnPrimaryDisplayChanged(primary_display_id); | 224 pair.second->OnPrimaryDisplayChanged(primary_display_id); |
225 } | 225 } |
226 | 226 |
227 } // namespace ws | 227 } // namespace ws |
228 } // namespace ui | 228 } // namespace ui |
OLD | NEW |