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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "components/mus/ws/access_policy.h" | 9 #include "components/mus/ws/access_policy.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 bool CanDescendIntoWindowForWindowTree( | 37 bool CanDescendIntoWindowForWindowTree( |
38 const ServerWindow* window) const override; | 38 const ServerWindow* window) const override; |
39 bool CanEmbed(const ServerWindow* window, | 39 bool CanEmbed(const ServerWindow* window, |
40 uint32_t policy_bitmask) const override; | 40 uint32_t policy_bitmask) const override; |
41 bool CanChangeWindowVisibility(const ServerWindow* window) const override; | 41 bool CanChangeWindowVisibility(const ServerWindow* window) const override; |
42 bool CanSetWindowSurface(const ServerWindow* window, | 42 bool CanSetWindowSurface(const ServerWindow* window, |
43 mus::mojom::SurfaceType surface_type) const override; | 43 mus::mojom::SurfaceType surface_type) const override; |
44 bool CanSetWindowBounds(const ServerWindow* window) const override; | 44 bool CanSetWindowBounds(const ServerWindow* window) const override; |
45 bool CanSetWindowProperties(const ServerWindow* window) const override; | 45 bool CanSetWindowProperties(const ServerWindow* window) const override; |
46 bool CanSetWindowTextInputState(const ServerWindow* window) const override; | 46 bool CanSetWindowTextInputState(const ServerWindow* window) const override; |
| 47 bool CanSetCapture(const ServerWindow* window) const override; |
47 bool CanSetFocus(const ServerWindow* window) const override; | 48 bool CanSetFocus(const ServerWindow* window) const override; |
48 bool CanSetClientArea(const ServerWindow* window) const override; | 49 bool CanSetClientArea(const ServerWindow* window) const override; |
49 bool ShouldNotifyOnHierarchyChange( | 50 bool ShouldNotifyOnHierarchyChange( |
50 const ServerWindow* window, | 51 const ServerWindow* window, |
51 const ServerWindow** new_parent, | 52 const ServerWindow** new_parent, |
52 const ServerWindow** old_parent) const override; | 53 const ServerWindow** old_parent) const override; |
53 const ServerWindow* GetWindowForFocusChange( | 54 const ServerWindow* GetWindowForFocusChange( |
54 const ServerWindow* focused) override; | 55 const ServerWindow* focused) override; |
55 | 56 |
56 private: | 57 private: |
57 bool WasCreatedByThisConnection(const ServerWindow* window) const; | 58 bool WasCreatedByThisConnection(const ServerWindow* window) const; |
58 bool IsDescendantOfEmbedRoot(const ServerWindow* window) const; | 59 bool IsDescendantOfEmbedRoot(const ServerWindow* window) const; |
59 | 60 |
60 const ConnectionSpecificId connection_id_; | 61 const ConnectionSpecificId connection_id_; |
61 AccessPolicyDelegate* delegate_; | 62 AccessPolicyDelegate* delegate_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); | 64 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace ws | 67 } // namespace ws |
67 | 68 |
68 } // namespace mus | 69 } // namespace mus |
69 | 70 |
70 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ | 71 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ |
OLD | NEW |