| 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 COMPONENTS_MUS_WS_ACCESS_POLICY_H_ |
| 6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 6 #define COMPONENTS_MUS_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 "components/mus/public/interfaces/mus_constants.mojom.h" |
| 11 #include "components/mus/public/interfaces/window_tree.mojom.h" | 11 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 12 #include "components/mus/ws/ids.h" | 12 #include "components/mus/ws/ids.h" |
| 13 | 13 |
| 14 namespace mus { | 14 namespace mus { |
| 15 | |
| 16 namespace ws { | 15 namespace ws { |
| 17 | 16 |
| 18 class ServerWindow; | 17 class ServerWindow; |
| 19 | 18 |
| 20 // AccessPolicy is used by WindowTreeImpl to determine what a connection is | 19 // AccessPolicy is used by WindowTreeImpl to determine what a connection is |
| 21 // allowed to do. | 20 // allowed to do. |
| 22 class AccessPolicy { | 21 class AccessPolicy { |
| 23 public: | 22 public: |
| 24 virtual ~AccessPolicy() {} | 23 virtual ~AccessPolicy() {} |
| 25 | 24 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const ServerWindow** new_parent, | 64 const ServerWindow** new_parent, |
| 66 const ServerWindow** old_parent) const = 0; | 65 const ServerWindow** old_parent) const = 0; |
| 67 virtual bool CanSetWindowManager() const = 0; | 66 virtual bool CanSetWindowManager() const = 0; |
| 68 | 67 |
| 69 // Returns the window to supply to the client when focus changes to |focused|. | 68 // Returns the window to supply to the client when focus changes to |focused|. |
| 70 virtual const ServerWindow* GetWindowForFocusChange( | 69 virtual const ServerWindow* GetWindowForFocusChange( |
| 71 const ServerWindow* focused) = 0; | 70 const ServerWindow* focused) = 0; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace ws | 73 } // namespace ws |
| 75 | |
| 76 } // namespace mus | 74 } // namespace mus |
| 77 | 75 |
| 78 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 76 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ |
| OLD | NEW |