| Index: components/dom_distiller/core/viewer.h
|
| diff --git a/components/dom_distiller/core/viewer.h b/components/dom_distiller/core/viewer.h
|
| index 98a7e998f8ebbd2e0028ffca808b50ef4c16078e..4339fc773a89bd4dbf8db532c1b0d421ae7c442e 100644
|
| --- a/components/dom_distiller/core/viewer.h
|
| +++ b/components/dom_distiller/core/viewer.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/strings/string16.h"
|
| +#include "components/dom_distiller/core/distilled_page_prefs.h"
|
|
|
| namespace dom_distiller {
|
|
|
| @@ -26,7 +27,8 @@ namespace viewer {
|
| // to be displayed to the end user. The returned HTML should be considered
|
| // unsafe, so callers must ensure rendering it does not compromise Chrome.
|
| const std::string GetUnsafeArticleHtml(
|
| - const DistilledArticleProto* article_proto);
|
| + const DistilledArticleProto* article_proto,
|
| + const DistilledPagePrefs::Theme theme);
|
|
|
| // 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
|
| @@ -35,7 +37,8 @@ const std::string GetUnsafeArticleHtml(
|
| // for displaying an in-flight distillation instead of waiting for the full
|
| // article.
|
| const std::string GetUnsafePartialArticleHtml(
|
| - const DistilledPageProto* page_proto);
|
| + const DistilledPageProto* page_proto,
|
| + const DistilledPagePrefs::Theme theme);
|
|
|
| // 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
|
| @@ -51,7 +54,7 @@ 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 std::string GetErrorPageHtml(const DistilledPagePrefs::Theme theme);
|
|
|
| // Returns the default CSS to be used for a viewer.
|
| const std::string GetCss();
|
| @@ -66,6 +69,9 @@ scoped_ptr<ViewerHandle> CreateViewRequest(
|
| const std::string& path,
|
| ViewRequestDelegate* view_request_delegate);
|
|
|
| +// Returns JavaScript corresponding to setting a specific theme.
|
| +const std::string GetDistilledPageThemeJs(DistilledPagePrefs::Theme theme);
|
| +
|
| } // namespace viewer
|
|
|
| } // namespace dom_distiller
|
|
|