| 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_ACCESS_POLICY_H_ | 5 #ifndef SERVICES_UI_WS_ACCESS_POLICY_H_ |
| 6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 6 #define SERVICES_UI_WS_ACCESS_POLICY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "components/mus/public/interfaces/mus_constants.mojom.h" | 10 #include "services/ui/public/interfaces/mus_constants.mojom.h" |
| 11 #include "components/mus/public/interfaces/window_tree.mojom.h" | 11 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 12 #include "components/mus/ws/ids.h" | 12 #include "services/ui/ws/ids.h" |
| 13 | 13 |
| 14 namespace mus { | 14 namespace mus { |
| 15 namespace ws { | 15 namespace ws { |
| 16 | 16 |
| 17 class AccessPolicyDelegate; | 17 class AccessPolicyDelegate; |
| 18 class ServerWindow; | 18 class ServerWindow; |
| 19 | 19 |
| 20 // AccessPolicy is used by WindowTree to determine what the WindowTree is | 20 // AccessPolicy is used by WindowTree to determine what the WindowTree is |
| 21 // allowed to do. | 21 // allowed to do. |
| 22 class AccessPolicy { | 22 class AccessPolicy { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Returns the window to supply to the client when focus changes to |focused|. | 74 // Returns the window to supply to the client when focus changes to |focused|. |
| 75 virtual const ServerWindow* GetWindowForFocusChange( | 75 virtual const ServerWindow* GetWindowForFocusChange( |
| 76 const ServerWindow* focused) = 0; | 76 const ServerWindow* focused) = 0; |
| 77 | 77 |
| 78 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0; | 78 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace ws | 81 } // namespace ws |
| 82 } // namespace mus | 82 } // namespace mus |
| 83 | 83 |
| 84 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 84 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_ |
| OLD | NEW |