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

Side by Side Diff: ui/display/manager/chromeos/display_configurator.h

Issue 2809763002: Increase delay to perform the configuration to 1 sec. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698