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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 9 months 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/location_bar/zoom_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
index 392e02adc9733e954fdaf90640386a4872daf60f..51c0a3bd866c4e0dd7f4ec0e56bfa1c7cffb8f0d 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -105,7 +105,7 @@ ZoomBubbleView::ZoomBubbleView(views::View* anchor_view,
web_contents_(web_contents),
auto_close_(auto_close) {
// Compensate for built-in vertical padding in the anchor view's image.
- set_anchor_insets(gfx::Insets(5, 0, 5, 0));
+ set_anchor_view_insets(gfx::Insets(5, 0, 5, 0));
set_use_focusless(auto_close);
set_notify_enter_exit_on_child(true);
@@ -125,9 +125,9 @@ void ZoomBubbleView::AdjustForFullscreen(const gfx::Rect& screen_bounds) {
const int x_pos = base::i18n::IsRTL() ?
screen_bounds.x() + bubble_half_width + kFullscreenPaddingEnd :
screen_bounds.right() - bubble_half_width - kFullscreenPaddingEnd;
- set_anchor_point(gfx::Point(x_pos, screen_bounds.y()));
+ set_anchor_rect(gfx::Rect(x_pos, screen_bounds.y(), 0, 0));
- // Used to update |views::BubbleDelegate::anchor_point_| in a semi-hacky way.
+ // Used to update |views::BubbleDelegate::anchor_rect_| in a semi-hacky way.
// TODO(dbeam): update only the bounds of this view or its border or frame.
SizeToContents();
}
« no previous file with comments | « chrome/browser/ui/views/global_error_bubble_view.cc ('k') | chrome/browser/ui/views/network_profile_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698