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

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: SetAsModal -> SetModal + Other review comments addressed 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::CanSetModal(
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 153 }
149 154
150 bool WindowManagerAccessPolicy::IsWindowKnown( 155 bool WindowManagerAccessPolicy::IsWindowKnown(
151 const ServerWindow* window) const { 156 const ServerWindow* window) const {
152 return delegate_->IsWindowKnownForAccessPolicy(window); 157 return delegate_->IsWindowKnownForAccessPolicy(window);
153 } 158 }
154 159
155 } // namespace ws 160 } // namespace ws
156 161
157 } // namespace mus 162 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_access_policy.h ('k') | components/mus/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698