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

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

Issue 1861593002: chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromeos: Turn off displays on suspend Created 4 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
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_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 // Pending requests. These values are used when triggering the next display 390 // Pending requests. These values are used when triggering the next display
391 // configuration. 391 // configuration.
392 // 392 //
393 // Stores the user requested state or INVALID if nothing was requested. 393 // Stores the user requested state or INVALID if nothing was requested.
394 MultipleDisplayState requested_display_state_; 394 MultipleDisplayState requested_display_state_;
395 395
396 // Stores the requested power state. 396 // Stores the requested power state.
397 chromeos::DisplayPowerState requested_power_state_; 397 chromeos::DisplayPowerState requested_power_state_;
398 398
399 // The display power state before suspend.
400 chromeos::DisplayPowerState saved_power_state_;
Daniel Erat 2016/04/08 20:26:51 here's a possibly-naive question: why is this need
dbasehore 2016/04/08 20:38:11 This is to handle the display state changing out f
Daniel Erat 2016/04/08 20:42:11 yeah, that's the idea. then we don't need to track
401
399 // True if |requested_power_state_| has been changed due to a user request. 402 // True if |requested_power_state_| has been changed due to a user request.
400 bool requested_power_state_change_; 403 bool requested_power_state_change_;
401 404
402 // Bitwise-or value of the |kSetDisplayPower*| flags defined above. 405 // Bitwise-or value of the |kSetDisplayPower*| flags defined above.
403 int requested_power_flags_; 406 int requested_power_flags_;
404 407
405 // List of callbacks from callers waiting for the display configuration to 408 // List of callbacks from callers waiting for the display configuration to
406 // start/finish. Note these callbacks belong to the pending request, not a 409 // start/finish. Note these callbacks belong to the pending request, not a
407 // request currently active. 410 // request currently active.
408 std::vector<ConfigurationCallback> queued_configuration_callbacks_; 411 std::vector<ConfigurationCallback> queued_configuration_callbacks_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 463
461 // This must be the last variable. 464 // This must be the last variable.
462 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 465 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
463 466
464 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 467 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
465 }; 468 };
466 469
467 } // namespace ui 470 } // namespace ui
468 471
469 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 472 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | ui/display/chromeos/display_configurator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698