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_WIDGET_WIDGET_GTK_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_ |
6 #define VIEWS_WIDGET_WIDGET_GTK_H_ | 6 #define VIEWS_WIDGET_WIDGET_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "app/active_window_watcher_x.h" | 10 #include "app/active_window_watcher_x.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 return true; | 216 return true; |
217 } | 217 } |
218 return false; | 218 return false; |
219 } | 219 } |
220 | 220 |
221 // Returns the view::Event::flags for a GdkEventButton. | 221 // Returns the view::Event::flags for a GdkEventButton. |
222 static int GetFlagsForEventButton(const GdkEventButton& event); | 222 static int GetFlagsForEventButton(const GdkEventButton& event); |
223 | 223 |
224 // Event handlers: | 224 // Event handlers: |
225 CHROMEGTK_CALLBACK_1(WidgetGtk, gboolean, OnButtonPress, GdkEventButton*); | 225 CHROMEGTK_CALLBACK_1(WidgetGtk, gboolean, OnButtonPress, GdkEventButton*); |
| 226 CHROMEGTK_CALLBACK_1(WidgetGtk, void, OnSizeRequest, GtkRequisition*); |
226 CHROMEGTK_CALLBACK_1(WidgetGtk, void, OnSizeAllocate, GtkAllocation*); | 227 CHROMEGTK_CALLBACK_1(WidgetGtk, void, OnSizeAllocate, GtkAllocation*); |
227 CHROMEGTK_CALLBACK_1(WidgetGtk, gboolean, OnPaint, GdkEventExpose*); | 228 CHROMEGTK_CALLBACK_1(WidgetGtk, gboolean, OnPaint, GdkEventExpose*); |
228 CHROMEGTK_CALLBACK_4(WidgetGtk, void, OnDragDataGet, | 229 CHROMEGTK_CALLBACK_4(WidgetGtk, void, OnDragDataGet, |
229 GdkDragContext*, GtkSelectionData*, guint, guint); | 230 GdkDragContext*, GtkSelectionData*, guint, guint); |
230 CHROMEGTK_CALLBACK_6(WidgetGtk, void, OnDragDataReceived, | 231 CHROMEGTK_CALLBACK_6(WidgetGtk, void, OnDragDataReceived, |
231 GdkDragContext*, gint, gint, GtkSelectionData*, | 232 GdkDragContext*, gint, gint, GtkSelectionData*, |
232 guint, guint); | 233 guint, guint); |
233 CHROMEGTK_CALLBACK_4(WidgetGtk, gboolean, OnDragDrop, | 234 CHROMEGTK_CALLBACK_4(WidgetGtk, gboolean, OnDragDrop, |
234 GdkDragContext*, gint, gint, guint); | 235 GdkDragContext*, gint, gint, guint); |
235 CHROMEGTK_CALLBACK_1(WidgetGtk, void, OnDragEnd, GdkDragContext*); | 236 CHROMEGTK_CALLBACK_1(WidgetGtk, void, OnDragEnd, GdkDragContext*); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 // If true, we enable the content widget's double buffering. | 434 // If true, we enable the content widget's double buffering. |
434 // This is false by default. | 435 // This is false by default. |
435 bool is_double_buffered_; | 436 bool is_double_buffered_; |
436 | 437 |
437 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 438 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
438 }; | 439 }; |
439 | 440 |
440 } // namespace views | 441 } // namespace views |
441 | 442 |
442 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 443 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
OLD | NEW |