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

Unified Diff: services/ui/ws/window_server.h

Issue 2274353003: Add PlatformScreenDelegate and start implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes for comments. Created 4 years, 4 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 | « services/ui/ws/user_display_manager_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 148cda0b2325f4615f79d8a5d382b78794415399..3185f00c948ff6864e5e7f867d7c654beb39c7bf 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -21,11 +21,11 @@
#include "services/ui/public/interfaces/window_tree_host.mojom.h"
#include "services/ui/surfaces/surfaces_state.h"
#include "services/ui/ws/display.h"
-#include "services/ui/ws/display_manager_delegate.h"
#include "services/ui/ws/ids.h"
#include "services/ui/ws/operation.h"
#include "services/ui/ws/server_window_delegate.h"
#include "services/ui/ws/server_window_observer.h"
+#include "services/ui/ws/user_display_manager_delegate.h"
#include "services/ui/ws/user_id_tracker.h"
#include "services/ui/ws/user_id_tracker_observer.h"
#include "services/ui/ws/window_manager_window_tree_factory_set.h"
@@ -46,11 +46,10 @@ class WindowTreeBinding;
// WindowTrees) as well as providing the root of the hierarchy.
class WindowServer : public ServerWindowDelegate,
public ServerWindowObserver,
- public DisplayManagerDelegate,
+ public UserDisplayManagerDelegate,
public UserIdTrackerObserver {
public:
- WindowServer(WindowServerDelegate* delegate,
- const scoped_refptr<ui::SurfacesState>& surfaces_state);
+ explicit WindowServer(WindowServerDelegate* delegate);
~WindowServer() override;
WindowServerDelegate* delegate() { return delegate_; }
@@ -216,6 +215,18 @@ class WindowServer : public ServerWindowDelegate,
gfx::Rect GetCurrentMoveLoopRevertBounds();
bool in_move_loop() const { return !!current_move_loop_; }
+ void OnFirstDisplayReady();
+ void OnNoMoreDisplays();
+ WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id);
+
+ // ServerWindowDelegate:
+ ui::SurfacesState* GetSurfacesState() override;
+
+ // UserDisplayManagerDelegate:
+ bool GetFrameDecorationsForUser(
+ const UserId& user_id,
+ mojom::FrameDecorationValuesPtr* values) override;
+
private:
struct CurrentMoveLoopState;
friend class Operation;
@@ -266,7 +277,6 @@ class WindowServer : public ServerWindowDelegate,
bool IsUserInHighContrastMode(const UserId& user) const;
// Overridden from ServerWindowDelegate:
- ui::SurfacesState* GetSurfacesState() override;
void OnScheduleWindowPaint(ServerWindow* window) override;
const ServerWindow* GetRootWindow(const ServerWindow* window) const override;
void ScheduleSurfaceDestruction(ServerWindow* window) override;
@@ -309,15 +319,6 @@ class WindowServer : public ServerWindowDelegate,
void OnTransientWindowRemoved(ServerWindow* window,
ServerWindow* transient_child) override;
- // DisplayManagerDelegate:
- void OnFirstDisplayReady() override;
- void OnNoMoreDisplays() override;
- bool GetFrameDecorationsForUser(
- const UserId& user_id,
- mojom::FrameDecorationValuesPtr* values) override;
- WindowManagerState* GetWindowManagerStateForUser(
- const UserId& user_id) override;
-
// UserIdTrackerObserver:
void OnActiveUserIdChanged(const UserId& previously_active_id,
const UserId& active_id) override;
« no previous file with comments | « services/ui/ws/user_display_manager_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698