diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 04:19:19 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 04:19:19 +0000 |
commit | 411022556a6950ebc82f88bee6c11e5334116daa (patch) | |
tree | e758e9576fe359f7871a41f85916a48d4e6b0f40 /chrome/browser/views/constrained_window_impl.cc | |
parent | a05584efa3fa81091675dc48adc1cb8aebb24e18 (diff) | |
download | chromium_src-411022556a6950ebc82f88bee6c11e5334116daa.zip chromium_src-411022556a6950ebc82f88bee6c11e5334116daa.tar.gz chromium_src-411022556a6950ebc82f88bee6c11e5334116daa.tar.bz2 |
Fix the bug with the minimize/restore buttons getting stuck hot when the window is restored.
Turns out the messages we receive prior to becoming restored/minimized etc are not sufficient to restore the button to its appropriate state. Since this is specific to the implementation of these controls, I have provided a solution specific to them.
http://crbug.com/3559
Review URL: http://codereview.chromium.org/7803
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/constrained_window_impl.cc')
-rw-r--r-- | chrome/browser/views/constrained_window_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc index e315e5a..d74ac05 100644 --- a/chrome/browser/views/constrained_window_impl.cc +++ b/chrome/browser/views/constrained_window_impl.cc @@ -214,6 +214,7 @@ class ConstrainedWindowNonClientView virtual int NonClientHitTest(const gfx::Point& point); virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); virtual void EnableClose(bool enable); + virtual void ResetWindowControls(); // Overridden from views::View: virtual void Paint(ChromeCanvas* canvas); @@ -553,6 +554,10 @@ void ConstrainedWindowNonClientView::EnableClose(bool enable) { close_button_->SetEnabled(enable); } +void ConstrainedWindowNonClientView::ResetWindowControls() { + // We have no window controls to reset. +} + //////////////////////////////////////////////////////////////////////////////// // ConstrainedWindowNonClientView, views::View implementation: |