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

Side by Side Diff: chrome/browser/ui/gtk/gtk_custom_menu_item.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
« no previous file with comments | « chrome/browser/ui/gtk/gtk_custom_menu.h ('k') | chrome/browser/ui/gtk/gtk_input_event_box.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CUSTOM_MENU_ITEM_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_ITEM_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_ITEM_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_ITEM_H_
7 #pragma once 7 #pragma once
8 8
9 // GtkCustomMenuItem is a GtkMenuItem subclass that has buttons in it and acts 9 // GtkCustomMenuItem is a GtkMenuItem subclass that has buttons in it and acts
10 // to support this. GtkCustomMenuItems only render properly when put in a 10 // to support this. GtkCustomMenuItems only render properly when put in a
(...skipping 12 matching lines...) Expand all
23 // selected (due to key events and mouse movement) and otherwise acts like a 23 // selected (due to key events and mouse movement) and otherwise acts like a
24 // normal GtkItem. The buttons are only for sizing and rendering; they don't 24 // normal GtkItem. The buttons are only for sizing and rendering; they don't
25 // respond to events. Instead, when the GtkCustomMenuItem is activated by the 25 // respond to events. Instead, when the GtkCustomMenuItem is activated by the
26 // GtkMenu, it uses which button was selected as a signal of what to do. 26 // GtkMenu, it uses which button was selected as a signal of what to do.
27 // 27 //
28 // Users should connect to the "button-pushed" signal to be notified when a 28 // Users should connect to the "button-pushed" signal to be notified when a
29 // button was pushed. We don't go through the normal "activate" signal because 29 // button was pushed. We don't go through the normal "activate" signal because
30 // we need to communicate additional information, namely which button was 30 // we need to communicate additional information, namely which button was
31 // activated. 31 // activated.
32 32
33 #include <gdk/gdk.h>
34 #include <gtk/gtk.h> 33 #include <gtk/gtk.h>
35 34
36 G_BEGIN_DECLS 35 G_BEGIN_DECLS
37 36
38 #define GTK_TYPE_CUSTOM_MENU_ITEM \ 37 #define GTK_TYPE_CUSTOM_MENU_ITEM \
39 (gtk_custom_menu_item_get_type()) 38 (gtk_custom_menu_item_get_type())
40 #define GTK_CUSTOM_MENU_ITEM(obj) \ 39 #define GTK_CUSTOM_MENU_ITEM(obj) \
41 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CUSTOM_MENU_ITEM, \ 40 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CUSTOM_MENU_ITEM, \
42 GtkCustomMenuItem)) 41 GtkCustomMenuItem))
43 #define GTK_CUSTOM_MENU_ITEM_CLASS(klass) \ 42 #define GTK_CUSTOM_MENU_ITEM_CLASS(klass) \
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 GtkCustomMenuItem* menu_item); 131 GtkCustomMenuItem* menu_item);
133 132
134 // Calls |callback| with every button and button-label in the container. 133 // Calls |callback| with every button and button-label in the container.
135 void gtk_custom_menu_item_foreach_button(GtkCustomMenuItem* menu_item, 134 void gtk_custom_menu_item_foreach_button(GtkCustomMenuItem* menu_item,
136 GtkCallback callback, 135 GtkCallback callback,
137 gpointer callback_data); 136 gpointer callback_data);
138 137
139 G_END_DECLS 138 G_END_DECLS
140 139
141 #endif // CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_ITEM_H_ 140 #endif // CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_custom_menu.h ('k') | chrome/browser/ui/gtk/gtk_input_event_box.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698