From 9f2ea8764277f52936b65136322a97f1d92a7fa9 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Fri, 3 Jun 2011 15:42:46 +0000 Subject: Re-land: Move NonClientView and FrameType logic from Window to Widget. Also fixes leak of default WidgetDelegate by replacing it with a DefaultWidgetDelegate subclass that overrides DeleteDelegate and deletes itself. This required moving the destruction logic from Window down onto Widget. BUG=72040 TEST=none Review URL: http://codereview.chromium.org/7033049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87784 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/native_widget.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'views/widget/native_widget.h') diff --git a/views/widget/native_widget.h b/views/widget/native_widget.h index f3faba0..6cb4147 100644 --- a/views/widget/native_widget.h +++ b/views/widget/native_widget.h @@ -66,6 +66,14 @@ class NativeWidget { // Initializes the NativeWidget. virtual void InitNativeWidget(const Widget::InitParams& params) = 0; + // Returns a NonClientFrameView for the widget's NonClientView, or NULL if + // the NativeWidget wants no special NonClientFrameView. + virtual NonClientFrameView* CreateNonClientFrameView() = 0; + + virtual void UpdateFrameAfterFrameChange() = 0; + virtual bool ShouldUseNativeFrame() const = 0; + virtual void FrameTypeChanged() = 0; + // Returns the Widget associated with this NativeWidget. This function is // guaranteed to return non-NULL for the lifetime of the NativeWidget. virtual Widget* GetWidget() = 0; -- cgit v1.1