Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: chrome/browser/ui/views/extensions/extension_installed_bubble.cc

Issue 8863009: Fix alignment of avatar bubbles in the NTP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use Rect::Ofset() Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/extension_installed_bubble.cc
diff --git a/chrome/browser/ui/views/extensions/extension_installed_bubble.cc b/chrome/browser/ui/views/extensions/extension_installed_bubble.cc
index 88fb3ddca48e577c7cdef833382a1ad431799a4a..b813e5e90975874e8d0b4e75977e07820e08b835 100644
--- a/chrome/browser/ui/views/extensions/extension_installed_bubble.cc
+++ b/chrome/browser/ui/views/extensions/extension_installed_bubble.cc
@@ -395,16 +395,17 @@ void ExtensionInstalledBubble::ShowInternal() {
StartFade(true);
}
-gfx::Point ExtensionInstalledBubble::GetAnchorPoint() {
+gfx::Rect ExtensionInstalledBubble::GetAnchorRect() {
// For omnibox keyword bubbles, move the arrow to point to the left edge
// of the omnibox, just to the right of the icon.
if (type_ == OMNIBOX_KEYWORD) {
LocationBarView* location_bar_view =
BrowserView::GetBrowserViewForBrowser(browser_)->GetLocationBarView();
- return location_bar_view->GetLocationEntryOrigin().Add(
- gfx::Point(0, location_bar_view->location_entry_view()->height()));
+ return gfx::Rect(location_bar_view->GetLocationEntryOrigin().Add(
+ gfx::Point(0, location_bar_view->location_entry_view()->height())),
+ gfx::Size());
}
- return views::BubbleDelegateView::GetAnchorPoint();
+ return views::BubbleDelegateView::GetAnchorRect();
}
views::BubbleBorder::ArrowLocation

Powered by Google App Engine
This is Rietveld 408576698