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

Unified Diff: ui/display/manager/display_manager.h

Issue 2573673003: Detect and fix overlapping displays (Closed)
Patch Set: Nits Created 3 years, 11 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 | « ui/display/display_layout.cc ('k') | ui/display/manager/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/display_manager.h
diff --git a/ui/display/manager/display_manager.h b/ui/display/manager/display_manager.h
index 604508a64f1843d88b46fd351181bc380703a728..c6644029c60ac6e7e15bf301d5f548356983bf45 100644
--- a/ui/display/manager/display_manager.h
+++ b/ui/display/manager/display_manager.h
@@ -128,6 +128,9 @@ class DISPLAY_MANAGER_EXPORT DisplayManager
// Returns the display layout used for current displays.
const DisplayLayout& GetCurrentDisplayLayout() const;
+ // Returns the actual display layout after it has been resolved and applied.
+ const DisplayLayout& GetCurrentResolvedDisplayLayout() const;
+
// Returns the current display list.
DisplayIdList GetCurrentDisplayIdList() const;
@@ -412,7 +415,7 @@ class DISPLAY_MANAGER_EXPORT DisplayManager
// Applies the |layout| and updates the bounds of displays in |display_list|.
// |updated_ids| contains the ids for displays whose bounds have changed.
- void ApplyDisplayLayout(const DisplayLayout& layout,
+ void ApplyDisplayLayout(DisplayLayout* layout,
Displays* display_list,
std::vector<int64_t>* updated_ids);
@@ -427,6 +430,8 @@ class DISPLAY_MANAGER_EXPORT DisplayManager
std::unique_ptr<DisplayLayoutStore> layout_store_;
+ std::unique_ptr<DisplayLayout> current_resolved_layout_;
+
int64_t first_display_id_ = kInvalidDisplayId;
// List of current active displays.
« no previous file with comments | « ui/display/display_layout.cc ('k') | ui/display/manager/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698