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

Unified Diff: components/dom_distiller/core/dom_distiller_request_view_base.cc

Issue 1225183002: Font size in DomDistiller prefs syncs with local scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep focus when useFontScaling() is called, add tests Created 5 years, 5 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
Index: components/dom_distiller/core/dom_distiller_request_view_base.cc
diff --git a/components/dom_distiller/core/dom_distiller_request_view_base.cc b/components/dom_distiller/core/dom_distiller_request_view_base.cc
index 8b30a8f5a52b7b9b64731e011a674f7ea343a9de..ad38c1e1b4b44cfbb52e383aacc99514a359b048 100644
--- a/components/dom_distiller/core/dom_distiller_request_view_base.cc
+++ b/components/dom_distiller/core/dom_distiller_request_view_base.cc
@@ -109,6 +109,11 @@ void DomDistillerRequestViewBase::OnChangeFontFamily(
SendJavaScript(viewer::GetDistilledPageFontFamilyJs(new_font));
}
+void DomDistillerRequestViewBase::OnChangeFontScaling(
+ float scaling) {
+ SendJavaScript(viewer::GetDistilledPageFontScalingJs(scaling));
+}
+
void DomDistillerRequestViewBase::TakeViewerHandle(
scoped_ptr<ViewerHandle> viewer_handle) {
viewer_handle_ = viewer_handle.Pass();

Powered by Google App Engine
This is Rietveld 408576698