summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 23:13:45 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 23:13:45 +0000
commit6bb610ab0a5fd63700a44a2937017c529c3044df (patch)
tree67096c63f9df80e22dd42e9ef7476f244ecdbe42 /chrome/views
parentffa39665fa192883ced23f405817eb9cc4f379a1 (diff)
downloadchromium_src-6bb610ab0a5fd63700a44a2937017c529c3044df.zip
chromium_src-6bb610ab0a5fd63700a44a2937017c529c3044df.tar.gz
chromium_src-6bb610ab0a5fd63700a44a2937017c529c3044df.tar.bz2
Changes DefaultNonClientView to show the min/max buttons if the
delegate says it can be minimized. BUG=4083 TEST=none Review URL: http://codereview.chromium.org/13683 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/custom_frame_window.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/views/custom_frame_window.cc b/chrome/views/custom_frame_window.cc
index 3ff64a6..015ec0e 100644
--- a/chrome/views/custom_frame_window.cc
+++ b/chrome/views/custom_frame_window.cc
@@ -379,6 +379,8 @@ DefaultNonClientView::DefaultNonClientView(
minimize_button_->SetListener(this, -1);
AddChildView(minimize_button_);
+ should_show_minmax_buttons_ = container->window_delegate()->CanMaximize();
+
AddChildView(system_menu_button_);
}