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

Unified Diff: views/window/native_window_gtk.h

Issue 7129022: Move last of event handlers down to NativeWidgetWin/Gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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_delegate.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 88529)
+++ views/window/native_window_gtk.h (working copy)
@@ -9,21 +9,12 @@
#include "base/basictypes.h"
#include "views/widget/native_widget_gtk.h"
#include "views/window/native_window.h"
-#include "views/window/window.h"
-namespace gfx {
-class Point;
-class Size;
-};
-
namespace views {
namespace internal {
class NativeWindowDelegate;
}
-class Client;
-class WindowDelegate;
-
// Window implementation for Gtk.
class NativeWindowGtk : public NativeWidgetGtk, public NativeWindow {
public:
@@ -33,52 +24,18 @@
virtual Window* GetWindow() OVERRIDE;
virtual const Window* GetWindow() const OVERRIDE;
- // Overridden from NativeWidgetGtk:
- virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event);
- virtual gboolean OnConfigureEvent(GtkWidget* widget,
- GdkEventConfigure* event);
- virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event);
- virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation);
- virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event);
-
protected:
- virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
-
// Overridden from NativeWindow:
virtual NativeWidget* AsNativeWidget() OVERRIDE;
virtual const NativeWidget* AsNativeWidget() const OVERRIDE;
- virtual void BecomeModal() OVERRIDE;
- // Overridden from NativeWidgetGtk:
- virtual gboolean OnWindowStateEvent(GtkWidget* widget,
- GdkEventWindowState* event) OVERRIDE;
-
// For the constructor.
friend class Window;
private:
- static gboolean CallConfigureEvent(GtkWidget* widget,
- GdkEventConfigure* event,
- NativeWindowGtk* window_gtk);
-
- // Asks the delegate if any to save the window's location and size.
- void SaveWindowPosition();
-
// A delegate implementation that handles events received here.
internal::NativeWindowDelegate* delegate_;
- // Our window delegate.
- WindowDelegate* window_delegate_;
-
- // The View that provides the non-client area of the window (title bar,
- // window controls, sizing borders etc). To use an implementation other than
- // the default, this class must be subclassed and this value set to the
- // desired implementation before calling |Init|.
- NonClientView* non_client_view_;
-
- // Set to true if the window is in the process of closing.
- bool window_closed_;
-
DISALLOW_COPY_AND_ASSIGN(NativeWindowGtk);
};
« no previous file with comments | « views/window/native_window_delegate.h ('k') | views/window/native_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698