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

Unified Diff: content/shell/browser/shell_views.cc

Issue 134223005: Aura content shell: make the window shrinkable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_views.cc
diff --git a/content/shell/browser/shell_views.cc b/content/shell/browser/shell_views.cc
index c6b09e474a704e024ee2dbbdf3c320227a329d25..1670f87e8c5c10e3d74ee0aa2c14cbc3227d2521 100644
--- a/content/shell/browser/shell_views.cc
+++ b/content/shell/browser/shell_views.cc
@@ -270,6 +270,11 @@ class ShellWindowDelegateView : public views::WidgetDelegateView,
virtual View* GetContentsView() OVERRIDE { return this; }
// Overridden from View
+ virtual gfx::Size GetMinimumSize() OVERRIDE {
+ // We want to be able to make the window smaller than its initial
+ // (preferred) size.
+ return gfx::Size();
+ }
virtual void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) OVERRIDE {
if (details.is_add && details.child == this) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698