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

Unified Diff: components/dom_distiller/core/viewer.h

Issue 1225183002: Font size in DomDistiller prefs syncs with local scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep focus when useFontScaling() is called, add tests 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/viewer.h
diff --git a/components/dom_distiller/core/viewer.h b/components/dom_distiller/core/viewer.h
index 9b05daad5a610978f16a24be5bf214932b94f939..277a7a10c9e13956a4e999a995991211890755b3 100644
--- a/components/dom_distiller/core/viewer.h
+++ b/components/dom_distiller/core/viewer.h
@@ -83,13 +83,16 @@ scoped_ptr<ViewerHandle> CreateViewRequest(
ViewRequestDelegate* view_request_delegate,
const gfx::Size& render_view_size);
-// Returns JavaScript coresponding to setting the font family.
+// Returns JavaScript corresponding to setting the font family.
const std::string GetDistilledPageFontFamilyJs(
DistilledPagePrefs::FontFamily font);
// Returns JavaScript corresponding to setting a specific theme.
const std::string GetDistilledPageThemeJs(DistilledPagePrefs::Theme theme);
+// Returns JavaScript corresponding to setting the font scaling.
+const std::string GetDistilledPageFontScalingJs(float scaling);
+
} // namespace viewer
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698