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

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

Issue 2728803002: Handles users rotating screen too early (Closed)
Patch Set: Rebased to commit. 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/test/shell_test_api.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 c6644029c60ac6e7e15bf301d5f548356983bf45..e69453ac93d0a59e6a682220969fe29e1a3728c2 100644
--- a/ui/display/manager/display_manager.h
+++ b/ui/display/manager/display_manager.h
@@ -138,8 +138,11 @@ class DISPLAY_MANAGER_EXPORT DisplayManager
// locaion of the displays relative to their parents.
void SetLayoutForCurrentDisplays(std::unique_ptr<DisplayLayout> layout);
- // Returns display for given |id|;
- const Display& GetDisplayForId(int64_t id) const;
+ // Returns display for given |display_id|.
+ const Display& GetDisplayForId(int64_t display_id) const;
+
+ // Checks the validity of given |display_id|.
+ bool IsDisplayIdValid(int64_t display_id) const;
// Finds the display that contains |point| in screeen coordinates. Returns
// invalid display if there is no display that can satisfy the condition.
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | ui/display/manager/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698