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

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
« no previous file with comments | « components/dom_distiller/core/viewer.h ('k') | components/test/data/dom_distiller/pinch_tester.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/viewer.cc
diff --git a/components/dom_distiller/core/viewer.cc b/components/dom_distiller/core/viewer.cc
index 4f04332e3d44748c8b56837ccf1f7d911c92393c..db85d065d4485ec5dc4c86648c2b172d1155ff75 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"
@@ -306,6 +307,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
« no previous file with comments | « components/dom_distiller/core/viewer.h ('k') | components/test/data/dom_distiller/pinch_tester.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698