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

Unified Diff: ui/views/views_delegate.h

Issue 284233009: Adds ViewsDelegate::GetContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more spaces Created 6 years, 7 months 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/test/test_views_delegate.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698