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>2012-12-14 01:11:04 +0000
committermelevin@chromium.org <melevin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 01:11:04 +0000
commitec4aad544c94b17ad2a01537e5bbbec5cd4d13d4 (patch)
tree95bc5a69c4627ec014856268fbc077f56a3472d2 /chrome/browser/ui/browser_instant_controller.cc
parente34dc5abef02c60b672ba0fae814233682bbbd01 (diff)
downloadchromium_src-ec4aad544c94b17ad2a01537e5bbbec5cd4d13d4.zip
chromium_src-ec4aad544c94b17ad2a01537e5bbbec5cd4d13d4.tar.gz
chromium_src-ec4aad544c94b17ad2a01537e5bbbec5cd4d13d4.tar.bz2
Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchange event for Views only.
BUG=153403 Review URL: https://chromiumcodereview.appspot.com/11359198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173028 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, 4 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index f5aee48..ba89cdf 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -171,6 +171,10 @@ void BrowserInstantController::OpenURLInCurrentTab(
false));
}
+void BrowserInstantController::SetMarginSize(int start, int end) {
+ instant_.SetMarginSize(start, end);
+}
+
void BrowserInstantController::ResetInstant() {
instant_.SetInstantEnabled(IsInstantEnabled(browser_->profile()));
}