Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: views/window/native_window_gtk.h

Issue 7075019: Move a bunch of functions from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/window/native_window.h ('k') | views/window/native_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/native_window_gtk.h
===================================================================
--- views/window/native_window_gtk.h (revision 87016)
+++ views/window/native_window_gtk.h (working copy)
@@ -39,8 +39,6 @@
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 @@
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 @@
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 @@
// 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_;
« no previous file with comments | « views/window/native_window.h ('k') | views/window/native_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698