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 |