diff options
author | smaslo@chromium.org <smaslo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 00:30:10 +0000 |
---|---|---|
committer | smaslo@chromium.org <smaslo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 00:30:10 +0000 |
commit | 6a5b0718e89a93ef5786bed8333d5a5056ad5478 (patch) | |
tree | d4186b28a9c577dcecfe9efc3aa0702b4057e71e /components/dom_distiller.gypi | |
parent | cf72efdced52abcc1c389919b91c22891ca48492 (diff) | |
download | chromium_src-6a5b0718e89a93ef5786bed8333d5a5056ad5478.zip chromium_src-6a5b0718e89a93ef5786bed8333d5a5056ad5478.tar.gz chromium_src-6a5b0718e89a93ef5786bed8333d5a5056ad5478.tar.bz2 |
Theme Preferences for Distilled Pages
Adds support for allowing users to change the appearance of
distilled pages to different themes. The current themes are
light, dark and sepia.
The theme of the page is controlled by the CSS class of the
body element. When the page is loaded, this CSS class is set
by inserting the CSS class into the HTML. When a setting is
changed while a distilled page is open, the CSS class is set
by calling the JavaScript function useTheme which then updates
the body element's CSS class.
BUG=383630
Review URL: https://codereview.chromium.org/341563002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r-- | components/dom_distiller.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi index 5f8c4bb..fc88cd2 100644 --- a/components/dom_distiller.gypi +++ b/components/dom_distiller.gypi @@ -60,6 +60,8 @@ 'dom_distiller/core/article_entry.h', 'dom_distiller/core/distilled_content_store.cc', 'dom_distiller/core/distilled_content_store.h', + 'dom_distiller/core/distilled_page_prefs.cc', + 'dom_distiller/core/distilled_page_prefs.h', 'dom_distiller/core/distiller.cc', 'dom_distiller/core/distiller.h', 'dom_distiller/core/distiller_page.cc', |