diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-01 18:03:19 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-01 18:03:19 +0000 |
commit | aa47650ec5e6a7739a55ee391637ca4969e25a84 (patch) | |
tree | 6ca1913faa47155ce0c2a5088e504fc4ab9aabcd /ash/wm/power_button_controller.h | |
parent | 73afecdbdd26c62bc101a3c78d7c593c5871588d (diff) | |
download | chromium_src-aa47650ec5e6a7739a55ee391637ca4969e25a84.zip chromium_src-aa47650ec5e6a7739a55ee391637ca4969e25a84.tar.gz chromium_src-aa47650ec5e6a7739a55ee391637ca4969e25a84.tar.bz2 |
ash: Resize PowerButtonController background layer.
PowerButtonController wasn't getting registered as an
observer on the aura::RootWindow, so its background layer
wasn't resized to match the root window's size. I don't
think that this caused any problems in practice, as the
layer gets recreated every time it's shown.
BUG=none
TEST=added
Review URL: http://codereview.chromium.org/10263015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/power_button_controller.h')
-rw-r--r-- | ash/wm/power_button_controller.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/wm/power_button_controller.h b/ash/wm/power_button_controller.h index 27dd66f..40719d8 100644 --- a/ash/wm/power_button_controller.h +++ b/ash/wm/power_button_controller.h @@ -15,6 +15,7 @@ #include "ui/aura/root_window_observer.h" namespace gfx { +class Rect; class Size; } @@ -120,6 +121,10 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver, // Returns true if |background_layer_| is non-NULL and visible. bool BackgroundLayerIsVisible() const; + // Returns |background_layer_|'s bounds, or an empty rect if the layer is + // NULL. + gfx::Rect GetBackgroundLayerBounds() const; + private: PowerButtonController* controller_; // not owned |