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