| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/gtk/gtk_input_event_box.h" | 5 #include "chrome/browser/ui/gtk/gtk_input_event_box.h" |
| 6 | 6 |
| 7 #include <gdk/gdkwindow.h> | 7 #include <gdk/gdk.h> |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <gtk/gtkwidget.h> | |
| 10 #include <gtk/gtkbin.h> | |
| 11 | 9 |
| 12 G_BEGIN_DECLS | 10 G_BEGIN_DECLS |
| 13 | 11 |
| 14 #define GTK_INPUT_EVENT_BOX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), \ | 12 #define GTK_INPUT_EVENT_BOX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), \ |
| 15 GTK_TYPE_INPUT_EVENT_BOX, \ | 13 GTK_TYPE_INPUT_EVENT_BOX, \ |
| 16 GtkInputEventBoxPrivate)) | 14 GtkInputEventBoxPrivate)) |
| 17 | 15 |
| 18 typedef struct _GtkInputEventBoxPrivate GtkInputEventBoxPrivate; | 16 typedef struct _GtkInputEventBoxPrivate GtkInputEventBoxPrivate; |
| 19 | 17 |
| 20 struct _GtkInputEventBoxPrivate { | 18 struct _GtkInputEventBoxPrivate { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 148 } |
| 151 | 149 |
| 152 GdkWindow* gtk_input_event_box_get_window(GtkInputEventBox* widget) { | 150 GdkWindow* gtk_input_event_box_get_window(GtkInputEventBox* widget) { |
| 153 g_return_val_if_fail(GTK_IS_INPUT_EVENT_BOX(widget), NULL); | 151 g_return_val_if_fail(GTK_IS_INPUT_EVENT_BOX(widget), NULL); |
| 154 | 152 |
| 155 GtkInputEventBoxPrivate* priv = GTK_INPUT_EVENT_BOX_GET_PRIVATE(widget); | 153 GtkInputEventBoxPrivate* priv = GTK_INPUT_EVENT_BOX_GET_PRIVATE(widget); |
| 156 return priv->event_window; | 154 return priv->event_window; |
| 157 } | 155 } |
| 158 | 156 |
| 159 G_END_DECLS | 157 G_END_DECLS |
| OLD | NEW |