| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_MUS_WS_GLOBAL_WINDOW_MANAGER_STATE_H_ | |
| 6 #define COMPONENTS_MUS_WS_GLOBAL_WINDOW_MANAGER_STATE_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "components/mus/public/interfaces/display.mojom.h" | |
| 11 | |
| 12 namespace mus { | |
| 13 namespace ws { | |
| 14 | |
| 15 class WindowTree; | |
| 16 | |
| 17 // Manages state specific to a WindowManager that is shared across displays. | |
| 18 // GlobalWindowManagerState is owned by the WindowTree the window manager is | |
| 19 // associated with. | |
| 20 class GlobalWindowManagerState { | |
| 21 public: | |
| 22 explicit GlobalWindowManagerState(WindowTree* window_tree); | |
| 23 ~GlobalWindowManagerState(); | |
| 24 | |
| 25 void SetFrameDecorationValues(mojom::FrameDecorationValuesPtr values); | |
| 26 const mojom::FrameDecorationValues& frame_decoration_values() const { | |
| 27 return *frame_decoration_values_; | |
| 28 } | |
| 29 bool got_frame_decoration_values() const { | |
| 30 return got_frame_decoration_values_; | |
| 31 } | |
| 32 | |
| 33 private: | |
| 34 WindowTree* window_tree_; | |
| 35 | |
| 36 // Set to true the first time SetFrameDecorationValues() is called. | |
| 37 bool got_frame_decoration_values_ = false; | |
| 38 mojom::FrameDecorationValuesPtr frame_decoration_values_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(GlobalWindowManagerState); | |
| 41 }; | |
| 42 | |
| 43 } // namespace ws | |
| 44 } // namespace mus | |
| 45 | |
| 46 #endif // COMPONENTS_MUS_WS_GLOBAL_WINDOW_MANAGER_STATE_H_ | |
| OLD | NEW |