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

Unified Diff: ui/display/display_list.h

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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/window_tree_client_unittest.cc ('k') | ui/display/display_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display_list.h
diff --git a/ui/display/display_list.h b/ui/display/display_list.h
index df748457c63eb85f196094e1f8a9915682d1874e..c280fd44b491631dcd6244d73cf96741e84a783b 100644
--- a/ui/display/display_list.h
+++ b/ui/display/display_list.h
@@ -65,8 +65,11 @@ class DISPLAY_EXPORT DisplayList {
// callers release the last lock they call the observers appropriately.
std::unique_ptr<DisplayListObserverLock> SuspendObserverUpdates();
- // Updates the cached id based on display.id() as well as whether the Display
- // is the primary display.
+ // Updates the cached display based on display.id().
+ void UpdateDisplay(const display::Display& display);
+
+ // Updates the cached display based on display.id(). Also updates the primary
+ // display if |type| indicates |display| is the primary display.
void UpdateDisplay(const display::Display& display, Type type);
// Adds a new Display.
@@ -88,6 +91,8 @@ class DISPLAY_EXPORT DisplayList {
void IncrementObserverSuspendLockCount();
void DecrementObserverSuspendLockCount();
+ Type GetTypeByDisplayId(int64_t display_id) const;
+
std::vector<display::Display> displays_;
int primary_display_index_ = -1;
base::ObserverList<display::DisplayObserver> observers_;
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | ui/display/display_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698