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

Side by Side Diff: chrome/browser/ui/gtk/gtk_input_event_box.h

Issue 8586044: GTK: Make the gtk port compile with GTK_DISABLE_SINGLE_INCLUDES. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove views/. Not our problem for gtk3 porting. Created 9 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_custom_menu_item.h ('k') | chrome/browser/ui/gtk/gtk_input_event_box.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698