| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DISPLAY_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ |
| 6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "components/mus/public/interfaces/display.mojom.h" | 8 #include "components/mus/public/interfaces/display.mojom.h" |
| 9 #include "components/mus/ws/user_id.h" | 9 #include "components/mus/ws/user_id.h" |
| 10 | 10 |
| 11 namespace mus { | 11 namespace mus { |
| 12 namespace ws { | 12 namespace ws { |
| 13 | 13 |
| 14 class Display; | 14 class Display; |
| 15 class WindowManagerState; |
| 15 | 16 |
| 16 class DisplayManagerDelegate { | 17 class DisplayManagerDelegate { |
| 17 public: | 18 public: |
| 18 virtual void OnFirstDisplayReady() = 0; | 19 virtual void OnFirstDisplayReady() = 0; |
| 19 virtual void OnNoMoreDisplays() = 0; | 20 virtual void OnNoMoreDisplays() = 0; |
| 20 | 21 |
| 21 // Gets the frame decorations for the specified user. Returns true if the | 22 // Gets the frame decorations for the specified user. Returns true if the |
| 22 // decorations have been set, false otherwise. |values| may be null. | 23 // decorations have been set, false otherwise. |values| may be null. |
| 23 virtual bool GetFrameDecorationsForUser( | 24 virtual bool GetFrameDecorationsForUser( |
| 24 const UserId& user_id, | 25 const UserId& user_id, |
| 25 mojom::FrameDecorationValuesPtr* values) = 0; | 26 mojom::FrameDecorationValuesPtr* values) = 0; |
| 26 | 27 |
| 28 virtual WindowManagerState* GetWindowManagerStateForUser( |
| 29 const UserId& user_id) = 0; |
| 30 |
| 27 protected: | 31 protected: |
| 28 virtual ~DisplayManagerDelegate() {} | 32 virtual ~DisplayManagerDelegate() {} |
| 29 }; | 33 }; |
| 30 | 34 |
| 31 } // namespace ws | 35 } // namespace ws |
| 32 } // namespace mus | 36 } // namespace mus |
| 33 | 37 |
| 34 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ | 38 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_DELEGATE_H_ |
| OLD | NEW |