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_WINDOW_MANAGER_ACCESS_POLICY_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_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 25 matching lines...) Expand all Loading... |
36 bool CanDescendIntoWindowForWindowTree( | 36 bool CanDescendIntoWindowForWindowTree( |
37 const ServerWindow* window) const override; | 37 const ServerWindow* window) const override; |
38 bool CanEmbed(const ServerWindow* window, | 38 bool CanEmbed(const ServerWindow* window, |
39 uint32_t policy_bitmask) const override; | 39 uint32_t policy_bitmask) const override; |
40 bool CanChangeWindowVisibility(const ServerWindow* window) const override; | 40 bool CanChangeWindowVisibility(const ServerWindow* window) const override; |
41 bool CanSetWindowSurface(const ServerWindow* window, | 41 bool CanSetWindowSurface(const ServerWindow* window, |
42 mus::mojom::SurfaceType surface_type) const override; | 42 mus::mojom::SurfaceType surface_type) const override; |
43 bool CanSetWindowBounds(const ServerWindow* window) const override; | 43 bool CanSetWindowBounds(const ServerWindow* window) const override; |
44 bool CanSetWindowProperties(const ServerWindow* window) const override; | 44 bool CanSetWindowProperties(const ServerWindow* window) const override; |
45 bool CanSetWindowTextInputState(const ServerWindow* window) const override; | 45 bool CanSetWindowTextInputState(const ServerWindow* window) const override; |
| 46 bool CanSetCapture(const ServerWindow* window) const override; |
46 bool CanSetFocus(const ServerWindow* window) const override; | 47 bool CanSetFocus(const ServerWindow* window) const override; |
47 bool CanSetClientArea(const ServerWindow* window) const override; | 48 bool CanSetClientArea(const ServerWindow* window) const override; |
48 bool ShouldNotifyOnHierarchyChange( | 49 bool ShouldNotifyOnHierarchyChange( |
49 const ServerWindow* window, | 50 const ServerWindow* window, |
50 const ServerWindow** new_parent, | 51 const ServerWindow** new_parent, |
51 const ServerWindow** old_parent) const override; | 52 const ServerWindow** old_parent) const override; |
52 const ServerWindow* GetWindowForFocusChange( | 53 const ServerWindow* GetWindowForFocusChange( |
53 const ServerWindow* focused) override; | 54 const ServerWindow* focused) override; |
54 | 55 |
55 private: | 56 private: |
56 bool IsWindowKnown(const ServerWindow* window) const; | 57 bool IsWindowKnown(const ServerWindow* window) const; |
57 | 58 |
58 const ConnectionSpecificId connection_id_; | 59 const ConnectionSpecificId connection_id_; |
59 AccessPolicyDelegate* delegate_; | 60 AccessPolicyDelegate* delegate_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); | 62 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace ws | 65 } // namespace ws |
65 | 66 |
66 } // namespace mus | 67 } // namespace mus |
67 | 68 |
68 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 69 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
OLD | NEW |