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

Unified Diff: chrome/browser/ui/search/instant_controller.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. Created 7 years, 5 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/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 28ce7fac1c3616fed381233b516181f582feb3a9..ff8f3da56ff95527e1bb3dd7c8e3be0ae698f723 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -124,6 +124,10 @@ void InstantController::SetOmniboxBounds(const gfx::Rect& bounds) {
instant_tab_->sender()->SetOmniboxBounds(omnibox_bounds_);
}
+gfx::Rect InstantController::GetOmniboxBounds() {
+ return omnibox_bounds_;
+}
+
void InstantController::ToggleVoiceSearch() {
if (instant_tab_)
instant_tab_->sender()->ToggleVoiceSearch();

Powered by Google App Engine
This is Rietveld 408576698