Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: webkit/glue/webview.h

Issue 7320: Rename various text zoom related stuff to be more generic, since we now can... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview.h
===================================================================
--- webkit/glue/webview.h (revision 3355)
+++ webkit/glue/webview.h (working copy)
@@ -149,10 +149,18 @@
// Return the canonical encoding name of current main webframe in webview.
virtual std::wstring GetMainFrameEncodingName() = 0;
- // Change the text zoom level. Text size is made 20% larger or smaller.
- virtual void MakeTextLarger() = 0;
- virtual void MakeTextSmaller() = 0;
- virtual void MakeTextStandardSize() = 0;
+ // Change the text zoom level. It will make the zoom level 20% larger or
+ // smaller. If text_only is set, the text size will be changed. When unset,
+ // the entire page's zoom factor will be changed.
+ //
+ // You can only have either text zoom or full page zoom at one time. Changing
+ // the mode will change things in weird ways. Generally the app should only
+ // support text zoom or full page zoom, and not both.
+ //
+ // ResetZoom will reset both full page and text zoom.
+ virtual void ZoomIn(bool text_only) = 0;
+ virtual void ZoomOut(bool text_only) = 0;
+ virtual void ResetZoom() = 0;
// Copy to the clipboard the image located at a particular point in the
// WebView (if there is such an image)
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698