From 51a4dc719239e4c22b64fc641251443f09022300 Mon Sep 17 00:00:00 2001 From: "msw@chromium.org" Date: Fri, 11 Nov 2011 20:43:16 +0000 Subject: 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 --- chrome/browser/ui/views/toolbar_view.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'chrome/browser/ui/views/toolbar_view.cc') 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 } -- cgit v1.1