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

Unified Diff: ash/wm/power_button_controller.h

Issue 10263015: ash: Resize PowerButtonController background layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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 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 27dd66f8cbf28db3399eec39c3501794c2562d54..40719d8bd046eb049b2306b80ccd9cf2f9e7c8d4 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
« 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