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

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

Issue 10905296: Adjusted action box menu position relative to omnibox and action box menu button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index aba7b08857ada9090683767ae52d9740ebe016f3..a1ec4c04a8736b252113efc2b4f57bb0081f0567 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -313,6 +313,11 @@ void LocationBarView::Init(views::View* popup_parent_view) {
if (extensions::switch_utils::IsActionBoxEnabled() && browser_) {
action_box_button_view_ = new ActionBoxButtonView(browser_);
AddChildView(action_box_button_view_);
+ gfx::Size menu_offset(
+ (mode_ == NORMAL) ? kNormalHorizontalEdgeThickness : 0,
+ kVerticalEdgeThickness);
+ action_box_button_view_->SetMenuOffset(menu_offset);
+
if (star_view_)
star_view_->SetVisible(false);
}

Powered by Google App Engine
This is Rietveld 408576698