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

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

Issue 2386763002: services/ui: Match naming in cc (and jellyfish branch) (Closed)
Patch Set: Removed bad change Created 4 years, 2 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/window_server.h ('k') | services/ui/ws/window_tree_host_factory.cc » ('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 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 "services/ui/ws/window_server.h" 5 #include "services/ui/ws/window_server.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 28 matching lines...) Expand all
39 }; 39 };
40 40
41 struct WindowServer::CurrentDragLoopState { 41 struct WindowServer::CurrentDragLoopState {
42 uint32_t change_id; 42 uint32_t change_id;
43 ServerWindow* window; 43 ServerWindow* window;
44 WindowTree* initiator; 44 WindowTree* initiator;
45 }; 45 };
46 46
47 WindowServer::WindowServer(WindowServerDelegate* delegate) 47 WindowServer::WindowServer(WindowServerDelegate* delegate)
48 : delegate_(delegate), 48 : delegate_(delegate),
49 surfaces_state_(new SurfacesState()), 49 display_compositor_(new DisplayCompositor()),
50 next_client_id_(1), 50 next_client_id_(1),
51 display_manager_(new DisplayManager(this, &user_id_tracker_)), 51 display_manager_(new DisplayManager(this, &user_id_tracker_)),
52 current_operation_(nullptr), 52 current_operation_(nullptr),
53 in_destructor_(false), 53 in_destructor_(false),
54 next_wm_change_id_(0), 54 next_wm_change_id_(0),
55 gpu_proxy_(new GpuServiceProxy(this)), 55 gpu_proxy_(new GpuServiceProxy(this)),
56 window_manager_window_tree_factory_set_(this, &user_id_tracker_) { 56 window_manager_window_tree_factory_set_(this, &user_id_tracker_) {
57 user_id_tracker_.AddObserver(this); 57 user_id_tracker_.AddObserver(this);
58 OnUserIdAdded(user_id_tracker_.active_id()); 58 OnUserIdAdded(user_id_tracker_.active_id());
59 } 59 }
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 void WindowServer::OnNoMoreDisplays() { 522 void WindowServer::OnNoMoreDisplays() {
523 delegate_->OnNoMoreDisplays(); 523 delegate_->OnNoMoreDisplays();
524 } 524 }
525 525
526 WindowManagerState* WindowServer::GetWindowManagerStateForUser( 526 WindowManagerState* WindowServer::GetWindowManagerStateForUser(
527 const UserId& user_id) { 527 const UserId& user_id) {
528 return window_manager_window_tree_factory_set_.GetWindowManagerStateForUser( 528 return window_manager_window_tree_factory_set_.GetWindowManagerStateForUser(
529 user_id); 529 user_id);
530 } 530 }
531 531
532 ui::SurfacesState* WindowServer::GetSurfacesState() { 532 ui::DisplayCompositor* WindowServer::GetDisplayCompositor() {
533 return surfaces_state_.get(); 533 return display_compositor_.get();
534 } 534 }
535 535
536 bool WindowServer::GetFrameDecorationsForUser( 536 bool WindowServer::GetFrameDecorationsForUser(
537 const UserId& user_id, 537 const UserId& user_id,
538 mojom::FrameDecorationValuesPtr* values) { 538 mojom::FrameDecorationValuesPtr* values) {
539 WindowManagerState* window_manager_state = 539 WindowManagerState* window_manager_state =
540 window_manager_window_tree_factory_set_.GetWindowManagerStateForUser( 540 window_manager_window_tree_factory_set_.GetWindowManagerStateForUser(
541 user_id); 541 user_id);
542 if (!window_manager_state) 542 if (!window_manager_state)
543 return false; 543 return false;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 void WindowServer::OnUserIdAdded(const UserId& id) { 819 void WindowServer::OnUserIdAdded(const UserId& id) {
820 activity_monitor_map_[id] = base::MakeUnique<UserActivityMonitor>(nullptr); 820 activity_monitor_map_[id] = base::MakeUnique<UserActivityMonitor>(nullptr);
821 } 821 }
822 822
823 void WindowServer::OnUserIdRemoved(const UserId& id) { 823 void WindowServer::OnUserIdRemoved(const UserId& id) {
824 activity_monitor_map_.erase(id); 824 activity_monitor_map_.erase(id);
825 } 825 }
826 826
827 } // namespace ws 827 } // namespace ws
828 } // namespace ui 828 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698