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

Unified Diff: chrome/renderer/render_view.cc

Issue 147202: Added support for Text only zoom... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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/common/page_zoom.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 19223)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2232,17 +2232,22 @@
}
void RenderView::OnZoom(int function) {
- static const bool kZoomIsTextOnly = false;
switch (function) {
+ case PageZoom::TEXT_ONLY_SMALLER:
+ webview()->ZoomOut(true);
+ break;
case PageZoom::SMALLER:
- webview()->ZoomOut(kZoomIsTextOnly);
+ webview()->ZoomOut(false);
break;
case PageZoom::STANDARD:
webview()->ResetZoom();
break;
case PageZoom::LARGER:
- webview()->ZoomIn(kZoomIsTextOnly);
+ webview()->ZoomIn(false);
break;
+ case PageZoom::TEXT_ONLY_LARGER:
+ webview()->ZoomIn(true);
+ break;
default:
NOTREACHED();
}
« no previous file with comments | « chrome/common/page_zoom.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698