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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 21042013: Have SearchProvider look up the omnibox start margin directly. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebase and respond to comments. Created 7 years, 4 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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 8f8b8b0abb11f501cea599c54278e67b4251c6b2..b4849e470064986813da420fcd14503326711de2 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -92,7 +92,6 @@
#include "ui/gfx/font.h"
#include "ui/gfx/gtk_util.h"
#include "ui/gfx/image/image.h"
-#include "ui/gfx/rect.h"
using content::NavigationEntry;
using content::OpenURLParams;
@@ -618,12 +617,6 @@ WebContents* LocationBarViewGtk::GetWebContents() const {
return browser_->tab_strip_model()->GetActiveWebContents();
}
-gfx::Rect LocationBarViewGtk::GetOmniboxBounds() const {
- GtkAllocation hbox_allocation;
- gtk_widget_get_allocation(hbox_.get(), &hbox_allocation);
- return AllocationToRect(hbox_allocation);
-}
-
void LocationBarViewGtk::SetPreviewEnabledPageAction(
ExtensionAction* page_action,
bool preview_enabled) {

Powered by Google App Engine
This is Rietveld 408576698