commit | fa574b64c7b7b7b1c23b0407bec6dbd0e76f677b | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Nov 26 04:11:38 2012 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Nov 26 04:11:38 2012 |
tree | 83b85a315560d769a01b2b6de66ea5ee289daeba | |
parent | 3da11ba65d3bb24a0634bf0e502b22a5ecb81d4b [diff] [blame] |
Makes windows obey their maximum size constraints on chromeos. - Prevents windows from resizing bigger than their max size - Prevents windows from snapping when they have max size defined - Prevents windows from maximizing when they have max size defined BUG=152065 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168447 Review URL: https://chromiumcodereview.appspot.com/11366215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169402 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc index 91c95d3c..e8f935f 100644 --- a/ui/aura/demo/demo_main.cc +++ b/ui/aura/demo/demo_main.cc
@@ -38,6 +38,11 @@ virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } + + virtual gfx::Size GetMaximumSize() const OVERRIDE { + return gfx::Size(); + } + virtual void OnBoundsChanged(const gfx::Rect& old_bounds, const gfx::Rect& new_bounds) OVERRIDE {} virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE {}