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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/global_window_manager_state.h
diff --git a/components/mus/ws/global_window_manager_state.h b/components/mus/ws/global_window_manager_state.h
deleted file mode 100644
index 37186126abfbb5514a2278aa700e58c6da39416d..0000000000000000000000000000000000000000
--- a/components/mus/ws/global_window_manager_state.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_MUS_WS_GLOBAL_WINDOW_MANAGER_STATE_H_
-#define COMPONENTS_MUS_WS_GLOBAL_WINDOW_MANAGER_STATE_H_
-
-#include <stdint.h>
-
-#include "components/mus/public/interfaces/display.mojom.h"
-
-namespace mus {
-namespace ws {
-
-class WindowTree;
-
-// Manages state specific to a WindowManager that is shared across displays.
-// GlobalWindowManagerState is owned by the WindowTree the window manager is
-// associated with.
-class GlobalWindowManagerState {
- public:
- explicit GlobalWindowManagerState(WindowTree* window_tree);
- ~GlobalWindowManagerState();
-
- void SetFrameDecorationValues(mojom::FrameDecorationValuesPtr values);
- const mojom::FrameDecorationValues& frame_decoration_values() const {
- return *frame_decoration_values_;
- }
- bool got_frame_decoration_values() const {
- return got_frame_decoration_values_;
- }
-
- private:
- WindowTree* window_tree_;
-
- // Set to true the first time SetFrameDecorationValues() is called.
- bool got_frame_decoration_values_ = false;
- mojom::FrameDecorationValuesPtr frame_decoration_values_;
-
- DISALLOW_COPY_AND_ASSIGN(GlobalWindowManagerState);
-};
-
-} // namespace ws
-} // namespace mus
-
-#endif // COMPONENTS_MUS_WS_GLOBAL_WINDOW_MANAGER_STATE_H_
« 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