Index: components/dom_distiller/core/viewer.h |
diff --git a/components/dom_distiller/core/viewer.h b/components/dom_distiller/core/viewer.h |
index 5812f8cda30f6a7ed2e3b712dc4bf502cac69b68..45b7e95e867d39bb40bcdbd62ec6be4ca2832db7 100644 |
--- a/components/dom_distiller/core/viewer.h |
+++ b/components/dom_distiller/core/viewer.h |
@@ -29,7 +29,8 @@ namespace viewer { |
// unsafe, so callers must ensure rendering it does not compromise Chrome. |
const std::string GetUnsafeArticleHtml( |
const DistilledArticleProto* article_proto, |
- const DistilledPagePrefs::Theme theme); |
+ const DistilledPagePrefs::Theme theme, |
+ const DistilledPagePrefs::FontFamily font_family); |
// Returns the base Viewer HTML page based on the given |page_proto|. This is |
// supposed to be displayed to the end user. The returned HTML should be |
@@ -39,7 +40,8 @@ const std::string GetUnsafeArticleHtml( |
// article. |
const std::string GetUnsafePartialArticleHtml( |
const DistilledPageProto* page_proto, |
- const DistilledPagePrefs::Theme theme); |
+ const DistilledPagePrefs::Theme theme, |
+ const DistilledPagePrefs::FontFamily font_family); |
// Returns a JavaScript blob for updating a partial view request with additional |
// distilled content. Meant for use when viewing a slow or long multi-page |
@@ -55,7 +57,9 @@ const std::string GetUnsafeIncrementalDistilledPageJs( |
const std::string GetToggleLoadingIndicatorJs(const bool is_last_page); |
// Returns a full HTML page which displays a generic error. |
-const std::string GetErrorPageHtml(const DistilledPagePrefs::Theme theme); |
+const std::string GetErrorPageHtml( |
+ const DistilledPagePrefs::Theme theme, |
+ const DistilledPagePrefs::FontFamily font_family); |
// Returns the default CSS to be used for a viewer. |
const std::string GetCss(); |
@@ -71,6 +75,10 @@ scoped_ptr<ViewerHandle> CreateViewRequest( |
ViewRequestDelegate* view_request_delegate, |
const gfx::Size& render_view_size); |
+// Returns JavaScript coresponding 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); |