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

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

Issue 1766943002: Refators display related functionality into own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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/connection_manager_delegate.h ('k') | components/mus/ws/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/display.h
diff --git a/components/mus/ws/display.h b/components/mus/ws/display.h
index 6cf8975ab3aae35679c3b3e4b5430861492e4e96..761aa82265f54fce716c8c453e6d35a3cc86b238 100644
--- a/components/mus/ws/display.h
+++ b/components/mus/ws/display.h
@@ -32,6 +32,7 @@ namespace ws {
class ConnectionManager;
class DisplayBinding;
+class DisplayManager;
class FocusController;
class WindowManagerState;
class WindowTree;
@@ -79,11 +80,8 @@ class Display : public PlatformDisplayDelegate,
return *frame_decoration_values_;
}
- // Schedules a paint for the specified region in the coordinates of |window|
- // if the |window| is in this viewport. Returns whether |window| is in the
- // viewport.
- bool SchedulePaintIfInViewport(const ServerWindow* window,
- const gfx::Rect& bounds);
+ // Schedules a paint for the specified region in the coordinates of |window|.
+ void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds);
// Schedules destruction of surfaces in |window|. If a frame has been
// scheduled but not drawn surface destruction is delayed until the frame is
@@ -136,9 +134,8 @@ class Display : public PlatformDisplayDelegate,
return event_dispatcher_.capture_window();
}
- // Called just before |tree| is destroyed after its connection encounters an
- // error.
- void OnWindowTreeConnectionError(WindowTree* tree);
+ // Called just before |tree| is destroyed.
+ void OnWillDestroyTree(WindowTree* tree);
// Called when a client updates a cursor. This will update the cursor on the
// native display if the cursor is currently under |window|.
@@ -181,6 +178,9 @@ class Display : public PlatformDisplayDelegate,
// Inits the necessary state once the display is ready.
void InitWindowManagersIfNecessary();
+ DisplayManager* display_manager();
+ const DisplayManager* display_manager() const;
+
void OnEventAckTimeout();
// Schedules an event to be processed later.
« no previous file with comments | « components/mus/ws/connection_manager_delegate.h ('k') | components/mus/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698