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

Unified Diff: ash/wm/power_button_controller.h

Issue 10382211: chromeos: Ignore power button presses when screen is off. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | 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 40719d8bd046eb049b2306b80ccd9cf2f9e7c8d4..efe5f53544bd65617f4aadcba86935b675bb95de 100644
--- a/ash/wm/power_button_controller.h
+++ b/ash/wm/power_button_controller.h
@@ -142,6 +142,9 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver,
has_legacy_power_button_ = legacy;
}
+ // Called when the current screen brightness changes.
+ void OnScreenBrightnessChanged(double percent);
+
// Called when Chrome gets a request to display the lock screen.
void OnStartingLock();
@@ -203,6 +206,9 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver,
bool power_button_down_;
bool lock_button_down_;
+ // Is the screen currently turned off?
+ bool screen_is_off_;
+
// Are we in the process of shutting the machine down?
bool shutting_down_;
« no previous file with comments | « no previous file | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698