mirror of
https://github.com/electron/electron.git
synced 2026-01-23 14:28:17 -05:00
views: Implement CanMinimize, fixes #918
This commit is contained in:
@@ -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_);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user