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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index 626ff0241deceafd8b9d9b3d5d4cae370fea9036..3681e5fac126ebc72f818951ee6c7ffb08df62d0 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -668,6 +668,12 @@ bool OmniboxViewViews::IsImeComposing() const {
return false;
}
+gfx::Rect OmniboxViewViews::GetBounds() const {
+ // The location bar's bounds are returned because when gray text is showing,
+ // the OmniboxView does not fill the entire box.
+ return location_bar_view_->GetBoundsInScreen();
+}
+
int OmniboxViewViews::GetMaxEditWidth(int entry_width) const {
return entry_width;
}

Powered by Google App Engine
This is Rietveld 408576698