| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_STANDARD_MENUS_H_ | 5 #ifndef CHROME_BROWSER_GTK_STANDARD_MENUS_H_ |
| 6 #define CHROME_BROWSER_GTK_STANDARD_MENUS_H_ | 6 #define CHROME_BROWSER_GTK_STANDARD_MENUS_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/gtk/menu_gtk.h" |
| 9 |
| 8 class Menu; | 10 class Menu; |
| 9 class MenuGtk; | |
| 10 class Profile; | 11 class Profile; |
| 11 | 12 |
| 12 enum MenuItemType { | 13 enum MenuItemType { |
| 13 MENU_NORMAL = 0, | 14 MENU_NORMAL = 0, |
| 14 MENU_CHECKBOX, | 15 MENU_CHECKBOX, |
| 15 MENU_SEPARATOR, | 16 MENU_SEPARATOR, |
| 16 MENU_RADIO, | 17 MENU_RADIO, |
| 17 | 18 |
| 18 // Speical value to stop processing this MenuCreateMaterial. | 19 // Speical value to stop processing this MenuCreateMaterial. |
| 19 MENU_END | 20 MENU_END |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 // the same key combination may be handled by GTK. Windows handles this in | 48 // the same key combination may be handled by GTK. Windows handles this in |
| 48 // toolbar_view.cc::GetAcceleratorInfo(). | 49 // toolbar_view.cc::GetAcceleratorInfo(). |
| 49 bool only_show; | 50 bool only_show; |
| 50 | 51 |
| 51 // If non-NULL, specifies a custom submenu to be used. | 52 // If non-NULL, specifies a custom submenu to be used. |
| 52 // The menu lifetime must at least match this menu's lifetime. | 53 // The menu lifetime must at least match this menu's lifetime. |
| 53 MenuGtk* custom_submenu; | 54 MenuGtk* custom_submenu; |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 // Returns the menu construction data structure for the page menu. | 57 // Returns the menu construction data structure for the page menu. |
| 57 const MenuCreateMaterial* GetStandardPageMenu(MenuGtk* encodings_menu); | 58 // The parameters are used to construct the encodings menu. |
| 59 const MenuCreateMaterial* GetStandardPageMenu(Profile* profile, |
| 60 MenuGtk::Delegate* delegate); |
| 58 | 61 |
| 59 // Returns the menu construction data structure for the app menu. | 62 // Returns the menu construction data structure for the app menu. |
| 60 const MenuCreateMaterial* GetStandardAppMenu(); | 63 const MenuCreateMaterial* GetStandardAppMenu(); |
| 61 | 64 |
| 62 #endif // CHROME_BROWSER_GTK_STANDARD_MENUS_H_ | 65 #endif // CHROME_BROWSER_GTK_STANDARD_MENUS_H_ |
| OLD | NEW |