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/window/native_window_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/window/native_window_gtk.h')
-rw-r--r-- | views/window/native_window_gtk.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/views/window/native_window_gtk.h b/views/window/native_window_gtk.h index f45380e..56e46da 100644 --- a/views/window/native_window_gtk.h +++ b/views/window/native_window_gtk.h @@ -39,8 +39,6 @@ class NativeWindowGtk : public NativeWidgetGtk, public NativeWindow { GdkEventConfigure* event); virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event); virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); - virtual gboolean OnWindowStateEvent(GtkWidget* widget, - GdkEventWindowState* event); virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event); virtual void IsActiveChanged(); @@ -65,26 +63,19 @@ class NativeWindowGtk : public NativeWidgetGtk, public NativeWindow { virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; virtual void SetWindowBounds(const gfx::Rect& bounds, gfx::NativeWindow other_window) OVERRIDE; - virtual void HideWindow() OVERRIDE; - virtual void Activate() OVERRIDE; - virtual void Deactivate() OVERRIDE; - virtual void Maximize() OVERRIDE; - virtual void Minimize() OVERRIDE; - virtual void Restore() OVERRIDE; - virtual bool IsActive() const OVERRIDE; - virtual bool IsVisible() const OVERRIDE; - virtual bool IsMaximized() const OVERRIDE; - virtual bool IsMinimized() const OVERRIDE; virtual void SetFullscreen(bool fullscreen) OVERRIDE; virtual bool IsFullscreen() const OVERRIDE; - virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE; virtual NonClientFrameView* CreateFrameViewForWindow() OVERRIDE; virtual void UpdateFrameAfterFrameChange() OVERRIDE; - virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; virtual bool ShouldUseNativeFrame() const OVERRIDE; virtual void FrameTypeChanged() OVERRIDE; + // Overridden from NativeWidgetGtk: + virtual void Restore() OVERRIDE; + virtual gboolean OnWindowStateEvent(GtkWidget* widget, + GdkEventWindowState* event) OVERRIDE; + // For the constructor. friend class Window; @@ -94,9 +85,6 @@ class NativeWindowGtk : public NativeWidgetGtk, public NativeWindow { static gboolean CallConfigureEvent(GtkWidget* widget, GdkEventConfigure* event, NativeWindowGtk* window_gtk); - static gboolean CallWindowStateEvent(GtkWidget* widget, - GdkEventWindowState* event, - NativeWindowGtk* window_gtk); // Asks the delegate if any to save the window's location and size. void SaveWindowPosition(); @@ -113,9 +101,6 @@ class NativeWindowGtk : public NativeWidgetGtk, public NativeWindow { // desired implementation before calling |Init|. NonClientView* non_client_view_; - // State of the window, such as fullscreen, hidden... - GdkWindowState window_state_; - // Set to true if the window is in the process of closing. bool window_closed_; |