| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| 6 #define UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 6 #define UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // partially appear on top of inactive display. Higher numbers guard | 146 // partially appear on top of inactive display. Higher numbers guard |
| 147 // against larger cursors, but also waste more memory. | 147 // against larger cursors, but also waste more memory. |
| 148 // For simplicity, this is hard-coded to avoid the complexity of always | 148 // For simplicity, this is hard-coded to avoid the complexity of always |
| 149 // determining the DPI of the screen and rationalizing which screen we | 149 // determining the DPI of the screen and rationalizing which screen we |
| 150 // need to use for the DPI calculation. | 150 // need to use for the DPI calculation. |
| 151 // See crbug.com/130188 for initial discussion. | 151 // See crbug.com/130188 for initial discussion. |
| 152 static const int kVerticalGap = 60; | 152 static const int kVerticalGap = 60; |
| 153 | 153 |
| 154 // The delay to perform configuration after RRNotify. See the comment for | 154 // The delay to perform configuration after RRNotify. See the comment for |
| 155 // |configure_timer_|. | 155 // |configure_timer_|. |
| 156 static const int kConfigureDelayMs = 500; | 156 static const int kConfigureDelayMs = 1000; |
| 157 | 157 |
| 158 // The delay to perform configuration after waking up from suspend when in | 158 // The delay to perform configuration after waking up from suspend when in |
| 159 // multi display mode. Should be bigger than |kConfigureDelayMs|. Generally | 159 // multi display mode. Should be bigger than |kConfigureDelayMs|. Generally |
| 160 // big enough for external displays to be detected and added. | 160 // big enough for external displays to be detected and added. |
| 161 // crbug.com/614624. | 161 // crbug.com/614624. |
| 162 static const int kResumeConfigureMultiDisplayDelayMs = 2000; | 162 static const int kResumeConfigureMultiDisplayDelayMs = 2000; |
| 163 | 163 |
| 164 // Returns the mode within |display| that matches the given size with highest | 164 // Returns the mode within |display| that matches the given size with highest |
| 165 // refresh rate. Returns None if no matching display was found. | 165 // refresh rate. Returns None if no matching display was found. |
| 166 static const DisplayMode* FindDisplayModeMatchingSize( | 166 static const DisplayMode* FindDisplayModeMatchingSize( |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 | 475 |
| 476 // This must be the last variable. | 476 // This must be the last variable. |
| 477 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; | 477 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; |
| 478 | 478 |
| 479 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 479 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 } // namespace display | 482 } // namespace display |
| 483 | 483 |
| 484 #endif // UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 484 #endif // UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| OLD | NEW |