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

Unified Diff: ui/views/views_delegate.h

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win, linux, android compiles issues Created 5 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
Index: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 16ecca03ce7f543c5f76dc7e994642fdaf0f883e..4fc8a5c855d196548d5180ee35b6e03e99209d42 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -38,6 +38,7 @@ class Rect;
namespace ui {
class ContextFactory;
+class NativeTheme;
}
namespace views {
@@ -191,6 +192,10 @@ class VIEWS_EXPORT ViewsDelegate {
// Returns a blocking pool task runner given a TaskRunnerType.
virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner();
+ // Returns a value which, if non-null, will be used as the NativeTheme for
+ // |widget| in place of the platform default native theme.
+ virtual ui::NativeTheme* GetNativeThemeOverride(const Widget* widget);
+
protected:
ViewsDelegate();

Powered by Google App Engine
This is Rietveld 408576698