| 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 SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 6 #define SERVICES_UI_WS_WINDOW_MANAGER_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const ServerWindow* window) const override; | 45 const ServerWindow* window) 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 CanSetCapture(const ServerWindow* window) const override; |
| 50 bool CanSetFocus(const ServerWindow* window) const override; | 50 bool CanSetFocus(const ServerWindow* window) const override; |
| 51 bool CanSetClientArea(const ServerWindow* window) const override; | 51 bool CanSetClientArea(const ServerWindow* window) const override; |
| 52 bool CanSetHitTestMask(const ServerWindow* window) const override; | 52 bool CanSetHitTestMask(const ServerWindow* window) const override; |
| 53 bool CanSetAcceptDrops(const ServerWindow* window) const override; | 53 bool CanSetAcceptDrops(const ServerWindow* window) const override; |
| 54 bool CanSetAcceptEvents(const ServerWindow* window) const override; | 54 bool CanSetAcceptEvents(const ServerWindow* window) const override; |
| 55 bool CanStackAbove(const ServerWindow* above, |
| 56 const ServerWindow* below) const override; |
| 55 bool CanStackAtTop(const ServerWindow* window) const override; | 57 bool CanStackAtTop(const ServerWindow* window) const override; |
| 56 bool CanSetCursorProperties(const ServerWindow* window) const override; | 58 bool CanSetCursorProperties(const ServerWindow* window) const override; |
| 57 bool CanInitiateDragLoop(const ServerWindow* window) const override; | 59 bool CanInitiateDragLoop(const ServerWindow* window) const override; |
| 58 bool CanInitiateMoveLoop(const ServerWindow* window) const override; | 60 bool CanInitiateMoveLoop(const ServerWindow* window) const override; |
| 59 bool ShouldNotifyOnHierarchyChange( | 61 bool ShouldNotifyOnHierarchyChange( |
| 60 const ServerWindow* window, | 62 const ServerWindow* window, |
| 61 const ServerWindow** new_parent, | 63 const ServerWindow** new_parent, |
| 62 const ServerWindow** old_parent) const override; | 64 const ServerWindow** old_parent) const override; |
| 63 const ServerWindow* GetWindowForFocusChange( | 65 const ServerWindow* GetWindowForFocusChange( |
| 64 const ServerWindow* focused) override; | 66 const ServerWindow* focused) override; |
| 65 bool CanSetWindowManager() const override; | 67 bool CanSetWindowManager() const override; |
| 66 bool IsValidIdForNewWindow(const ClientWindowId& id) const override; | 68 bool IsValidIdForNewWindow(const ClientWindowId& id) const override; |
| 67 | 69 |
| 68 private: | 70 private: |
| 69 bool IsWindowKnown(const ServerWindow* window) const; | 71 bool IsWindowKnown(const ServerWindow* window) const; |
| 70 bool WasCreatedByThisClient(const ServerWindow* window) const; | 72 bool WasCreatedByThisClient(const ServerWindow* window) const; |
| 71 | 73 |
| 72 ClientSpecificId client_id_ = 0u; | 74 ClientSpecificId client_id_ = 0u; |
| 73 AccessPolicyDelegate* delegate_ = nullptr; | 75 AccessPolicyDelegate* delegate_ = nullptr; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); | 77 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace ws | 80 } // namespace ws |
| 79 } // namespace ui | 81 } // namespace ui |
| 80 | 82 |
| 81 #endif // SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ | 83 #endif // SERVICES_UI_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ |
| OLD | NEW |