| OLD | NEW |
| 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 Loading... |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |