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

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

Issue 2877233002: Remove the i from visib[i]le. (Closed)
Patch Set: merge with tot Created 3 years, 7 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_manager_state.cc ('k') | ui/compositor/layer_unittest.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 24 matching lines...) Expand all
35 35
36 // Returns true if |window| is considered the active window manager for 36 // Returns true if |window| is considered the active window manager for
37 // |display|. 37 // |display|.
38 bool IsWindowConsideredWindowManagerRoot(const Display* display, 38 bool IsWindowConsideredWindowManagerRoot(const Display* display,
39 const ServerWindow* window) { 39 const ServerWindow* window) {
40 if (!display) 40 if (!display)
41 return false; 41 return false;
42 42
43 const WindowManagerDisplayRoot* display_root = 43 const WindowManagerDisplayRoot* display_root =
44 display->GetActiveWindowManagerDisplayRoot(); 44 display->GetActiveWindowManagerDisplayRoot();
45 return display_root && display_root->GetClientVisibileRoot() == window; 45 return display_root && display_root->GetClientVisibleRoot() == window;
46 } 46 }
47 47
48 } // namespace 48 } // namespace
49 49
50 struct WindowServer::CurrentMoveLoopState { 50 struct WindowServer::CurrentMoveLoopState {
51 uint32_t change_id; 51 uint32_t change_id;
52 ServerWindow* window; 52 ServerWindow* window;
53 WindowTree* initiator; 53 WindowTree* initiator;
54 gfx::Rect revert_bounds; 54 gfx::Rect revert_bounds;
55 }; 55 };
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 void WindowServer::OnUserIdAdded(const UserId& id) { 871 void WindowServer::OnUserIdAdded(const UserId& id) {
872 activity_monitor_map_[id] = base::MakeUnique<UserActivityMonitor>(nullptr); 872 activity_monitor_map_[id] = base::MakeUnique<UserActivityMonitor>(nullptr);
873 } 873 }
874 874
875 void WindowServer::OnUserIdRemoved(const UserId& id) { 875 void WindowServer::OnUserIdRemoved(const UserId& id) {
876 activity_monitor_map_.erase(id); 876 activity_monitor_map_.erase(id);
877 } 877 }
878 878
879 } // namespace ws 879 } // namespace ws
880 } // namespace ui 880 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_state.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698