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

Side by Side Diff: components/mus/ws/window_manager_access_policy.cc

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed some review comments Created 4 years, 9 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
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 "components/mus/ws/window_manager_access_policy.h" 5 #include "components/mus/ws/window_manager_access_policy.h"
6 6
7 #include "components/mus/ws/access_policy_delegate.h" 7 #include "components/mus/ws/access_policy_delegate.h"
8 #include "components/mus/ws/server_window.h" 8 #include "components/mus/ws/server_window.h"
9 9
10 namespace mus { 10 namespace mus {
(...skipping 24 matching lines...) Expand all
35 const ServerWindow* parent, 35 const ServerWindow* parent,
36 const ServerWindow* child) const { 36 const ServerWindow* child) const {
37 return true; 37 return true;
38 } 38 }
39 39
40 bool WindowManagerAccessPolicy::CanRemoveTransientWindowFromParent( 40 bool WindowManagerAccessPolicy::CanRemoveTransientWindowFromParent(
41 const ServerWindow* window) const { 41 const ServerWindow* window) const {
42 return true; 42 return true;
43 } 43 }
44 44
45 bool WindowManagerAccessPolicy::CanSetAsModal(
46 const ServerWindow* window) const {
47 return true;
48 }
49
45 bool WindowManagerAccessPolicy::CanReorderWindow( 50 bool WindowManagerAccessPolicy::CanReorderWindow(
46 const ServerWindow* window, 51 const ServerWindow* window,
47 const ServerWindow* relative_window, 52 const ServerWindow* relative_window,
48 mojom::OrderDirection direction) const { 53 mojom::OrderDirection direction) const {
49 return true; 54 return true;
50 } 55 }
51 56
52 bool WindowManagerAccessPolicy::CanDeleteWindow( 57 bool WindowManagerAccessPolicy::CanDeleteWindow(
53 const ServerWindow* window) const { 58 const ServerWindow* window) const {
54 return window->id().connection_id == connection_id_; 59 return window->id().connection_id == connection_id_;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 151 }
147 152
148 bool WindowManagerAccessPolicy::IsWindowKnown( 153 bool WindowManagerAccessPolicy::IsWindowKnown(
149 const ServerWindow* window) const { 154 const ServerWindow* window) const {
150 return delegate_->IsWindowKnownForAccessPolicy(window); 155 return delegate_->IsWindowKnownForAccessPolicy(window);
151 } 156 }
152 157
153 } // namespace ws 158 } // namespace ws
154 159
155 } // namespace mus 160 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698