| OLD | NEW |
| 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 Loading... |
| 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 OnDisplayMetricsChanged | 108 // When set to true, the MonitorManager calls OnDisplayBoundsChanged |
| 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 Loading... |
| 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_ |
| OLD | NEW |