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

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: fix for rebasing 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 08fad14ceabdc45cdd519bd95d0ff53bb0240c0c..bbd814da3eace2cb1d5efbc540d69f2592f37e2f 100644
--- a/components/dom_distiller/core/dom_distiller_request_view_base.cc
+++ b/components/dom_distiller/core/dom_distiller_request_view_base.cc
@@ -101,6 +101,11 @@ void DomDistillerRequestViewBase::OnChangeFontFamily(
SendJavaScript(viewer::GetDistilledPageFontFamilyJs(new_font));
}
+void DomDistillerRequestViewBase::OnChangeFontScaling(
+ float scaling) {
nyquist 2015/08/11 06:27:57 Nit: move one line up
wychen 2015/08/31 21:47:39 Done.
+ 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