diff options
Diffstat (limited to 'chrome/browser/gtk/browser_toolbar_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/browser_toolbar_gtk.cc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.cc b/chrome/browser/gtk/browser_toolbar_gtk.cc index ebde04c..de012d3 100644 --- a/chrome/browser/gtk/browser_toolbar_gtk.cc +++ b/chrome/browser/gtk/browser_toolbar_gtk.cc @@ -71,7 +71,7 @@ const int kToolbarWidgetSpacing = 2; BrowserToolbarGtk::BrowserToolbarGtk(Browser* browser, BrowserWindowGtk* window) : toolbar_(NULL), - location_bar_(new LocationBarViewGtk(this, browser)), + location_bar_(new LocationBarViewGtk(browser)), model_(browser->toolbar_model()), page_menu_model_(this, browser), app_menu_model_(this, browser), @@ -434,30 +434,6 @@ void BrowserToolbarGtk::UpdateTabContents(TabContents* contents, actions_toolbar_->Update(); } -gfx::Rect BrowserToolbarGtk::GetLocationStackBounds() const { - GtkWidget* left; - GtkWidget* right; - if (base::i18n::IsRTL()) { - left = go_->widget(); - right = reload_.get(); - } else { - left = reload_.get(); - right = go_->widget(); - } - - gint origin_x, origin_y; - DCHECK_EQ(left->window, right->window); - gdk_window_get_origin(left->window, &origin_x, &origin_y); - - gint right_x = origin_x + right->allocation.x + 1; - gint left_x = origin_x + left->allocation.x + left->allocation.width - 1; - DCHECK_LE(left_x, right_x); - - gfx::Rect stack_bounds(left_x, origin_y + left->allocation.y - 2, - right_x - left_x, left->allocation.height); - return stack_bounds; -} - // BrowserToolbarGtk, private -------------------------------------------------- CustomDrawButton* BrowserToolbarGtk::BuildToolbarButton( |