views: Implement CanMinimize, fixes #918

This commit is contained in:
Cheng Zhao 2014-12-15 16:46:37 -08:00
parent c9a5c6515c
commit 23951e6ef3
2 changed files with 5 additions and 0 deletions

View file

@ -672,6 +672,10 @@ bool NativeWindowViews::CanMaximize() const {
return resizable_; return resizable_;
} }
bool NativeWindowViews::CanMinimize() const {
return true;
}
base::string16 NativeWindowViews::GetWindowTitle() const { base::string16 NativeWindowViews::GetWindowTitle() const {
return base::UTF8ToUTF16(title_); return base::UTF8ToUTF16(title_);
} }

View file

@ -98,6 +98,7 @@ class NativeWindowViews : public NativeWindow,
views::View* GetInitiallyFocusedView() override; views::View* GetInitiallyFocusedView() override;
bool CanResize() const override; bool CanResize() const override;
bool CanMaximize() const override; bool CanMaximize() const override;
bool CanMinimize() const override;
base::string16 GetWindowTitle() const override; base::string16 GetWindowTitle() const override;
bool ShouldHandleSystemCommands() const override; bool ShouldHandleSystemCommands() const override;
gfx::ImageSkia GetWindowAppIcon() override; gfx::ImageSkia GetWindowAppIcon() override;