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

Side by Side Diff: services/ui/ws/display_manager.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « services/ui/ws/display_manager.h ('k') | services/ui/ws/display_manager_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "components/mus/ws/display_manager.h" 5 #include "services/ui/ws/display_manager.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/mus/ws/display.h" 8 #include "services/ui/ws/display.h"
9 #include "components/mus/ws/display_manager_delegate.h" 9 #include "services/ui/ws/display_manager_delegate.h"
10 #include "components/mus/ws/event_dispatcher.h" 10 #include "services/ui/ws/event_dispatcher.h"
11 #include "components/mus/ws/server_window.h" 11 #include "services/ui/ws/server_window.h"
12 #include "components/mus/ws/user_display_manager.h" 12 #include "services/ui/ws/user_display_manager.h"
13 #include "components/mus/ws/user_id_tracker.h" 13 #include "services/ui/ws/user_id_tracker.h"
14 #include "components/mus/ws/window_manager_state.h" 14 #include "services/ui/ws/window_manager_state.h"
15 15
16 namespace mus { 16 namespace mus {
17 namespace ws { 17 namespace ws {
18 18
19 DisplayManager::DisplayManager(DisplayManagerDelegate* delegate, 19 DisplayManager::DisplayManager(DisplayManagerDelegate* delegate,
20 UserIdTracker* user_id_tracker) 20 UserIdTracker* user_id_tracker)
21 // |next_root_id_| is used as the lower bits, so that starting at 0 is 21 // |next_root_id_| is used as the lower bits, so that starting at 0 is
22 // fine. |next_display_id_| is used by itself, so we start at 1 to reserve 22 // fine. |next_display_id_| is used by itself, so we start at 1 to reserve
23 // 0 as invalid. 23 // 0 as invalid.
24 : delegate_(delegate), 24 : delegate_(delegate),
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 WindowManagerState* current_window_manager_state = 160 WindowManagerState* current_window_manager_state =
161 delegate_->GetWindowManagerStateForUser(active_id); 161 delegate_->GetWindowManagerStateForUser(active_id);
162 if (current_window_manager_state) 162 if (current_window_manager_state)
163 current_window_manager_state->Activate(mouse_location_on_screen); 163 current_window_manager_state->Activate(mouse_location_on_screen);
164 } 164 }
165 165
166 } // namespace ws 166 } // namespace ws
167 } // namespace mus 167 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/ws/display_manager.h ('k') | services/ui/ws/display_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698