| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 238   size_t GetNumDisplays() const; | 238   size_t GetNumDisplays() const; | 
| 239 | 239 | 
| 240   const std::vector<gfx::Display>& displays() const { return displays_; } | 240   const std::vector<gfx::Display>& displays() const { return displays_; } | 
| 241 | 241 | 
| 242   // Returns the number of connected displays. This returns 2 | 242   // Returns the number of connected displays. This returns 2 | 
| 243   // when displays are mirrored. | 243   // when displays are mirrored. | 
| 244   size_t num_connected_displays() const { return num_connected_displays_; } | 244   size_t num_connected_displays() const { return num_connected_displays_; } | 
| 245 | 245 | 
| 246   // Returns the mirroring status. | 246   // Returns the mirroring status. | 
| 247   bool IsMirrored() const; | 247   bool IsMirrored() const; | 
| 248   int64 mirrored_display_id() const { return mirrored_display_id_; } | 248   int64 mirroring_display_id() const { return mirroring_display_id_; } | 
| 249 | 249 | 
| 250   // Returns the display used for software mirrroring. | 250   // Returns the display used for mirrroring. | 
| 251   const gfx::Display& mirroring_display() const { | 251   const gfx::Display& mirroring_display() const { | 
| 252     return mirroring_display_; | 252     return mirroring_display_; | 
| 253   } | 253   } | 
| 254 | 254 | 
| 255   // Retuns the display info associated with |display_id|. | 255   // Retuns the display info associated with |display_id|. | 
| 256   const DisplayInfo& GetDisplayInfo(int64 display_id) const; | 256   const DisplayInfo& GetDisplayInfo(int64 display_id) const; | 
| 257 | 257 | 
| 258   // Returns the human-readable name for the display |id|. | 258   // Returns the human-readable name for the display |id|. | 
| 259   std::string GetDisplayNameForId(int64 id); | 259   std::string GetDisplayNameForId(int64 id); | 
| 260 | 260 | 
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 383   std::map<int64, DisplayMode> display_modes_; | 383   std::map<int64, DisplayMode> display_modes_; | 
| 384 | 384 | 
| 385   // When set to true, the host window's resize event updates | 385   // When set to true, the host window's resize event updates | 
| 386   // the display's size. This is set to true when running on | 386   // the display's size. This is set to true when running on | 
| 387   // desktop environment (for debugging) so that resizing the host | 387   // desktop environment (for debugging) so that resizing the host | 
| 388   // window will update the display properly. This is set to false | 388   // window will update the display properly. This is set to false | 
| 389   // on device as well as during the unit tests. | 389   // on device as well as during the unit tests. | 
| 390   bool change_display_upon_host_resize_; | 390   bool change_display_upon_host_resize_; | 
| 391 | 391 | 
| 392   SecondDisplayMode second_display_mode_; | 392   SecondDisplayMode second_display_mode_; | 
| 393   int64 mirrored_display_id_; | 393   int64 mirroring_display_id_; | 
| 394   gfx::Display mirroring_display_; | 394   gfx::Display mirroring_display_; | 
| 395 | 395 | 
| 396   // User preference for rotation lock of the internal display. | 396   // User preference for rotation lock of the internal display. | 
| 397   bool registered_internal_display_rotation_lock_; | 397   bool registered_internal_display_rotation_lock_; | 
| 398 | 398 | 
| 399   // User preference for the rotation of the internal display. | 399   // User preference for the rotation of the internal display. | 
| 400   gfx::Display::Rotation registered_internal_display_rotation_; | 400   gfx::Display::Rotation registered_internal_display_rotation_; | 
| 401 | 401 | 
| 402   base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 402   base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 
| 403 | 403 | 
| 404   DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 404   DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 
| 405 }; | 405 }; | 
| 406 | 406 | 
| 407 }  // namespace ash | 407 }  // namespace ash | 
| 408 | 408 | 
| 409 #endif  // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 409 #endif  // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 
| OLD | NEW | 
|---|