diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 01:07:42 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 01:07:42 +0000 |
commit | 4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f (patch) | |
tree | 69a1e9f78b3a5fa8b909cfab336826b09c44235f /views/widget/widget.h | |
parent | 5085ee0b4bfbe4625e63ee6975bb95702e13e0aa (diff) | |
download | chromium_src-4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f.zip chromium_src-4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f.tar.gz chromium_src-4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f.tar.bz2 |
This is the first pass at themes.
This CL is paired with http://codereview.chromium.org/67284
This CL (for commit purposes) includes http://codereview.chromium.org/67284
BUG=4463,11232,11233,11234,11235
Review URL: http://codereview.chromium.org/99030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget.h')
-rw-r--r-- | views/widget/widget.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/widget/widget.h b/views/widget/widget.h index 8dd3f2e..b2c3551 100644 --- a/views/widget/widget.h +++ b/views/widget/widget.h @@ -7,6 +7,8 @@ #include "base/gfx/native_widget_types.h" +class ThemeProvider; + namespace gfx { class Rect; } @@ -53,6 +55,9 @@ class Widget { // Returns the RootView contained by this Widget. virtual RootView* GetRootView() = 0; + // Returns the Widget associated with the root ancestor. + virtual Widget* GetRootWidget() const = 0; + // Returns whether the Widget is visible to the user. virtual bool IsVisible() const = 0; @@ -74,6 +79,14 @@ class Widget { // window. virtual Window* GetWindow() { return NULL; } virtual const Window* GetWindow() const { return NULL; } + + // Get the theme provider. + virtual ThemeProvider* GetThemeProvider() const { return NULL; } + + // Get the dialog theme provider; this is necessary for when a dialog has + // no profile (and ThemeProvider) associated with it. The dialog theme + // provider provides a default set of bitmaps that such dialogs can use. + virtual ThemeProvider* GetDialogThemeProvider() { return NULL; } }; } // namespace views |