diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 20:53:50 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 20:53:50 +0000 |
commit | 7895ea23e75075fd6f9fe5a6c3dfb17d3456b208 (patch) | |
tree | d9f36ade5222fbdab94c0b40f66b456f9eba308e /chrome/browser/dom_ui/dom_ui_theme_source.h | |
parent | 77be37906a16c98612360a2e35c257aa5484cf2d (diff) | |
download | chromium_src-7895ea23e75075fd6f9fe5a6c3dfb17d3456b208.zip chromium_src-7895ea23e75075fd6f9fe5a6c3dfb17d3456b208.tar.gz chromium_src-7895ea23e75075fd6f9fe5a6c3dfb17d3456b208.tar.bz2 |
Allow themes to change the background of the new tab page. Adds support for display properties to themes (stored internally as ints/enums, but parsed from text).
BUG=12768
TEST=Install a theme with an new tab page background and verify that the background appears on the new tab page.
Review URL: http://codereview.chromium.org/115910
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui_theme_source.h')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_theme_source.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_theme_source.h b/chrome/browser/dom_ui/dom_ui_theme_source.h index 38eec59..e31e21b 100644 --- a/chrome/browser/dom_ui/dom_ui_theme_source.h +++ b/chrome/browser/dom_ui/dom_ui_theme_source.h @@ -5,6 +5,8 @@ #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_THEME_SOURCE_H_ #define CHROME_BROWSER_DOM_UI_DOM_UI_THEME_SOURCE_H_ +#include <string> + #include "chrome/browser/dom_ui/chrome_url_data_manager.h" class Profile; @@ -29,6 +31,10 @@ class DOMUIThemeSource : public ChromeURLDataManager::DataSource { // Fetch and send the theme bitmap. void SendThemeBitmap(int request_id, int resource_id); + // Get the CSS string for the background position on the new tab page for the + // states when the bar is attached or detached. + std::string GetNewTabBackgroundCSS(bool bar_attached); + Profile* profile_; DISALLOW_COPY_AND_ASSIGN(DOMUIThemeSource); }; |