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

Unified Diff: components/native_app_window/native_app_window_views.cc

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: Sync and rebase. In particular https://codereview.chromium.org/567463002/ Created 6 years, 3 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 | « components/native_app_window/native_app_window_views.h ('k') | content/shell/browser/shell_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/native_app_window/native_app_window_views.cc
diff --git a/components/native_app_window/native_app_window_views.cc b/components/native_app_window/native_app_window_views.cc
index 766b08861985b3e0f2d40f7a9f41afdc9801a11d..fb9168210365db4454b1628eaa9a1e91f67b6eab 100644
--- a/components/native_app_window/native_app_window_views.cc
+++ b/components/native_app_window/native_app_window_views.cc
@@ -218,6 +218,10 @@ bool NativeAppWindowViews::CanMaximize() const {
!app_window_->window_type_is_panel() && !WidgetHasHitTestMask();
}
+bool NativeAppWindowViews::CanMinimize() const {
+ return true;
James Cook 2014/09/23 00:57:53 Is this right? All views app windows opened by ch
jackhou1 2014/09/23 01:28:48 Yeah, I think that's what we want. It's not how it
+}
+
base::string16 NativeAppWindowViews::GetWindowTitle() const {
return app_window_->GetTitle();
}
« no previous file with comments | « components/native_app_window/native_app_window_views.h ('k') | content/shell/browser/shell_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698