| 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" | |
| 12 #include "services/ui/ws/display.h" | 11 #include "services/ui/ws/display.h" |
| 13 #include "services/ui/ws/display_binding.h" | 12 #include "services/ui/ws/display_binding.h" |
| 14 #include "services/ui/ws/event_dispatcher.h" | 13 #include "services/ui/ws/event_dispatcher.h" |
| 15 #include "services/ui/ws/platform_display_init_params.h" | 14 #include "services/ui/ws/platform_display_init_params.h" |
| 16 #include "services/ui/ws/server_window.h" | 15 #include "services/ui/ws/server_window.h" |
| 17 #include "services/ui/ws/user_display_manager.h" | 16 #include "services/ui/ws/user_display_manager.h" |
| 18 #include "services/ui/ws/user_display_manager_delegate.h" | 17 #include "services/ui/ws/user_display_manager_delegate.h" |
| 19 #include "services/ui/ws/user_id_tracker.h" | 18 #include "services/ui/ws/user_id_tracker.h" |
| 20 #include "services/ui/ws/window_manager_state.h" | 19 #include "services/ui/ws/window_manager_state.h" |
| 21 #include "services/ui/ws/window_manager_window_tree_factory.h" | 20 #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) { | 218 void DisplayManager::OnPrimaryDisplayChanged(int64_t primary_display_id) { |
| 220 // TODO(kylechar): Send IPCs to WM clients first. | 219 // TODO(kylechar): Send IPCs to WM clients first. |
| 221 | 220 |
| 222 // Send IPCs to any DisplayManagerObservers. | 221 // Send IPCs to any DisplayManagerObservers. |
| 223 for (const auto& pair : user_display_managers_) | 222 for (const auto& pair : user_display_managers_) |
| 224 pair.second->OnPrimaryDisplayChanged(primary_display_id); | 223 pair.second->OnPrimaryDisplayChanged(primary_display_id); |
| 225 } | 224 } |
| 226 | 225 |
| 227 } // namespace ws | 226 } // namespace ws |
| 228 } // namespace ui | 227 } // namespace ui |
| OLD | NEW |