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

Unified Diff: chrome/browser/ui/views/content_setting_bubble_contents.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
Index: chrome/browser/ui/views/content_setting_bubble_contents.cc
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc
index 79128817051c59b18153012721d1022a274bceb8..08feea3528724a085b699e5c66c8c68262e785a4 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.cc
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc
@@ -133,8 +133,10 @@ gfx::Size ContentSettingBubbleContents::GetPreferredSize() {
return preferred_size;
}
-gfx::Point ContentSettingBubbleContents::GetAnchorPoint() {
- return BubbleDelegateView::GetAnchorPoint().Subtract(gfx::Point(0, 5));
+gfx::Rect ContentSettingBubbleContents::GetAnchorRect() {
+ gfx::Rect rect(BubbleDelegateView::GetAnchorRect());
+ rect.Offset(0, -5);
+ return rect;
}
void ContentSettingBubbleContents::Init() {

Powered by Google App Engine
This is Rietveld 408576698