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 SERVICES_UI_WS_ACCESS_POLICY_H_ | 5 #ifndef SERVICES_UI_WS_ACCESS_POLICY_H_ |
6 #define SERVICES_UI_WS_ACCESS_POLICY_H_ | 6 #define SERVICES_UI_WS_ACCESS_POLICY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "services/ui/public/interfaces/mus_constants.mojom.h" | 10 #include "services/ui/public/interfaces/mus_constants.mojom.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; | 54 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; |
55 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; | 55 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; |
56 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; | 56 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; |
57 virtual bool CanSetCapture(const ServerWindow* window) const = 0; | 57 virtual bool CanSetCapture(const ServerWindow* window) const = 0; |
58 virtual bool CanSetFocus(const ServerWindow* window) const = 0; | 58 virtual bool CanSetFocus(const ServerWindow* window) const = 0; |
59 virtual bool CanSetClientArea(const ServerWindow* window) const = 0; | 59 virtual bool CanSetClientArea(const ServerWindow* window) const = 0; |
60 virtual bool CanSetHitTestMask(const ServerWindow* window) const = 0; | 60 virtual bool CanSetHitTestMask(const ServerWindow* window) const = 0; |
61 // Used for all client controllable cursor properties; which cursor should be | 61 // Used for all client controllable cursor properties; which cursor should be |
62 // displayed, visibility, locking, etc. | 62 // displayed, visibility, locking, etc. |
63 virtual bool CanSetCursorProperties(const ServerWindow* window) const = 0; | 63 virtual bool CanSetCursorProperties(const ServerWindow* window) const = 0; |
| 64 virtual bool CanInitiateMoveLoop(const ServerWindow* window) const = 0; |
64 | 65 |
65 // Returns whether the client should notify on a hierarchy change. | 66 // Returns whether the client should notify on a hierarchy change. |
66 // |new_parent| and |old_parent| are initially set to the new and old parents | 67 // |new_parent| and |old_parent| are initially set to the new and old parents |
67 // but may be altered so that the client only sees a certain set of windows. | 68 // but may be altered so that the client only sees a certain set of windows. |
68 virtual bool ShouldNotifyOnHierarchyChange( | 69 virtual bool ShouldNotifyOnHierarchyChange( |
69 const ServerWindow* window, | 70 const ServerWindow* window, |
70 const ServerWindow** new_parent, | 71 const ServerWindow** new_parent, |
71 const ServerWindow** old_parent) const = 0; | 72 const ServerWindow** old_parent) const = 0; |
72 virtual bool CanSetWindowManager() const = 0; | 73 virtual bool CanSetWindowManager() const = 0; |
73 | 74 |
74 // Returns the window to supply to the client when focus changes to |focused|. | 75 // Returns the window to supply to the client when focus changes to |focused|. |
75 virtual const ServerWindow* GetWindowForFocusChange( | 76 virtual const ServerWindow* GetWindowForFocusChange( |
76 const ServerWindow* focused) = 0; | 77 const ServerWindow* focused) = 0; |
77 | 78 |
78 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0; | 79 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0; |
79 }; | 80 }; |
80 | 81 |
81 } // namespace ws | 82 } // namespace ws |
82 } // namespace ui | 83 } // namespace ui |
83 | 84 |
84 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_ | 85 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_ |
OLD | NEW |