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

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

Issue 2274353003: Add PlatformScreenDelegate and start implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes for comments. Created 4 years, 3 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/user_display_manager.h ('k') | services/ui/ws/user_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 "services/ui/ws/user_display_manager.h" 5 #include "services/ui/ws/user_display_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "services/ui/ws/display.h" 9 #include "services/ui/ws/display.h"
10 #include "services/ui/ws/display_manager.h" 10 #include "services/ui/ws/display_manager.h"
11 #include "services/ui/ws/display_manager_delegate.h" 11 #include "services/ui/ws/user_display_manager_delegate.h"
12 12
13 namespace ui { 13 namespace ui {
14 namespace ws { 14 namespace ws {
15 15
16 UserDisplayManager::UserDisplayManager(ws::DisplayManager* display_manager, 16 UserDisplayManager::UserDisplayManager(ws::DisplayManager* display_manager,
17 DisplayManagerDelegate* delegate, 17 UserDisplayManagerDelegate* delegate,
18 const UserId& user_id) 18 const UserId& user_id)
19 : display_manager_(display_manager), 19 : display_manager_(display_manager),
20 delegate_(delegate), 20 delegate_(delegate),
21 user_id_(user_id), 21 user_id_(user_id),
22 got_valid_frame_decorations_( 22 got_valid_frame_decorations_(
23 delegate->GetFrameDecorationsForUser(user_id, nullptr)), 23 delegate->GetFrameDecorationsForUser(user_id, nullptr)),
24 current_cursor_location_(0) {} 24 current_cursor_location_(0) {}
25 25
26 UserDisplayManager::~UserDisplayManager() {} 26 UserDisplayManager::~UserDisplayManager() {}
27 27
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void UserDisplayManager::AddObserver( 145 void UserDisplayManager::AddObserver(
146 mojom::DisplayManagerObserverPtr observer) { 146 mojom::DisplayManagerObserverPtr observer) {
147 mojom::DisplayManagerObserver* observer_impl = observer.get(); 147 mojom::DisplayManagerObserver* observer_impl = observer.get();
148 display_manager_observers_.AddPtr(std::move(observer)); 148 display_manager_observers_.AddPtr(std::move(observer));
149 OnObserverAdded(observer_impl); 149 OnObserverAdded(observer_impl);
150 } 150 }
151 151
152 } // namespace ws 152 } // namespace ws
153 } // namespace ui 153 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/user_display_manager.h ('k') | services/ui/ws/user_display_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698