Index: components/dom_distiller/core/viewer.cc |
diff --git a/components/dom_distiller/core/viewer.cc b/components/dom_distiller/core/viewer.cc |
index 0a0dd546652d8a4f55390c407877255c1c548d25..2fa08686089cb5fee7090c321ce593a639ede522 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,11 @@ const std::string GetDistilledPageFontFamilyJs( |
return "useFontFamily('" + GetJsFontFamily(font_family) + "');"; |
} |
+const std::string GetDistilledPageFontScalingJs( |
+ float scaling) { |
nyquist
2015/08/11 06:27:57
Nit: move to previous line?
wychen
2015/08/31 21:47:39
Done.
|
+ return "useFontScaling(" + base::DoubleToString(scaling) + ");"; |
+} |
+ |
} // namespace viewer |
} // namespace dom_distiller |