summaryrefslogtreecommitdiffstats
path: root/views/widget/native_widget.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-08 17:47:43 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-08 17:47:43 +0000
commit68c477df6917633a7a9c64f8624446ca0bd895d5 (patch)
treea270354aa75de9516ba5b150568bb1d142b24b1c /views/widget/native_widget.h
parent8a9c6c3401524c0a4b5d37d65335e9124885305a (diff)
downloadchromium_src-68c477df6917633a7a9c64f8624446ca0bd895d5.zip
chromium_src-68c477df6917633a7a9c64f8624446ca0bd895d5.tar.gz
chromium_src-68c477df6917633a7a9c64f8624446ca0bd895d5.tar.bz2
Move more from Window onto Widget.
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/7054052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget.h')
-rw-r--r--views/widget/native_widget.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/views/widget/native_widget.h b/views/widget/native_widget.h
index 6cb4147..3534f26 100644
--- a/views/widget/native_widget.h
+++ b/views/widget/native_widget.h
@@ -152,9 +152,11 @@ class NativeWidget {
virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) = 0;
virtual void SetAccessibleState(ui::AccessibilityTypes::State state) = 0;
- protected:
- friend class Widget;
- friend class NativeWidgetViews;
+ enum ShowState {
+ SHOW_RESTORED,
+ SHOW_MAXIMIZED,
+ SHOW_INACTIVE
+ };
// Returns a handle for the underlying native widget that can be used for
// accelerated drawing.
@@ -164,6 +166,7 @@ class NativeWidget {
// See method documentation in Widget.
virtual gfx::Rect GetWindowScreenBounds() const = 0;
virtual gfx::Rect GetClientAreaScreenBounds() const = 0;
+ virtual gfx::Rect GetRestoredBounds() const = 0;
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual void SetSize(const gfx::Size& size) = 0;
virtual void SetBoundsConstrained(const gfx::Rect& bounds,
@@ -172,8 +175,10 @@ class NativeWidget {
virtual void SetShape(gfx::NativeRegion shape) = 0;
virtual void Close() = 0;
virtual void CloseNow() = 0;
+ virtual void EnableClose(bool enable) = 0;
virtual void Show() = 0;
virtual void Hide() = 0;
+ virtual void ShowNativeWidget(ShowState state) = 0;
virtual bool IsVisible() const = 0;
virtual void Activate() = 0;
virtual void Deactivate() = 0;