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_ACCESS_POLICY_H_ | 5 #ifndef COMPONENTS_MUS_WS_ACCESS_POLICY_H_ |
6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "components/mus/public/interfaces/mus_constants.mojom.h" | 10 #include "components/mus/public/interfaces/mus_constants.mojom.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Unless otherwise mentioned all arguments have been validated. That is the | 26 // Unless otherwise mentioned all arguments have been validated. That is the |
27 // |window| arguments are non-null unless otherwise stated (eg CanSetWindow() | 27 // |window| arguments are non-null unless otherwise stated (eg CanSetWindow() |
28 // is allowed to take a NULL window). | 28 // is allowed to take a NULL window). |
29 virtual bool CanRemoveWindowFromParent(const ServerWindow* window) const = 0; | 29 virtual bool CanRemoveWindowFromParent(const ServerWindow* window) const = 0; |
30 virtual bool CanAddWindow(const ServerWindow* parent, | 30 virtual bool CanAddWindow(const ServerWindow* parent, |
31 const ServerWindow* child) const = 0; | 31 const ServerWindow* child) const = 0; |
32 virtual bool CanAddTransientWindow(const ServerWindow* parent, | 32 virtual bool CanAddTransientWindow(const ServerWindow* parent, |
33 const ServerWindow* child) const = 0; | 33 const ServerWindow* child) const = 0; |
34 virtual bool CanRemoveTransientWindowFromParent( | 34 virtual bool CanRemoveTransientWindowFromParent( |
35 const ServerWindow* window) const = 0; | 35 const ServerWindow* window) const = 0; |
| 36 virtual bool CanSetAsModal(const ServerWindow* window) const = 0; |
36 virtual bool CanReorderWindow(const ServerWindow* window, | 37 virtual bool CanReorderWindow(const ServerWindow* window, |
37 const ServerWindow* relative_window, | 38 const ServerWindow* relative_window, |
38 mojom::OrderDirection direction) const = 0; | 39 mojom::OrderDirection direction) const = 0; |
39 virtual bool CanDeleteWindow(const ServerWindow* window) const = 0; | 40 virtual bool CanDeleteWindow(const ServerWindow* window) const = 0; |
40 virtual bool CanGetWindowTree(const ServerWindow* window) const = 0; | 41 virtual bool CanGetWindowTree(const ServerWindow* window) const = 0; |
41 // Used when building a window tree (GetWindowTree()) to decide if we should | 42 // Used when building a window tree (GetWindowTree()) to decide if we should |
42 // descend into |window|. | 43 // descend into |window|. |
43 virtual bool CanDescendIntoWindowForWindowTree( | 44 virtual bool CanDescendIntoWindowForWindowTree( |
44 const ServerWindow* window) const = 0; | 45 const ServerWindow* window) const = 0; |
45 virtual bool CanEmbed(const ServerWindow* window, | 46 virtual bool CanEmbed(const ServerWindow* window, |
(...skipping 23 matching lines...) Expand all Loading... |
69 // Returns the window to supply to the client when focus changes to |focused|. | 70 // Returns the window to supply to the client when focus changes to |focused|. |
70 virtual const ServerWindow* GetWindowForFocusChange( | 71 virtual const ServerWindow* GetWindowForFocusChange( |
71 const ServerWindow* focused) = 0; | 72 const ServerWindow* focused) = 0; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace ws | 75 } // namespace ws |
75 | 76 |
76 } // namespace mus | 77 } // namespace mus |
77 | 78 |
78 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 79 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ |
OLD | NEW |