| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VIEWS_WINDOW_WINDOW_GTK_H_ | 5 #ifndef VIEWS_WINDOW_WINDOW_GTK_H_ |
| 6 #define VIEWS_WINDOW_WINDOW_GTK_H_ | 6 #define VIEWS_WINDOW_WINDOW_GTK_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "views/widget/widget_gtk.h" | 9 #include "views/widget/widget_gtk.h" |
| 10 #include "views/window/window.h" | 10 #include "views/window/window.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Overridden from WidgetGtk: | 62 // Overridden from WidgetGtk: |
| 63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); | 63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); |
| 64 virtual gboolean OnConfigureEvent(GtkWidget* widget, | 64 virtual gboolean OnConfigureEvent(GtkWidget* widget, |
| 65 GdkEventConfigure* event); | 65 GdkEventConfigure* event); |
| 66 virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event); | 66 virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event); |
| 67 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); | 67 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); |
| 68 virtual gboolean OnWindowStateEvent(GtkWidget* widget, | 68 virtual gboolean OnWindowStateEvent(GtkWidget* widget, |
| 69 GdkEventWindowState* event); | 69 GdkEventWindowState* event); |
| 70 virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event); | 70 virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event); |
| 71 virtual void SetInitialFocus(); |
| 71 | 72 |
| 72 // Gets the WindowGtk in the userdata section of the widget. | 73 // Gets the WindowGtk in the userdata section of the widget. |
| 73 static WindowGtk* GetWindowForNative(GtkWidget* widget); | 74 static WindowGtk* GetWindowForNative(GtkWidget* widget); |
| 74 | 75 |
| 75 // Sets the WindowGtk in the userdata section of the widget. | 76 // Sets the WindowGtk in the userdata section of the widget. |
| 76 static void SetWindowForNative(GtkWidget* widget, WindowGtk* window); | 77 static void SetWindowForNative(GtkWidget* widget, WindowGtk* window); |
| 77 | 78 |
| 78 protected: | 79 protected: |
| 79 // For the constructor. | 80 // For the constructor. |
| 80 friend class Window; | 81 friend class Window; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 121 |
| 121 // Set to true if the window is in the process of closing. | 122 // Set to true if the window is in the process of closing. |
| 122 bool window_closed_; | 123 bool window_closed_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(WindowGtk); | 125 DISALLOW_COPY_AND_ASSIGN(WindowGtk); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace views | 128 } // namespace views |
| 128 | 129 |
| 129 #endif // VIEWS_WINDOW_WINDOW_GTK_H_ | 130 #endif // VIEWS_WINDOW_WINDOW_GTK_H_ |
| OLD | NEW |