diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 01:50:30 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 01:50:30 +0000 |
commit | dd5e86e56bb0cdac1323fcc3edf21ec883ec4922 (patch) | |
tree | d8dae853f12fa0ae04fb40433cd029faf7ed98ce /ash/wm/resize_shadow_controller.h | |
parent | a155a3b9f0228a45c12478ebb78cd43697002884 (diff) | |
download | chromium_src-dd5e86e56bb0cdac1323fcc3edf21ec883ec4922.zip chromium_src-dd5e86e56bb0cdac1323fcc3edf21ec883ec4922.tar.gz chromium_src-dd5e86e56bb0cdac1323fcc3edf21ec883ec4922.tar.bz2 |
cros: Window header heights to new UI spec
+ Changed signature of aura::WindowObserver::OnWindowBoundsChanged() to report both old and new bounds.
+ Re-layout window frame when the window either starts or stops touching the top of the screen.
+ Small metrics tweaks.
BUG=123341
TEST=Added BrowserNonClientFrameViewAshTest, also drag windows against the top of the screen, then move them away, note header changes size
Review URL: https://chromiumcodereview.appspot.com/10377133
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/resize_shadow_controller.h')
-rw-r--r-- | ash/wm/resize_shadow_controller.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ash/wm/resize_shadow_controller.h b/ash/wm/resize_shadow_controller.h index 08294d0..0026b73 100644 --- a/ash/wm/resize_shadow_controller.h +++ b/ash/wm/resize_shadow_controller.h @@ -37,7 +37,9 @@ class ResizeShadowController : public aura::WindowObserver { // aura::WindowObserver overrides: virtual void OnWindowBoundsChanged( - aura::Window* window, const gfx::Rect& bounds) OVERRIDE; + aura::Window* window, + const gfx::Rect& old_bounds, + const gfx::Rect& new_bounds) OVERRIDE; virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; private: |