| 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 #ifndef CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_ | 6 #define CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdk.h> | |
| 10 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 11 | 10 |
| 12 // GtkInputEventBox is like GtkEventBox, but with the following differences: | 11 // GtkInputEventBox is like GtkEventBox, but with the following differences: |
| 13 // 1. Only supports input (like gtk_event_box_set_visible_window(foo, FALSE). | 12 // 1. Only supports input (like gtk_event_box_set_visible_window(foo, FALSE). |
| 14 // 2. Provides a method to get the GdkWindow (gtk_input_event_box_get_window). | 13 // 2. Provides a method to get the GdkWindow (gtk_input_event_box_get_window). |
| 15 // (The GdkWindow created by GtkEventBox cannot be retrieved unless you use it | 14 // (The GdkWindow created by GtkEventBox cannot be retrieved unless you use it |
| 16 // in visible mode.) | 15 // in visible mode.) |
| 17 // TODO(mattm): Get rid of this class someday if Gtk adds a way to get the | 16 // TODO(mattm): Get rid of this class someday if Gtk adds a way to get the |
| 18 // GtkEventBox event_window (https://bugzilla.gnome.org/show_bug.cgi?id=657380). | 17 // GtkEventBox event_window (https://bugzilla.gnome.org/show_bug.cgi?id=657380). |
| 19 | 18 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 50 GType gtk_input_event_box_get_type(); | 49 GType gtk_input_event_box_get_type(); |
| 51 GtkWidget* gtk_input_event_box_new(); | 50 GtkWidget* gtk_input_event_box_new(); |
| 52 | 51 |
| 53 // Get the GdkWindow |widget| uses for handling input events. Will be NULL if | 52 // Get the GdkWindow |widget| uses for handling input events. Will be NULL if |
| 54 // the widget has not been realized yet. | 53 // the widget has not been realized yet. |
| 55 GdkWindow* gtk_input_event_box_get_window(GtkInputEventBox* widget); | 54 GdkWindow* gtk_input_event_box_get_window(GtkInputEventBox* widget); |
| 56 | 55 |
| 57 G_END_DECLS | 56 G_END_DECLS |
| 58 | 57 |
| 59 #endif // CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_ | 58 #endif // CHROME_BROWSER_UI_GTK_GTK_INPUT_EVENT_BOX_H_ |
| OLD | NEW |