diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 22:15:09 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 22:15:09 +0000 |
commit | b3d7b1d8e2d35d13b19ae7294271fe470bbbb730 (patch) | |
tree | 7b9013bb48471eae817de7c50005a47992a2d362 /views/widget/native_widget_gtk.h | |
parent | 9b46eb22ef9a1cd601ed6972571e838ad75f5b18 (diff) | |
download | chromium_src-b3d7b1d8e2d35d13b19ae7294271fe470bbbb730.zip chromium_src-b3d7b1d8e2d35d13b19ae7294271fe470bbbb730.tar.gz chromium_src-b3d7b1d8e2d35d13b19ae7294271fe470bbbb730.tar.bz2 |
Move a bunch of functions from Window onto Widget.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/7075019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_gtk.h')
-rw-r--r-- | views/widget/native_widget_gtk.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/views/widget/native_widget_gtk.h b/views/widget/native_widget_gtk.h index d29fee3..ffc0209 100644 --- a/views/widget/native_widget_gtk.h +++ b/views/widget/native_widget_gtk.h @@ -178,10 +178,17 @@ class NativeWidgetGtk : public NativeWidget, virtual void CloseNow() OVERRIDE; virtual void Show() OVERRIDE; virtual void Hide() OVERRIDE; - virtual void SetOpacity(unsigned char opacity) OVERRIDE; - virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; virtual bool IsVisible() const OVERRIDE; + virtual void Activate() OVERRIDE; + virtual void Deactivate() OVERRIDE; virtual bool IsActive() const OVERRIDE; + virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; + virtual void Maximize() OVERRIDE; + virtual void Minimize() OVERRIDE; + virtual bool IsMaximized() const OVERRIDE; + virtual bool IsMinimized() const OVERRIDE; + virtual void Restore() OVERRIDE; + virtual void SetOpacity(unsigned char opacity) OVERRIDE; virtual bool IsAccessibleWidget() const OVERRIDE; virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; virtual void RunShellDrag(View* view, @@ -245,6 +252,8 @@ class NativeWidgetGtk : public NativeWidget, CHROMEGTK_CALLBACK_0(NativeWidgetGtk, void, OnShow); CHROMEGTK_CALLBACK_0(NativeWidgetGtk, void, OnMap); CHROMEGTK_CALLBACK_0(NativeWidgetGtk, void, OnHide); + CHROMEGTK_CALLBACK_1(NativeWidgetGtk, gboolean, OnWindowStateEvent, + GdkEventWindowState*); // Invoked when gtk grab is stolen by other GtkWidget in the same // application. @@ -257,6 +266,10 @@ class NativeWidgetGtk : public NativeWidget, // Are we a subclass of NativeWindowGtk? bool is_window_; + // State of the window, such as fullscreen, hidden... + // TODO(beng): move to private once NativeWindowGtk no longer refers to it. + GdkWindowState window_state_; + private: class DropObserver; friend class DropObserver; |