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

Unified Diff: components/dom_distiller/core/viewer.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: merge master again Created 5 years, 3 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/viewer.cc
diff --git a/components/dom_distiller/core/viewer.cc b/components/dom_distiller/core/viewer.cc
index 7177cf6a726cceb616844a7e54bb652cb5121709..df9f828b38b25842db4d9f2b887376226f5fd9f0 100644
--- a/components/dom_distiller/core/viewer.cc
+++ b/components/dom_distiller/core/viewer.cc
@@ -10,6 +10,7 @@
#include "base/json/json_writer.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_macros.h"
+#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "components/dom_distiller/core/distilled_page_prefs.h"
#include "components/dom_distiller/core/dom_distiller_service.h"
@@ -298,6 +299,10 @@ const std::string GetDistilledPageFontFamilyJs(
return "useFontFamily('" + GetJsFontFamily(font_family) + "');";
}
+const std::string GetDistilledPageFontScalingJs(float scaling) {
+ return "useFontScaling(" + base::DoubleToString(scaling) + ");";
+}
+
} // namespace viewer
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698