summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_instant_controller.cc
diff options
context:
space:
mode:
authormelevin@chromium.org <melevin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-28 02:25:09 +0000
committermelevin@chromium.org <melevin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-28 02:25:09 +0000
commitfcde79a4e5a876c28d0157897fcf2632bd880d5a (patch)
tree5d9c66b62a9beb889bf5d82b4b41ddd44cd425b2 /chrome/browser/ui/browser_instant_controller.cc
parentb018c3ce863fadbae1c18fb7851cef0b6e34d077 (diff)
downloadchromium_src-fcde79a4e5a876c28d0157897fcf2632bd880d5a.zip
chromium_src-fcde79a4e5a876c28d0157897fcf2632bd880d5a.tar.gz
chromium_src-fcde79a4e5a876c28d0157897fcf2632bd880d5a.tar.bz2
Change the SearchBox API from using the start/end margins of the location bar to using the start margin and width. This change is necessary to avoid accounting for the presence of the scrollbar in the search page JavaScript.
BUG=153403 Review URL: https://chromiumcodereview.appspot.com/12047107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_instant_controller.cc')
-rw-r--r--chrome/browser/ui/browser_instant_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 1027ece..2d17390 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -248,8 +248,8 @@ void BrowserInstantController::OpenURL(
false));
}
-void BrowserInstantController::SetMarginSize(int start, int end) {
- instant_.SetMarginSize(start, end);
+void BrowserInstantController::SetOmniboxBounds(const gfx::Rect& bounds) {
+ instant_.SetOmniboxBounds(bounds);
}
void BrowserInstantController::ResetInstant() {