Index: ui/views/views_delegate.h |
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h |
index 8be8a0d5844bf2c0b80ad42332953c9968d415ad..0175c8ba20140a755a6b0a7e5ce84d8f1f31216b 100644 |
--- a/ui/views/views_delegate.h |
+++ b/ui/views/views_delegate.h |
@@ -33,6 +33,10 @@ class ImageSkia; |
class Rect; |
} |
+namespace ui { |
+class ContextFactory; |
+} |
+ |
namespace views { |
class NativeWidget; |
@@ -126,6 +130,11 @@ class VIEWS_EXPORT ViewsDelegate { |
// maximized windows; otherwise to restored windows. |
virtual bool WindowManagerProvidesTitleBar(bool maximized); |
+#if defined(USE_AURA) |
+ // Returns the context factory for new windows. |
+ virtual ui::ContextFactory* GetContextFactory(); |
+#endif |
+ |
#if defined(OS_WIN) |
// Starts a query for the appbar autohide edges of the specified monitor and |
// returns the current value. If the query finds the edges have changed from |