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_DEFAULT_ACCESS_POLICY_H_ | 5 #ifndef COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ |
6 #define COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ | 6 #define COMPONENTS_MUS_WS_DEFAULT_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 13 matching lines...) Expand all Loading... |
24 ~DefaultAccessPolicy() override; | 24 ~DefaultAccessPolicy() override; |
25 | 25 |
26 // AccessPolicy: | 26 // AccessPolicy: |
27 bool CanRemoveWindowFromParent(const ServerWindow* window) const override; | 27 bool CanRemoveWindowFromParent(const ServerWindow* window) const override; |
28 bool CanAddWindow(const ServerWindow* parent, | 28 bool CanAddWindow(const ServerWindow* parent, |
29 const ServerWindow* child) const override; | 29 const ServerWindow* child) const override; |
30 bool CanAddTransientWindow(const ServerWindow* parent, | 30 bool CanAddTransientWindow(const ServerWindow* parent, |
31 const ServerWindow* child) const override; | 31 const ServerWindow* child) const override; |
32 bool CanRemoveTransientWindowFromParent( | 32 bool CanRemoveTransientWindowFromParent( |
33 const ServerWindow* window) const override; | 33 const ServerWindow* window) const override; |
| 34 bool CanSetModal(const ServerWindow* window) const override; |
34 bool CanReorderWindow(const ServerWindow* window, | 35 bool CanReorderWindow(const ServerWindow* window, |
35 const ServerWindow* relative_window, | 36 const ServerWindow* relative_window, |
36 mojom::OrderDirection direction) const override; | 37 mojom::OrderDirection direction) const override; |
37 bool CanDeleteWindow(const ServerWindow* window) const override; | 38 bool CanDeleteWindow(const ServerWindow* window) const override; |
38 bool CanGetWindowTree(const ServerWindow* window) const override; | 39 bool CanGetWindowTree(const ServerWindow* window) const override; |
39 bool CanDescendIntoWindowForWindowTree( | 40 bool CanDescendIntoWindowForWindowTree( |
40 const ServerWindow* window) const override; | 41 const ServerWindow* window) const override; |
41 bool CanEmbed(const ServerWindow* window, | 42 bool CanEmbed(const ServerWindow* window, |
42 uint32_t policy_bitmask) const override; | 43 uint32_t policy_bitmask) const override; |
43 bool CanChangeWindowVisibility(const ServerWindow* window) const override; | 44 bool CanChangeWindowVisibility(const ServerWindow* window) const override; |
(...skipping 22 matching lines...) Expand all Loading... |
66 AccessPolicyDelegate* delegate_; | 67 AccessPolicyDelegate* delegate_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); | 69 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace ws | 72 } // namespace ws |
72 | 73 |
73 } // namespace mus | 74 } // namespace mus |
74 | 75 |
75 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ | 76 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ |
OLD | NEW |