summaryrefslogtreecommitdiffstats
path: root/ash/shell/toplevel_window.cc
diff options
context:
space:
mode:
authorjackhou <jackhou@chromium.org>2014-09-24 03:25:48 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-24 10:26:06 +0000
commit3fdb73284d2b947f3a81ebe81501635b220b4dc1 (patch)
treec937a3398345e043db9eab5f52344d6fa08364ac /ash/shell/toplevel_window.cc
parent49128996dac812fa390c092171ab86316b6cb47b (diff)
downloadchromium_src-3fdb73284d2b947f3a81ebe81501635b220b4dc1.zip
chromium_src-3fdb73284d2b947f3a81ebe81501635b220b4dc1.tar.gz
chromium_src-3fdb73284d2b947f3a81ebe81501635b220b4dc1.tar.bz2
Add CanMinimize to classes that implement WidgetDelegate::CanMaximize.
There were some cases where we use CanMaximize to determine if minimization should be disabled. They now use CanMinimize: - custom_frame_view_ash - hwnd_message_handler All classes that implement CanMaximize now implement CanMinimize in the same way, so there should no change in behavior. BUG=328241,341010 Review URL: https://codereview.chromium.org/583603004 Cr-Commit-Position: refs/heads/master@{#296381}
Diffstat (limited to 'ash/shell/toplevel_window.cc')
-rw-r--r--ash/shell/toplevel_window.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/shell/toplevel_window.cc b/ash/shell/toplevel_window.cc
index 2f620c1..27c96d6 100644
--- a/ash/shell/toplevel_window.cc
+++ b/ash/shell/toplevel_window.cc
@@ -108,5 +108,9 @@ bool ToplevelWindow::CanMaximize() const {
return params_.can_maximize;
}
+bool ToplevelWindow::CanMinimize() const {
+ return params_.can_maximize;
+}
+
} // namespace shell
} // namespace ash