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

Unified Diff: ash/wm/power_button_controller.h

Issue 9264025: aura: Replace UI-feature GYP flags with switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/power_button_controller.h
diff --git a/ash/wm/power_button_controller.h b/ash/wm/power_button_controller.h
index 00a15076f43218b76e6c581f0faa5c84e6424c7b..b25f0a1b1310ef8a487ed6d2d91d9b70e4f11dfb 100644
--- a/ash/wm/power_button_controller.h
+++ b/ash/wm/power_button_controller.h
@@ -132,6 +132,10 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver {
delegate_.reset(delegate);
}
+ void set_has_legacy_power_button_for_test(bool legacy) {
+ has_legacy_power_button_ = legacy;
+ }
+
// Called when the user logs in.
void OnLoginStateChange(bool logged_in, bool is_guest);
@@ -195,6 +199,10 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver {
// screen has been locked?
bool should_start_shutdown_timer_after_lock_;
+ // Was a command-line switch set telling us that we're running on hardware
+ // that misreports power button releases?
+ bool has_legacy_power_button_;
+
// Responsible for painting |background_layer_|.
scoped_ptr<BackgroundLayerDelegate> background_layer_delegate_;
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698