diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-01 03:57:10 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-01 03:57:10 +0000 |
commit | ac7b5aff9ae65cdb387c557f49958ac1e388181c (patch) | |
tree | af017ea80734d7750913960d10e29372370743bc /chrome/browser/views/browser_bubble_win.cc | |
parent | 3bc67d82dd6310c46b0c1e9c4d9c2af50481f4e7 (diff) | |
download | chromium_src-ac7b5aff9ae65cdb387c557f49958ac1e388181c.zip chromium_src-ac7b5aff9ae65cdb387c557f49958ac1e388181c.tar.gz chromium_src-ac7b5aff9ae65cdb387c557f49958ac1e388181c.tar.bz2 |
Implement page action popups.
A random side effect of this change is that it changes page action hover from bubble to tool tip.
BUG=24645
TEST=ExtensionApiTest.PageActionPopup
Review URL: http://codereview.chromium.org/347016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30677 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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/views/browser_bubble_win.cc b/chrome/browser/views/browser_bubble_win.cc index 3a5bca1..4c085ee 100644 --- a/chrome/browser/views/browser_bubble_win.cc +++ b/chrome/browser/views/browser_bubble_win.cc @@ -46,8 +46,13 @@ public: void OnActivate(UINT action, BOOL minimized, HWND window) { BrowserBubble::Delegate* delegate = bubble_->delegate(); - if (!delegate) + if (!delegate) { + if (action == WA_INACTIVE && !closed_) { + bubble_->DetachFromBrowser(); + delete bubble_; + } return; + } if (action == WA_INACTIVE && !closed_) { delegate->BubbleLostFocus(bubble_); |