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_WINDOW_MANAGER_ACCESS_POLICY_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
6 #define SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 6 #define SERVICES_UI_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool CanSetWindowSurface(const ServerWindow* window, | 44 bool CanSetWindowSurface(const ServerWindow* window, |
45 ui::mojom::SurfaceType surface_type) const override; | 45 ui::mojom::SurfaceType surface_type) const override; |
46 bool CanSetWindowBounds(const ServerWindow* window) const override; | 46 bool CanSetWindowBounds(const ServerWindow* window) const override; |
47 bool CanSetWindowProperties(const ServerWindow* window) const override; | 47 bool CanSetWindowProperties(const ServerWindow* window) const override; |
48 bool CanSetWindowTextInputState(const ServerWindow* window) const override; | 48 bool CanSetWindowTextInputState(const ServerWindow* window) const override; |
49 bool CanSetCapture(const ServerWindow* window) const override; | 49 bool CanSetCapture(const ServerWindow* window) const override; |
50 bool CanSetFocus(const ServerWindow* window) const override; | 50 bool CanSetFocus(const ServerWindow* window) const override; |
51 bool CanSetClientArea(const ServerWindow* window) const override; | 51 bool CanSetClientArea(const ServerWindow* window) const override; |
52 bool CanSetHitTestMask(const ServerWindow* window) const override; | 52 bool CanSetHitTestMask(const ServerWindow* window) const override; |
53 bool CanSetCursorProperties(const ServerWindow* window) const override; | 53 bool CanSetCursorProperties(const ServerWindow* window) const override; |
| 54 bool CanInitiateMoveLoop(const ServerWindow* window) const override; |
54 bool ShouldNotifyOnHierarchyChange( | 55 bool ShouldNotifyOnHierarchyChange( |
55 const ServerWindow* window, | 56 const ServerWindow* window, |
56 const ServerWindow** new_parent, | 57 const ServerWindow** new_parent, |
57 const ServerWindow** old_parent) const override; | 58 const ServerWindow** old_parent) const override; |
58 const ServerWindow* GetWindowForFocusChange( | 59 const ServerWindow* GetWindowForFocusChange( |
59 const ServerWindow* focused) override; | 60 const ServerWindow* focused) override; |
60 bool CanSetWindowManager() const override; | 61 bool CanSetWindowManager() const override; |
61 bool IsValidIdForNewWindow(const ClientWindowId& id) const override; | 62 bool IsValidIdForNewWindow(const ClientWindowId& id) const override; |
62 | 63 |
63 private: | 64 private: |
64 bool IsWindowKnown(const ServerWindow* window) const; | 65 bool IsWindowKnown(const ServerWindow* window) const; |
65 bool WasCreatedByThisClient(const ServerWindow* window) const; | 66 bool WasCreatedByThisClient(const ServerWindow* window) const; |
66 | 67 |
67 ClientSpecificId client_id_ = 0u; | 68 ClientSpecificId client_id_ = 0u; |
68 AccessPolicyDelegate* delegate_ = nullptr; | 69 AccessPolicyDelegate* delegate_ = nullptr; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); | 71 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); |
71 }; | 72 }; |
72 | 73 |
73 } // namespace ws | 74 } // namespace ws |
74 } // namespace ui | 75 } // namespace ui |
75 | 76 |
76 #endif // SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 77 #endif // SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
OLD | NEW |