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

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

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update AUTHORS file to reflect the correct HP name used in the CLA Created 5 years, 7 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 7b9261f5043ac5ddd83037e078222143bab49a09..3fa4f5655127ea3a1811045daee777af3fe014e4 100644
--- a/components/dom_distiller/core/viewer.h
+++ b/components/dom_distiller/core/viewer.h
@@ -68,6 +68,9 @@ const std::string GetErrorPageHtml(
// Returns the default CSS to be used for a viewer.
const std::string GetCss();
+// Returns the default CSS to be used for a print preview viewer.
+const std::string GetPrintPreviewCss();
+
// Returns the default JS to be used for a viewer.
const std::string GetJavaScript();
@@ -86,6 +89,10 @@ const std::string GetDistilledPageFontFamilyJs(
// Returns JavaScript corresponding to setting a specific theme.
const std::string GetDistilledPageThemeJs(DistilledPagePrefs::Theme theme);
+const std::string GetUnsafePrintPreviewHtml(
+ const DistilledArticleProto* article_proto,
+ const DistilledPagePrefs::Theme theme,
+ const DistilledPagePrefs::FontFamily font_family);
} // namespace viewer
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698