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

Unified Diff: ui/views/view.cc

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/views/view.h ('k') | ui/views/widget/desktop_native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 3f36ec1e1bb138662d59f6466cab14fddee17ad0..a0b774c69af92ef1754246e312db78b7737df123 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -734,6 +734,11 @@ ui::ThemeProvider* View::GetThemeProvider() const {
return widget ? widget->GetThemeProvider() : NULL;
}
+ui::NativeTheme* View::GetNativeTheme() {
+ Widget* widget = GetWidget();
+ return widget ? widget->GetNativeTheme() : NULL;
+}
+
// Accelerated Painting --------------------------------------------------------
// static
« no previous file with comments | « ui/views/view.h ('k') | ui/views/widget/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698