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 {}