summaryrefslogtreecommitdiffstats
path: root/ui/views/views_delegate.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 03:49:41 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 03:49:41 +0000
commitae79f8bbf66c3de33a7f08a4117fa3ae4423af7e (patch)
tree2bb0d11281dc043f2a383e2bf8519e80f159baad /ui/views/views_delegate.h
parent0a993c822f1b65cf0c8b40d30896ce98a1d45f0c (diff)
downloadchromium_src-ae79f8bbf66c3de33a7f08a4117fa3ae4423af7e.zip
chromium_src-ae79f8bbf66c3de33a7f08a4117fa3ae4423af7e.tar.gz
chromium_src-ae79f8bbf66c3de33a7f08a4117fa3ae4423af7e.tar.bz2
Allow a Views client to provide a default frameview for window widgets.
Provides a default one in Ash that will be used to match kennedy-spec. Much tweaking is needed, but that can come in future CLs. http://crbug.com/109138 TEST=none Review URL: http://codereview.chromium.org/9166014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/views_delegate.h')
-rw-r--r--ui/views/views_delegate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 6194617d..2544413 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -27,6 +27,7 @@ class Clipboard;
namespace views {
+class NonClientFrameView;
class View;
class Widget;
@@ -77,6 +78,12 @@ class VIEWS_EXPORT ViewsDelegate {
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;