| 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 #include "components/mus/ws/global_window_manager_state.h" | |
| 6 | |
| 7 #include "components/mus/ws/display_manager.h" | |
| 8 #include "components/mus/ws/user_display_manager.h" | |
| 9 #include "components/mus/ws/window_tree.h" | |
| 10 | |
| 11 namespace mus { | |
| 12 namespace ws { | |
| 13 | |
| 14 GlobalWindowManagerState::GlobalWindowManagerState(WindowTree* window_tree) | |
| 15 : window_tree_(window_tree) { | |
| 16 frame_decoration_values_ = mojom::FrameDecorationValues::New(); | |
| 17 frame_decoration_values_->max_title_bar_button_width = 0u; | |
| 18 } | |
| 19 | |
| 20 GlobalWindowManagerState::~GlobalWindowManagerState() {} | |
| 21 | |
| 22 void GlobalWindowManagerState::SetFrameDecorationValues( | |
| 23 mojom::FrameDecorationValuesPtr values) { | |
| 24 got_frame_decoration_values_ = true; | |
| 25 frame_decoration_values_ = values.Clone(); | |
| 26 window_tree_->display_manager() | |
| 27 ->GetUserDisplayManager(window_tree_->user_id()) | |
| 28 ->OnFrameDecorationValuesChanged(); | |
| 29 } | |
| 30 | |
| 31 } // namespace ws | |
| 32 } // namespace mus | |
| OLD | NEW |