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

Unified Diff: components/mus/ws/display_manager.h

Issue 1775583002: Moves FrameDecorations from Display to WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 9 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/display.cc ('k') | components/mus/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/display_manager.h
diff --git a/components/mus/ws/display_manager.h b/components/mus/ws/display_manager.h
index 7123469ad70979f4894353f6eb5eef68f499f46e..686b15a0cf9b663eb75baa6d7e9079dfdb5abfef 100644
--- a/components/mus/ws/display_manager.h
+++ b/components/mus/ws/display_manager.h
@@ -5,10 +5,13 @@
#ifndef COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_
#define COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_
+#include <map>
#include <set>
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "components/mus/ws/ids.h"
+#include "components/mus/ws/user_id.h"
namespace mus {
namespace ws {
@@ -16,6 +19,7 @@ namespace ws {
class Display;
class DisplayManagerDelegate;
class ServerWindow;
+class UserDisplayManager;
class WindowManagerState;
struct WindowManagerAndDisplay {
@@ -37,6 +41,10 @@ class DisplayManager {
explicit DisplayManager(DisplayManagerDelegate* delegate);
~DisplayManager();
+ // Returns the UserDisplayManager for |user_id|. DisplayManager owns the
+ // return value.
+ UserDisplayManager* GetUserDisplayManager(const UserId& user_id);
+
// Adds/removes a Display. DisplayManager owns the Displays.
// TODO(sky): make add take a scoped_ptr.
void AddDisplay(Display* display);
@@ -66,6 +74,8 @@ class DisplayManager {
// as well as the root of WindowManagers).
WindowId GetAndAdvanceNextRootId();
+ uint32_t GetAndAdvanceNextDisplayId();
+
// Called when the AcceleratedWidget is available for |display|.
void OnDisplayAcceleratedWidgetAvailable(Display* display);
@@ -78,9 +88,13 @@ class DisplayManager {
std::set<Display*> pending_displays_;
std::set<Display*> displays_;
+ std::map<UserId, scoped_ptr<UserDisplayManager>> user_display_managers_;
+
// ID to use for next root node.
ConnectionSpecificId next_root_id_;
+ uint32_t next_display_id_;
+
DISALLOW_COPY_AND_ASSIGN(DisplayManager);
};
« no previous file with comments | « components/mus/ws/display.cc ('k') | components/mus/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698