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 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 ~WindowManagerAccessPolicy() override; | 23 ~WindowManagerAccessPolicy() override; |
24 | 24 |
25 // AccessPolicy: | 25 // AccessPolicy: |
26 bool CanRemoveWindowFromParent(const ServerWindow* window) const override; | 26 bool CanRemoveWindowFromParent(const ServerWindow* window) const override; |
27 bool CanAddWindow(const ServerWindow* parent, | 27 bool CanAddWindow(const ServerWindow* parent, |
28 const ServerWindow* child) const override; | 28 const ServerWindow* child) const override; |
29 bool CanAddTransientWindow(const ServerWindow* parent, | 29 bool CanAddTransientWindow(const ServerWindow* parent, |
30 const ServerWindow* child) const override; | 30 const ServerWindow* child) const override; |
31 bool CanRemoveTransientWindowFromParent( | 31 bool CanRemoveTransientWindowFromParent( |
32 const ServerWindow* window) const override; | 32 const ServerWindow* window) const override; |
| 33 bool CanSetModal(const ServerWindow* window) const override; |
33 bool CanReorderWindow(const ServerWindow* window, | 34 bool CanReorderWindow(const ServerWindow* window, |
34 const ServerWindow* relative_window, | 35 const ServerWindow* relative_window, |
35 mojom::OrderDirection direction) const override; | 36 mojom::OrderDirection direction) const override; |
36 bool CanDeleteWindow(const ServerWindow* window) const override; | 37 bool CanDeleteWindow(const ServerWindow* window) const override; |
37 bool CanGetWindowTree(const ServerWindow* window) const override; | 38 bool CanGetWindowTree(const ServerWindow* window) const override; |
38 bool CanDescendIntoWindowForWindowTree( | 39 bool CanDescendIntoWindowForWindowTree( |
39 const ServerWindow* window) const override; | 40 const ServerWindow* window) const override; |
40 bool CanEmbed(const ServerWindow* window, | 41 bool CanEmbed(const ServerWindow* window, |
41 uint32_t policy_bitmask) const override; | 42 uint32_t policy_bitmask) const override; |
42 bool CanChangeWindowVisibility(const ServerWindow* window) const override; | 43 bool CanChangeWindowVisibility(const ServerWindow* window) const override; |
(...skipping 21 matching lines...) Expand all Loading... |
64 AccessPolicyDelegate* delegate_; | 65 AccessPolicyDelegate* delegate_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); | 67 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace ws | 70 } // namespace ws |
70 | 71 |
71 } // namespace mus | 72 } // namespace mus |
72 | 73 |
73 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 74 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
OLD | NEW |