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

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

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
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 #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_
OLDNEW
« no previous file with comments | « components/mus/ws/event_dispatcher_unittest.cc ('k') | components/mus/ws/global_window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698