Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: components/mus/ws/global_window_manager_state.cc

Issue 2089023002: Promotes remaining global window manager state into WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/ws/global_window_manager_state.h ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « components/mus/ws/global_window_manager_state.h ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698