diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-06 16:11:44 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-06 16:11:44 +0000 |
commit | b3263102fcd879f86389fa5435b8a80e1bf9fe68 (patch) | |
tree | 2bc7109e639fb8bb5bc7916d5a72377bc4168779 /chrome/browser/views/browser_bubble_win.cc | |
parent | fcbd501fcc8a6a6e07154e46ee5d908947d2b42a (diff) | |
download | chromium_src-b3263102fcd879f86389fa5435b8a80e1bf9fe68.zip chromium_src-b3263102fcd879f86389fa5435b8a80e1bf9fe68.tar.gz chromium_src-b3263102fcd879f86389fa5435b8a80e1bf9fe68.tar.bz2 |
Resubmit http://codereview.chromium.org/243096 with gcc compile error fixed.
BUG=23832
TBR=mpcomplete
Review URL: http://codereview.chromium.org/257056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/browser_bubble_win.cc')
-rw-r--r-- | chrome/browser/views/browser_bubble_win.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/views/browser_bubble_win.cc b/chrome/browser/views/browser_bubble_win.cc index 8cae2da..17ab8ca 100644 --- a/chrome/browser/views/browser_bubble_win.cc +++ b/chrome/browser/views/browser_bubble_win.cc @@ -27,9 +27,23 @@ public: if (closed_) return; closed_ = true; + if (IsActive()) { + BrowserBubble::Delegate* delegate = bubble_->delegate(); + if (delegate) + delegate->BubbleLostFocus(bubble_); + } views::WidgetWin::Close(); } + void Hide() { + if (IsActive()) { + BrowserBubble::Delegate* delegate = bubble_->delegate(); + if (delegate) + delegate->BubbleLostFocus(bubble_); + } + views::WidgetWin::Hide(); + } + void OnActivate(UINT action, BOOL minimized, HWND window) { BrowserBubble::Delegate* delegate = bubble_->delegate(); if (!delegate) |