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