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

Unified Diff: chrome/browser/ui/views/page_info_bubble_view.cc

Issue 8863009: Fix alignment of avatar bubbles in the NTP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « chrome/browser/ui/views/page_info_bubble_view.h ('k') | ui/views/bubble/bubble_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/page_info_bubble_view.cc
diff --git a/chrome/browser/ui/views/page_info_bubble_view.cc b/chrome/browser/ui/views/page_info_bubble_view.cc
index 0b323584827bb79e8ed5bdb4ad25855b6912dc80..62188f9f64912329ad15cb908d4069d12a88db1b 100644
--- a/chrome/browser/ui/views/page_info_bubble_view.cc
+++ b/chrome/browser/ui/views/page_info_bubble_view.cc
@@ -295,10 +295,12 @@ void PageInfoBubbleView::OnPageInfoModelChanged() {
#endif
}
-gfx::Point PageInfoBubbleView::GetAnchorPoint() {
+gfx::Rect PageInfoBubbleView::GetAnchorRect() {
// Compensate for some built-in padding in the icon.
- gfx::Point anchor(BubbleDelegateView::GetAnchorPoint());
- return anchor_view() ? anchor.Subtract(gfx::Point(0, 5)) : anchor;
+ gfx::Rect anchor(BubbleDelegateView::GetAnchorRect());
+ if (anchor_view())
+ anchor.Offset(0, -5);
+ return anchor;
}
void PageInfoBubbleView::LinkClicked(views::Link* source, int event_flags) {
« no previous file with comments | « chrome/browser/ui/views/page_info_bubble_view.h ('k') | ui/views/bubble/bubble_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698