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

Unified Diff: ui/display/display_list.h

Issue 2784173002: Changes how window is updated when display changes in mash (Closed)
Patch Set: feedback Created 3 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 | « ash/wm/window_state_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 630e4a54e8e9abc8b88b72d20fcf0524e971fac1..20a454d462520de777b0ad0ef15e3eede0c19c2f 100644
--- a/ui/display/display_list.h
+++ b/ui/display/display_list.h
@@ -64,12 +64,15 @@ class DISPLAY_EXPORT DisplayList {
// callers release the last lock they call the observers appropriately.
std::unique_ptr<DisplayListObserverLock> SuspendObserverUpdates();
- // Updates the cached display based on display.id().
- void UpdateDisplay(const Display& display);
+ // Updates the cached display based on display.id(). This returns a bitmask
+ // of the changed values suitable for passing to
+ // DisplayObserver::OnDisplayMetricsChanged().
+ uint32_t UpdateDisplay(const 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, Type type);
+ // display if |type| indicates |display| is the primary display. See single
+ // argument version for description of return value.
+ uint32_t UpdateDisplay(const Display& display, Type type);
// Adds a new Display.
void AddDisplay(const Display& display, Type type);
« no previous file with comments | « ash/wm/window_state_unittest.cc ('k') | ui/display/display_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698