Chromium Code Reviews| Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc |
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc |
| index a91363013b31f208e0ddcc080bf4c1397349470a..982bd3d8f2fa7b3d7916dcd890ad107db807a0e3 100644 |
| --- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc |
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc |
| @@ -102,6 +102,12 @@ views::View* BookmarkBubbleView::GetInitiallyFocusedView() { |
| return title_tf_; |
| } |
| +void BookmarkBubbleView::OnWidgetBoundsChanged(views::Widget* widget, |
| + const gfx::Rect& new_bounds) { |
| + if (anchor_widget() == widget) |
|
msw
2013/11/27 00:09:40
I think all bubbles should do this if they haven't
|
| + GetWidget()->Close(); |
| +} |
| + |
| void BookmarkBubbleView::WindowClosing() { |
| // We have to reset |bubble_| here, not in our destructor, because we'll be |
| // destroyed asynchronously and the shown state will be checked before then. |