| Index: chrome/browser/ui/views/constrained_window_views.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/constrained_window_views.cc (revision 113407)
|
| +++ chrome/browser/ui/views/constrained_window_views.cc (working copy)
|
| @@ -164,6 +164,7 @@
|
| virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
|
| virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
|
| OVERRIDE;
|
| + virtual void EnableClose(bool enable) OVERRIDE;
|
| virtual void ResetWindowControls() OVERRIDE {}
|
| virtual void UpdateWindowIcon() OVERRIDE {}
|
|
|
| @@ -349,6 +350,10 @@
|
| views::GetDefaultWindowMask(size, window_mask);
|
| }
|
|
|
| +void ConstrainedWindowFrameView::EnableClose(bool enable) {
|
| + close_button_->SetEnabled(enable);
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // ConstrainedWindowFrameView, views::View implementation:
|
|
|
|
|