]> khamidou — GitHub mirrors - electron.git/commitdiff
views: Implement CanMinimize, fixes #918
authorCheng Zhao <zcbenz@gmail.com>
Tue, 16 Dec 2014 00:46:37 +0000 (16:46 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 16 Dec 2014 00:46:37 +0000 (16:46 -0800)
atom/browser/native_window_views.cc
atom/browser/native_window_views.h

index 0d00f40399ce8424e0f6d7a8cf737eb1eee5a3c0..d9f476b03ca9f32dbc2623f5ecc7459f0fb8fc1f 100644 (file)
@@ -672,6 +672,10 @@ bool NativeWindowViews::CanMaximize() const {
   return resizable_;
 }
 
+bool NativeWindowViews::CanMinimize() const {
+  return true;
+}
+
 base::string16 NativeWindowViews::GetWindowTitle() const {
   return base::UTF8ToUTF16(title_);
 }
index 4f641b463139440f7cfb6ba28690d9adcc213e70..2066d4e603d1ec30f5a2865c578fa0840d2c5a7d 100644 (file)
@@ -98,6 +98,7 @@ class NativeWindowViews : public NativeWindow,
   views::View* GetInitiallyFocusedView() override;
   bool CanResize() const override;
   bool CanMaximize() const override;
+  bool CanMinimize() const override;
   base::string16 GetWindowTitle() const override;
   bool ShouldHandleSystemCommands() const override;
   gfx::ImageSkia GetWindowAppIcon() override;