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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_
6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ 6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Returns the actual display layout after it has been resolved and applied. 131 // Returns the actual display layout after it has been resolved and applied.
132 const DisplayLayout& GetCurrentResolvedDisplayLayout() const; 132 const DisplayLayout& GetCurrentResolvedDisplayLayout() const;
133 133
134 // Returns the current display list. 134 // Returns the current display list.
135 DisplayIdList GetCurrentDisplayIdList() const; 135 DisplayIdList GetCurrentDisplayIdList() const;
136 136
137 // Sets the layout for the current display pair. The |layout| specifies the 137 // Sets the layout for the current display pair. The |layout| specifies the
138 // locaion of the displays relative to their parents. 138 // locaion of the displays relative to their parents.
139 void SetLayoutForCurrentDisplays(std::unique_ptr<DisplayLayout> layout); 139 void SetLayoutForCurrentDisplays(std::unique_ptr<DisplayLayout> layout);
140 140
141 // Returns display for given |id|; 141 // Returns display for given |display_id|.
142 const Display& GetDisplayForId(int64_t id) const; 142 const Display& GetDisplayForId(int64_t display_id) const;
143
144 // Checks the validity of given |display_id|.
145 bool IsDisplayIdValid(int64_t display_id) const;
143 146
144 // Finds the display that contains |point| in screeen coordinates. Returns 147 // Finds the display that contains |point| in screeen coordinates. Returns
145 // invalid display if there is no display that can satisfy the condition. 148 // invalid display if there is no display that can satisfy the condition.
146 const Display& FindDisplayContainingPoint( 149 const Display& FindDisplayContainingPoint(
147 const gfx::Point& point_in_screen) const; 150 const gfx::Point& point_in_screen) const;
148 151
149 // Sets the work area's |insets| to the display given by |display_id|. 152 // Sets the work area's |insets| to the display given by |display_id|.
150 bool UpdateWorkAreaOfDisplay(int64_t display_id, const gfx::Insets& insets); 153 bool UpdateWorkAreaOfDisplay(int64_t display_id, const gfx::Insets& insets);
151 154
152 // Registers the overscan insets for the display of the specified ID. Note 155 // Registers the overscan insets for the display of the specified ID. Note
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 base::ObserverList<DisplayObserver> observers_; 482 base::ObserverList<DisplayObserver> observers_;
480 483
481 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; 484 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_;
482 485
483 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 486 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
484 }; 487 };
485 488
486 } // namespace display 489 } // namespace display
487 490
488 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ 491 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_
OLDNEW
« 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