diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 23:04:38 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 23:04:38 +0000 |
commit | 17a6cb95e99a66058f8767a8e026148e7130119d (patch) | |
tree | e4ef0d098c3de3c5c93b66c816712f210b4d85f4 /ui/views/widget/native_widget_aura.h | |
parent | f552df55f9bac09d13c0d8d9566d9c1d3e73e4cc (diff) | |
download | chromium_src-17a6cb95e99a66058f8767a8e026148e7130119d.zip chromium_src-17a6cb95e99a66058f8767a8e026148e7130119d.tar.gz chromium_src-17a6cb95e99a66058f8767a8e026148e7130119d.tar.bz2 |
Aura: Fix window resizing for large drags.
* Fix a DCHECK due to a negative width when resizing the right edge past the left one, and vice versa.
* Fix the window moving when resizing its left edge past the minimum size, ditto for top edge.
* Add unit tests for above.
* Add GetMinimizeSize() method to aura::WindowDelegate interface.
BUG=104245
TEST=aura_shell_unittests, manual
Review URL: http://codereview.chromium.org/8618009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget/native_widget_aura.h')
-rw-r--r-- | ui/views/widget/native_widget_aura.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/widget/native_widget_aura.h b/ui/views/widget/native_widget_aura.h index 7791cc3..c6f0751 100644 --- a/ui/views/widget/native_widget_aura.h +++ b/ui/views/widget/native_widget_aura.h @@ -121,7 +121,7 @@ class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; // Overridden from aura::WindowDelegate: - virtual void OnBoundsChanging(gfx::Rect* new_bounds) OVERRIDE; + virtual gfx::Size GetMinimumSize() const OVERRIDE; virtual void OnBoundsChanged(const gfx::Rect& old_bounds, const gfx::Rect& new_bounds) OVERRIDE; virtual void OnFocus() OVERRIDE; |