| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // See the mojom with the same name for details on the functions in this | 41 // See the mojom with the same name for details on the functions in this |
| 42 // interface. | 42 // interface. |
| 43 class AURA_EXPORT WindowManagerClient { | 43 class AURA_EXPORT WindowManagerClient { |
| 44 public: | 44 public: |
| 45 virtual void SetFrameDecorationValues( | 45 virtual void SetFrameDecorationValues( |
| 46 ui::mojom::FrameDecorationValuesPtr values) = 0; | 46 ui::mojom::FrameDecorationValuesPtr values) = 0; |
| 47 virtual void SetNonClientCursor(Window* window, | 47 virtual void SetNonClientCursor(Window* window, |
| 48 ui::mojom::Cursor non_client_cursor) = 0; | 48 ui::mojom::Cursor non_client_cursor) = 0; |
| 49 | 49 |
| 50 virtual void AddAccelerators( | 50 virtual void AddAccelerators( |
| 51 std::vector<ui::mojom::AcceleratorPtr> accelerators, | 51 std::vector<ui::mojom::WmAcceleratorPtr> accelerators, |
| 52 const base::Callback<void(bool)>& callback) = 0; | 52 const base::Callback<void(bool)>& callback) = 0; |
| 53 virtual void RemoveAccelerator(uint32_t id) = 0; | 53 virtual void RemoveAccelerator(uint32_t id) = 0; |
| 54 virtual void AddActivationParent(Window* window) = 0; | 54 virtual void AddActivationParent(Window* window) = 0; |
| 55 virtual void RemoveActivationParent(Window* window) = 0; | 55 virtual void RemoveActivationParent(Window* window) = 0; |
| 56 virtual void ActivateNextWindow() = 0; | 56 virtual void ActivateNextWindow() = 0; |
| 57 virtual void SetExtendedHitArea(Window* window, | 57 virtual void SetExtendedHitArea(Window* window, |
| 58 const gfx::Insets& hit_area) = 0; | 58 const gfx::Insets& hit_area) = 0; |
| 59 | 59 |
| 60 // Requests the client embedded in |window| to close the window. Only | 60 // Requests the client embedded in |window| to close the window. Only |
| 61 // applicable to top-level windows. If a client is not embedded in |window|, | 61 // applicable to top-level windows. If a client is not embedded in |window|, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // window. | 156 // window. |
| 157 virtual void OnWmDeactivateWindow(Window* window) = 0; | 157 virtual void OnWmDeactivateWindow(Window* window) = 0; |
| 158 | 158 |
| 159 protected: | 159 protected: |
| 160 virtual ~WindowManagerDelegate() {} | 160 virtual ~WindowManagerDelegate() {} |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace ui | 163 } // namespace ui |
| 164 | 164 |
| 165 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 165 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |