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_DEFAULT_ACCESS_POLICY_H_ | 5 #ifndef COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ |
6 #define COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ | 6 #define COMPONENTS_MUS_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 28 matching lines...) Expand all Loading... |
39 bool CanDescendIntoWindowForWindowTree( | 39 bool CanDescendIntoWindowForWindowTree( |
40 const ServerWindow* window) const override; | 40 const ServerWindow* window) const override; |
41 bool CanEmbed(const ServerWindow* window, | 41 bool CanEmbed(const ServerWindow* window, |
42 uint32_t policy_bitmask) const override; | 42 uint32_t policy_bitmask) const override; |
43 bool CanChangeWindowVisibility(const ServerWindow* window) const override; | 43 bool CanChangeWindowVisibility(const ServerWindow* window) const override; |
44 bool CanSetWindowSurface(const ServerWindow* window, | 44 bool CanSetWindowSurface(const ServerWindow* window, |
45 mus::mojom::SurfaceType surface_type) const override; | 45 mus::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 CanSetFocus(const ServerWindow* window) const override; | 50 bool CanSetFocus(const ServerWindow* window) const override; |
50 bool CanSetClientArea(const ServerWindow* window) const override; | 51 bool CanSetClientArea(const ServerWindow* window) const override; |
51 bool CanSetCursorProperties(const ServerWindow* window) const override; | 52 bool CanSetCursorProperties(const ServerWindow* window) const override; |
52 bool ShouldNotifyOnHierarchyChange( | 53 bool ShouldNotifyOnHierarchyChange( |
53 const ServerWindow* window, | 54 const ServerWindow* window, |
54 const ServerWindow** new_parent, | 55 const ServerWindow** new_parent, |
55 const ServerWindow** old_parent) const override; | 56 const ServerWindow** old_parent) const override; |
56 const ServerWindow* GetWindowForFocusChange( | 57 const ServerWindow* GetWindowForFocusChange( |
57 const ServerWindow* focused) override; | 58 const ServerWindow* focused) override; |
58 bool CanSetWindowManager() const override; | 59 bool CanSetWindowManager() const override; |
59 | 60 |
60 private: | 61 private: |
61 bool WasCreatedByThisConnection(const ServerWindow* window) const; | 62 bool WasCreatedByThisConnection(const ServerWindow* window) const; |
62 bool IsDescendantOfEmbedRoot(const ServerWindow* window) const; | 63 bool IsDescendantOfEmbedRoot(const ServerWindow* window) const; |
63 | 64 |
64 const ConnectionSpecificId connection_id_; | 65 const ConnectionSpecificId connection_id_; |
65 AccessPolicyDelegate* delegate_; | 66 AccessPolicyDelegate* delegate_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); | 68 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace ws | 71 } // namespace ws |
71 | 72 |
72 } // namespace mus | 73 } // namespace mus |
73 | 74 |
74 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ | 75 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ |
OLD | NEW |