summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/event_sending_controller.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 23:49:51 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 23:49:51 +0000
commit40bd658fd9aeedc8f2f7cc17c835f41095df9189 (patch)
tree87e9562263a8a641f7d2da19f629a2737d67c041 /webkit/tools/test_shell/event_sending_controller.cc
parent1c42268bc05d715b59d1b535e432c0d9ef666113 (diff)
downloadchromium_src-40bd658fd9aeedc8f2f7cc17c835f41095df9189.zip
chromium_src-40bd658fd9aeedc8f2f7cc17c835f41095df9189.tar.gz
chromium_src-40bd658fd9aeedc8f2f7cc17c835f41095df9189.tar.bz2
Remember zoom on a per-host basis.
BUG=567 TEST=Visit a page, zoom in or out, then navigate to a different host. The new page should not be zoomed. Go back, or restart, or open a new tab and navigate to the old page, and it should be zoomed. Review URL: http://codereview.chromium.org/437077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/event_sending_controller.cc')
-rw-r--r--webkit/tools/test_shell/event_sending_controller.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/tools/test_shell/event_sending_controller.cc b/webkit/tools/test_shell/event_sending_controller.cc
index a14ffdf..e177bf7 100644
--- a/webkit/tools/test_shell/event_sending_controller.cc
+++ b/webkit/tools/test_shell/event_sending_controller.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -616,25 +616,25 @@ void EventSendingController::DoLeapForward(int milliseconds) {
// WebKit/WebView/WebView.mm)
void EventSendingController::textZoomIn(
const CppArgumentList& args, CppVariant* result) {
- webview()->zoomIn(true);
+ webview()->setZoomLevel(true, webview()->zoomLevel() + 1);
result->SetNull();
}
void EventSendingController::textZoomOut(
const CppArgumentList& args, CppVariant* result) {
- webview()->zoomOut(true);
+ webview()->setZoomLevel(true, webview()->zoomLevel() - 1);
result->SetNull();
}
void EventSendingController::zoomPageIn(
const CppArgumentList& args, CppVariant* result) {
- webview()->zoomIn(false);
+ webview()->setZoomLevel(false, webview()->zoomLevel() + 1);
result->SetNull();
}
void EventSendingController::zoomPageOut(
const CppArgumentList& args, CppVariant* result) {
- webview()->zoomOut(false);
+ webview()->setZoomLevel(false, webview()->zoomLevel() - 1);
result->SetNull();
}