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

Unified Diff: ui/views/views_delegate.h

Issue 9166014: Allow a Views client to provide a default frameview for window widgets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
Index: ui/views/views_delegate.h
===================================================================
--- ui/views/views_delegate.h (revision 117091)
+++ ui/views/views_delegate.h (working copy)
@@ -27,6 +27,7 @@
namespace views {
+class NonClientFrameView;
class View;
class Widget;
@@ -77,6 +78,12 @@
virtual HICON GetDefaultWindowIcon() const = 0;
#endif
+ // Creates a default NonClientFrameView to be used for windows that don't
+ // specify their own. If this function returns NULL, the
+ // views::CustomFrameView type will be used.
+ virtual NonClientFrameView* CreateDefaultNonClientFrameView(
+ Widget* widget) = 0;
+
// AddRef/ReleaseRef are invoked while a menu is visible. They are used to
// ensure we don't attempt to exit while a menu is showing.
virtual void AddRef() = 0;

Powered by Google App Engine
This is Rietveld 408576698