summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 22:55:17 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 22:55:17 +0000
commit630e26b1eb3461ee97211856b6ceb2821e99d655 (patch)
treebde01602f2d82c833642a854a9670f7f25ebd702 /webkit/glue/webview_impl.h
parentc82e56ca13fefb0a50662ef1cee872c06cd2b5e3 (diff)
downloadchromium_src-630e26b1eb3461ee97211856b6ceb2821e99d655.zip
chromium_src-630e26b1eb3461ee97211856b6ceb2821e99d655.tar.gz
chromium_src-630e26b1eb3461ee97211856b6ceb2821e99d655.tar.bz2
Rename various text zoom related stuff to be more generic, since we now can
optionally zoom the page. I added an easy way in render_view to toggle between text zoom and full page zoom, and allowed the embedder to specify this in the glue layer. This allows me to fix the text zoom layout test, which specifically asks that the text be zoomed. Review URL: http://codereview.chromium.org/7320 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.h')
-rw-r--r--webkit/glue/webview_impl.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/webkit/glue/webview_impl.h b/webkit/glue/webview_impl.h
index ebe9e14..ad8f662 100644
--- a/webkit/glue/webview_impl.h
+++ b/webkit/glue/webview_impl.h
@@ -23,13 +23,13 @@ MSVC_PUSH_WARNING_LEVEL(0);
MSVC_POP_WARNING();
namespace WebCore {
- class Frame;
- class HistoryItem;
- class KeyboardEvent;
- class Page;
- class PlatformKeyboardEvent;
- class Range;
- class Widget;
+class Frame;
+class HistoryItem;
+class KeyboardEvent;
+class Page;
+class PlatformKeyboardEvent;
+class Range;
+class Widget;
}
class ImageResourceFetcher;
@@ -81,9 +81,9 @@ class WebViewImpl : public WebView,
virtual const WebPreferences& GetPreferences();
virtual void SetPageEncoding(const std::wstring& encoding_name);
virtual std::wstring GetMainFrameEncodingName();
- virtual void MakeTextLarger();
- virtual void MakeTextSmaller();
- virtual void MakeTextStandardSize();
+ virtual void ZoomIn(bool text_only);
+ virtual void ZoomOut(bool text_only);
+ virtual void ResetZoom();
virtual void CopyImageAt(int x, int y);
virtual void InspectElement(int x, int y);
virtual void ShowJavaScriptConsole();
@@ -275,8 +275,8 @@ class WebViewImpl : public WebView,
gfx::Point last_mouse_down_point_;
// Keeps track of the current text zoom level. 0 means no zoom, positive
- // values mean larger text, negative numbers mean smaller text.
- int text_zoom_level_;
+ // values mean larger text, negative numbers mean smaller.
+ int zoom_level_;
bool context_menu_allowed_;