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 |