summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 14:39:13 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 14:39:13 +0000
commitb1df1b72bd8db3c45fa8be32773765f8ee8701a3 (patch)
treee165646bb7ea1fb5b996f9c4b9bac853380389b4 /chrome/browser/views
parent2afee14150fe8cd4db21dde70909dfdccd76f6ff (diff)
downloadchromium_src-b1df1b72bd8db3c45fa8be32773765f8ee8701a3.zip
chromium_src-b1df1b72bd8db3c45fa8be32773765f8ee8701a3.tar.gz
chromium_src-b1df1b72bd8db3c45fa8be32773765f8ee8701a3.tar.bz2
Moves bookmark menu to be before other menus.
BUG=none TEST=none Review URL: http://codereview.chromium.org/42568 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12449 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/toolbar_view.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc
index 78a8ae6..b97fbf8 100644
--- a/chrome/browser/views/toolbar_view.cc
+++ b/chrome/browser/views/toolbar_view.cc
@@ -358,16 +358,18 @@ void BrowserToolbarView::Layout() {
go_->SetBounds(location_bar_->x() + location_bar_->width(), child_y,
go_button_width, child_height);
- page_menu_->SetBounds(go_->x() + go_->width() + kMenuButtonOffset, child_y,
- page_menu_width, child_height);
-
- app_menu_->SetBounds(page_menu_->x() + page_menu_->width(), child_y,
- app_menu_width, child_height);
+ int next_menu_x = go_->x() + go_->width() + kMenuButtonOffset;
if (bookmark_menu_) {
- bookmark_menu_->SetBounds(app_menu_->x() + app_menu_->width(), child_y,
- bookmark_menu_width, child_height);
+ bookmark_menu_->SetBounds(next_menu_x, child_y, bookmark_menu_width,
+ child_height);
+ next_menu_x += bookmark_menu_width;
}
+
+ page_menu_->SetBounds(next_menu_x, child_y, page_menu_width, child_height);
+ next_menu_x += page_menu_width;
+
+ app_menu_->SetBounds(next_menu_x, child_y, app_menu_width, child_height);
}
void BrowserToolbarView::Paint(ChromeCanvas* canvas) {