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

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

Issue 2633233003: aura-mus: Implement stacking in DesktopWindowTreeHostMus. (Closed)
Patch Set: Reword comment. Created 3 years, 11 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_access_policy.h ('k') | services/ui/ws/window_tree.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 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_manager_access_policy.h" 5 #include "services/ui/ws/window_manager_access_policy.h"
6 6
7 #include "services/ui/ws/access_policy_delegate.h" 7 #include "services/ui/ws/access_policy_delegate.h"
8 #include "services/ui/ws/server_window.h" 8 #include "services/ui/ws/server_window.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const ServerWindow* window) const { 135 const ServerWindow* window) const {
136 return true; 136 return true;
137 } 137 }
138 138
139 bool WindowManagerAccessPolicy::CanSetAcceptEvents( 139 bool WindowManagerAccessPolicy::CanSetAcceptEvents(
140 const ServerWindow* window) const { 140 const ServerWindow* window) const {
141 return WasCreatedByThisClient(window) || 141 return WasCreatedByThisClient(window) ||
142 delegate_->HasRootForAccessPolicy(window); 142 delegate_->HasRootForAccessPolicy(window);
143 } 143 }
144 144
145 bool WindowManagerAccessPolicy::CanStackAtTop(
146 const ServerWindow* window) const {
147 // This API is for clients. Window managers can perform any arbitrary
148 // reordering of the windows and don't need to go through this constrained
149 // API.
150 return false;
151 }
152
145 bool WindowManagerAccessPolicy::CanSetCursorProperties( 153 bool WindowManagerAccessPolicy::CanSetCursorProperties(
146 const ServerWindow* window) const { 154 const ServerWindow* window) const {
147 return WasCreatedByThisClient(window) || 155 return WasCreatedByThisClient(window) ||
148 delegate_->HasRootForAccessPolicy(window); 156 delegate_->HasRootForAccessPolicy(window);
149 } 157 }
150 158
151 bool WindowManagerAccessPolicy::CanInitiateDragLoop( 159 bool WindowManagerAccessPolicy::CanInitiateDragLoop(
152 const ServerWindow* window) const { 160 const ServerWindow* window) const {
153 return WasCreatedByThisClient(window) || 161 return WasCreatedByThisClient(window) ||
154 delegate_->HasRootForAccessPolicy(window); 162 delegate_->HasRootForAccessPolicy(window);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 return WindowIdFromTransportId(id.id).client_id == client_id_; 202 return WindowIdFromTransportId(id.id).client_id == client_id_;
195 } 203 }
196 204
197 bool WindowManagerAccessPolicy::WasCreatedByThisClient( 205 bool WindowManagerAccessPolicy::WasCreatedByThisClient(
198 const ServerWindow* window) const { 206 const ServerWindow* window) const {
199 return window->id().client_id == client_id_; 207 return window->id().client_id == client_id_;
200 } 208 }
201 209
202 } // namespace ws 210 } // namespace ws
203 } // namespace ui 211 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_access_policy.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698