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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/standard_menus.h
diff --git a/chrome/browser/gtk/standard_menus.h b/chrome/browser/gtk/standard_menus.h
new file mode 100644
index 0000000000000000000000000000000000000000..a26643e8e36f26bf22f5b68c5a7db60a3dcaf109
--- /dev/null
+++ b/chrome/browser/gtk/standard_menus.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_VIEWS_STANDARD_MENUS_H_
+#define CHROME_VIEWS_STANDARD_MENUS_H_
+
+class Menu;
+class Profile;
+
+enum MenuItemType {
+ MENU_NORMAL = 0,
+ MENU_CHECKBOX,
+ MENU_SEPARATOR,
+
+ // Speical value to stop processing this MenuCreateMaterial.
+ MENU_END
+};
+
+struct MenuCreateMaterial {
+ // This menu item type
+ MenuItemType type;
+
+ // The command id (an IDC_* value)
+ unsigned int id;
+
+ // The label id (an IDS_* value)
+ unsigned int label_id;
+
+ // An argument to GetStringF(menu_label_id, ...). When 0, the value of
+ // menu_label_id is just passed to GetString().
+ unsigned int label_argument;
+
+ // If non-NULL, a pointer to the struct we're supposed to use
+ MenuCreateMaterial* submenu;
+};
+
+// Returns the menu construction data structure for the page menu.
+const MenuCreateMaterial* GetStandardPageMenu();
+
+// Returns the menu construction data structure for the app menu.
+const MenuCreateMaterial* GetStandardAppMenu();
+
+#endif // CHROME_VIEWS_STANDARD_MENUS_H_

Powered by Google App Engine
This is Rietveld 408576698