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

Side by Side Diff: chrome/browser/gtk/standard_menus.h

Issue 20245: Port the Menu class to GTK. (Closed)
Patch Set: Fixes for evanm Created 11 years, 10 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_VIEWS_STANDARD_MENUS_H_
6 #define CHROME_VIEWS_STANDARD_MENUS_H_
7
8 class Menu;
9 class Profile;
10
11 enum MenuItemType {
12 MENU_NORMAL = 0,
13 MENU_CHECKBOX,
14 MENU_SEPARATOR,
15
16 // Speical value to stop processing this MenuCreateMaterial.
17 MENU_END
18 };
19
20 struct MenuCreateMaterial {
21 // This menu item type
22 MenuItemType type;
23
24 // The command id (an IDC_* value)
25 unsigned int id;
26
27 // The label id (an IDS_* value)
28 unsigned int label_id;
29
30 // An argument to GetStringF(menu_label_id, ...). When 0, the value of
31 // menu_label_id is just passed to GetString().
32 unsigned int label_argument;
33
34 // If non-NULL, a pointer to the struct we're supposed to use
35 MenuCreateMaterial* submenu;
36 };
37
38 // Returns the menu construction data structure for the page menu.
39 const MenuCreateMaterial* GetStandardPageMenu();
40
41 // Returns the menu construction data structure for the app menu.
42 const MenuCreateMaterial* GetStandardAppMenu();
43
44 #endif // CHROME_VIEWS_STANDARD_MENUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698