| 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 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // debugging) so that resizing the host window will update the display | 464 // debugging) so that resizing the host window will update the display |
| 465 // properly. This is set to false on device as well as during the unit tests. | 465 // properly. This is set to false on device as well as during the unit tests. |
| 466 bool change_display_upon_host_resize_ = false; | 466 bool change_display_upon_host_resize_ = false; |
| 467 | 467 |
| 468 MultiDisplayMode multi_display_mode_ = EXTENDED; | 468 MultiDisplayMode multi_display_mode_ = EXTENDED; |
| 469 MultiDisplayMode current_default_multi_display_mode_ = EXTENDED; | 469 MultiDisplayMode current_default_multi_display_mode_ = EXTENDED; |
| 470 | 470 |
| 471 int64_t mirroring_display_id_ = kInvalidDisplayId; | 471 int64_t mirroring_display_id_ = kInvalidDisplayId; |
| 472 Displays software_mirroring_display_list_; | 472 Displays software_mirroring_display_list_; |
| 473 | 473 |
| 474 // Cached mirror mode for metrics changed notification. |
| 475 bool mirror_mode_for_metrics_ = false; |
| 476 |
| 474 // User preference for rotation lock of the internal display. | 477 // User preference for rotation lock of the internal display. |
| 475 bool registered_internal_display_rotation_lock_ = false; | 478 bool registered_internal_display_rotation_lock_ = false; |
| 476 | 479 |
| 477 // User preference for the rotation of the internal display. | 480 // User preference for the rotation of the internal display. |
| 478 Display::Rotation registered_internal_display_rotation_ = Display::ROTATE_0; | 481 Display::Rotation registered_internal_display_rotation_ = Display::ROTATE_0; |
| 479 | 482 |
| 480 bool unified_desktop_enabled_ = false; | 483 bool unified_desktop_enabled_ = false; |
| 481 | 484 |
| 482 base::ObserverList<DisplayObserver> observers_; | 485 base::ObserverList<DisplayObserver> observers_; |
| 483 | 486 |
| 484 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 487 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
| 485 | 488 |
| 486 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 489 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 487 }; | 490 }; |
| 488 | 491 |
| 489 } // namespace display | 492 } // namespace display |
| 490 | 493 |
| 491 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ | 494 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ |
| OLD | NEW |