diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 23:12:58 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 23:12:58 +0000 |
commit | 1ebf155ac702fa6cea00525550427db5b665e1f5 (patch) | |
tree | 56d8b4936b6ec7f68be0e7511458818a7c3fbf6a /ash/wm/power_button_controller.h | |
parent | 04fd69f01aad1dc4a8349006a0bb6d1b02084f09 (diff) | |
download | chromium_src-1ebf155ac702fa6cea00525550427db5b665e1f5.zip chromium_src-1ebf155ac702fa6cea00525550427db5b665e1f5.tar.gz chromium_src-1ebf155ac702fa6cea00525550427db5b665e1f5.tar.bz2 |
aura: Display black background in compact window mode.
This adds an always-visible black background when ash is
using the compact window mode, to prevent the compositor's
blue clear color from being visible when logging in, in the
middle of animations, etc.
BUG=chromium:10801
TEST=manual: logged in, switched windows, locked the screen, logged out, and shut down without seeing the blue background
Review URL: http://codereview.chromium.org/9371004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121328 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/power_button_controller.h')
-rw-r--r-- | ash/wm/power_button_controller.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/wm/power_button_controller.h b/ash/wm/power_button_controller.h index 4ecd4f0..9b069b5 100644 --- a/ash/wm/power_button_controller.h +++ b/ash/wm/power_button_controller.h @@ -202,6 +202,9 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver { // Layer that's stacked under all of the root window's children to provide a // black background when we're scaling all of the other windows down. + // TODO(derat): Remove this in favor of having the compositor only clear the + // viewport when there are regions not covered by a layer: + // http://crbug.com/113445 scoped_ptr<ui::Layer> background_layer_; // Started when the user first presses the power button while in a |