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 05:11:46 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 05:11:46 +0000
commit57b8bb357db85d85157c3a87f0b87383343867d8 (patch)
tree86094bfd85db4f416cbab9567fade0ec22d09e05 /ui/views/views_delegate.h
parentadbc48a264898944041e1c2e0a794756bb8db3d5 (diff)
downloadchromium_src-57b8bb357db85d85157c3a87f0b87383343867d8.zip
chromium_src-57b8bb357db85d85157c3a87f0b87383343867d8.tar.gz
chromium_src-57b8bb357db85d85157c3a87f0b87383343867d8.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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117165 Review URL: http://codereview.chromium.org/9166014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117170 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;