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

Unified Diff: ui/views/view.h

Issue 11367041: Adds View::GetNativeTheme() to get the NativeTheme. The interesting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include Created 8 years, 1 month 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
« no previous file with comments | « ui/ui.gyp ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 76d09d413b870d234fc81de9696c135ec55464a6..7e663c9712268b012e93b2b93b412413493e0e37 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -46,6 +46,7 @@ namespace ui {
struct AccessibleViewState;
class Compositor;
class Layer;
+class NativeTheme;
class TextInputClient;
class Texture;
class ThemeProvider;
@@ -471,6 +472,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Get the theme provider from the parent widget.
virtual ui::ThemeProvider* GetThemeProvider() const;
+ // Returns the NativeTheme to use for this View. This calls through to
+ // GetNativeTheme() on the Widget this View is in. If this View is not in a
+ // Widget this returns NULL.
+ ui::NativeTheme* GetNativeTheme();
+
// RTL painting --------------------------------------------------------------
// This method determines whether the gfx::Canvas object passed to
« no previous file with comments | « ui/ui.gyp ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698