| OLD | NEW |
| 1 // Copyright (c) 2010 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_GTK_GTK_CUSTOM_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_H_ |
| 6 #define CHROME_BROWSER_GTK_GTK_CUSTOM_MENU_H_ | 6 #define CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // GtkCustomMenu is a GtkMenu subclass that can contain, and collaborates with, | 9 // GtkCustomMenu is a GtkMenu subclass that can contain, and collaborates with, |
| 10 // GtkCustomMenuItem instances. GtkCustomMenuItem is a GtkMenuItem that can | 10 // GtkCustomMenuItem instances. GtkCustomMenuItem is a GtkMenuItem that can |
| 11 // have buttons and other normal widgets embeded in it. GtkCustomMenu exists | 11 // have buttons and other normal widgets embeded in it. GtkCustomMenu exists |
| 12 // only to override most of the button/motion/move callback functions so | 12 // only to override most of the button/motion/move callback functions so |
| 13 // that the normal GtkMenu implementation doesn't handle events related to | 13 // that the normal GtkMenu implementation doesn't handle events related to |
| 14 // GtkCustomMenuItem items. | 14 // GtkCustomMenuItem items. |
| 15 // | 15 // |
| 16 // For a more through overview of this system, see the comments in | 16 // For a more through overview of this system, see the comments in |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 struct _GtkCustomMenuClass { | 45 struct _GtkCustomMenuClass { |
| 46 GtkMenuClass parent_class; | 46 GtkMenuClass parent_class; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 GType gtk_custom_menu_get_type(void) G_GNUC_CONST; | 49 GType gtk_custom_menu_get_type(void) G_GNUC_CONST; |
| 50 GtkWidget* gtk_custom_menu_new(); | 50 GtkWidget* gtk_custom_menu_new(); |
| 51 | 51 |
| 52 G_END_DECLS | 52 G_END_DECLS |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_GTK_GTK_CUSTOM_MENU_H_ | 54 #endif // CHROME_BROWSER_UI_GTK_GTK_CUSTOM_MENU_H_ |
| OLD | NEW |