diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 20:43:16 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 20:43:16 +0000 |
commit | 51a4dc719239e4c22b64fc641251443f09022300 (patch) | |
tree | 2e5267a7c934c305ae8f3147ffdc4be847ce3189 /chrome/browser/ui/views/toolbar_view.cc | |
parent | 0edfffdee7e6b18247190e1aec262a711fa9aa3f (diff) | |
download | chromium_src-51a4dc719239e4c22b64fc641251443f09022300.zip chromium_src-51a4dc719239e4c22b64fc641251443f09022300.tar.gz chromium_src-51a4dc719239e4c22b64fc641251443f09022300.tar.bz2 |
Rebase BookmarkBubble on the new views bubble.
Use a View instead of a Point for anchoring the bubble.
Remove the now unused IDS_BOOKMARK_BUBBLE_ADD_BOOKMARK.
Remove the unused BubbleDelegate base class from StarView.
BUG=97248,98312,98323
TEST=Bookmark bubble has the same behavior/appearance.
Review URL: http://codereview.chromium.org/8368016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/toolbar_view.cc')
-rw-r--r-- | chrome/browser/ui/views/toolbar_view.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc index 6da0619..79f226a 100644 --- a/chrome/browser/ui/views/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar_view.cc @@ -729,12 +729,9 @@ void ToolbarView::LoadImages() { void ToolbarView::ShowCriticalNotification() { #if defined(OS_WIN) - gfx::Point screen_loc(app_menu_->width() / 2, app_menu_->height()); - views::View::ConvertPointToScreen(app_menu_, &screen_loc); - CriticalNotificationBubbleView* bubble_delegate = - new CriticalNotificationBubbleView(screen_loc); - views::BubbleDelegateView::CreateBubble(bubble_delegate, GetWidget()); + new CriticalNotificationBubbleView(app_menu_); + views::BubbleDelegateView::CreateBubble(bubble_delegate); bubble_delegate->StartFade(true); #endif } |