summaryrefslogtreecommitdiffstats
path: root/chrome/common/page_zoom.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 /chrome/common/page_zoom.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 'chrome/common/page_zoom.h')
-rw-r--r--chrome/common/page_zoom.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/common/page_zoom.h b/chrome/common/page_zoom.h
new file mode 100644
index 0000000..17743b7
--- /dev/null
+++ b/chrome/common/page_zoom.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2006-2008 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.
+
+#ifndef CHROME_COMMON_PAGE_ZOOM_H_
+#define CHROME_COMMON_PAGE_ZOOM_H_
+
+// This enum is the parameter to various text/page zoom commands so we know
+// what the specific zoom command is.
+class PageZoom {
+ public:
+ enum Function {
+ SMALLER = -1,
+ STANDARD = 0,
+ LARGER = 1,
+ };
+
+ private:
+ PageZoom() {} // For scoping only.
+};
+
+#endif // CHROME_COMMON_PAGE_ZOOM_H_
+