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

Side by Side Diff: ash/display/display_manager.h

Issue 259253002: Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: Created 6 years, 7 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/display/display_controller_unittest.cc ('k') | ash/display/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 ASH_DISPLAY_DISPLAY_MANAGER_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_MANAGER_H_
6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_ 6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 DisplayLayoutStore* layout_store() { 98 DisplayLayoutStore* layout_store() {
99 return layout_store_.get(); 99 return layout_store_.get();
100 } 100 }
101 101
102 gfx::Screen* screen() { 102 gfx::Screen* screen() {
103 return screen_; 103 return screen_;
104 } 104 }
105 105
106 void set_delegate(Delegate* delegate) { delegate_ = delegate; } 106 void set_delegate(Delegate* delegate) { delegate_ = delegate; }
107 107
108 // When set to true, the MonitorManager calls OnDisplayBoundsChanged 108 // When set to true, the MonitorManager calls OnDisplayMetricsChanged
109 // even if the display's bounds didn't change. Used to swap primary 109 // even if the display's bounds didn't change. Used to swap primary
110 // display. 110 // display.
111 void set_force_bounds_changed(bool force_bounds_changed) { 111 void set_force_bounds_changed(bool force_bounds_changed) {
112 force_bounds_changed_ = force_bounds_changed; 112 force_bounds_changed_ = force_bounds_changed;
113 } 113 }
114 114
115 // Returns the display id of the first display in the outupt list. 115 // Returns the display id of the first display in the outupt list.
116 int64 first_display_id() const { return first_display_id_; } 116 int64 first_display_id() const { return first_display_id_; }
117 117
118 // Initializes displays using command line flag. Returns false 118 // Initializes displays using command line flag. Returns false
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 SecondDisplayMode second_display_mode_; 361 SecondDisplayMode second_display_mode_;
362 int64 mirrored_display_id_; 362 int64 mirrored_display_id_;
363 gfx::Display non_desktop_display_; 363 gfx::Display non_desktop_display_;
364 364
365 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 365 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
366 }; 366 };
367 367
368 } // namespace ash 368 } // namespace ash
369 369
370 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ 370 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698