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

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

Issue 164280: First step to create application shortcuts on Linux. (Closed)
Patch Set: now tested Created 11 years, 4 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
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #include "chrome/browser/gtk/standard_menus.h" 5 #include "chrome/browser/gtk/standard_menus.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 19 matching lines...) Expand all
30 { MENU_NORMAL, IDC_VIEW_SOURCE, IDS_VIEW_SOURCE, 0, NULL, 30 { MENU_NORMAL, IDC_VIEW_SOURCE, IDS_VIEW_SOURCE, 0, NULL,
31 GDK_u, GDK_CONTROL_MASK }, 31 GDK_u, GDK_CONTROL_MASK },
32 { MENU_NORMAL, IDC_DEV_TOOLS, IDS_DEV_TOOLS, 0, NULL, 32 { MENU_NORMAL, IDC_DEV_TOOLS, IDS_DEV_TOOLS, 0, NULL,
33 GDK_j, GDK_CONTROL_MASK | GDK_SHIFT_MASK }, 33 GDK_j, GDK_CONTROL_MASK | GDK_SHIFT_MASK },
34 { MENU_NORMAL, IDC_TASK_MANAGER, IDS_TASK_MANAGER, 0, NULL, 34 { MENU_NORMAL, IDC_TASK_MANAGER, IDS_TASK_MANAGER, 0, NULL,
35 GDK_Escape, GDK_SHIFT_MASK }, 35 GDK_Escape, GDK_SHIFT_MASK },
36 { MENU_END } 36 { MENU_END }
37 }; 37 };
38 38
39 struct MenuCreateMaterial standard_page_menu_materials[] = { 39 struct MenuCreateMaterial standard_page_menu_materials[] = {
40 // The Create App Shortcuts menu item hasn't been implemented yet. 40 { MENU_NORMAL, IDC_CREATE_SHORTCUTS, IDS_CREATE_SHORTCUTS },
41 // Remove it until it is. 41 { MENU_SEPARATOR },
42 // http://code.google.com/p/chromium/issues/detail?id=17251
43 // { MENU_NORMAL, IDC_CREATE_SHORTCUTS, IDS_CREATE_SHORTCUTS },
44 // { MENU_SEPARATOR },
45
46 { MENU_NORMAL, IDC_CUT, IDS_CUT, 0, NULL, GDK_x, GDK_CONTROL_MASK, true }, 42 { MENU_NORMAL, IDC_CUT, IDS_CUT, 0, NULL, GDK_x, GDK_CONTROL_MASK, true },
47 { MENU_NORMAL, IDC_COPY, IDS_COPY, 0, NULL, GDK_c, GDK_CONTROL_MASK, true }, 43 { MENU_NORMAL, IDC_COPY, IDS_COPY, 0, NULL, GDK_c, GDK_CONTROL_MASK, true },
48 { MENU_NORMAL, IDC_PASTE, IDS_PASTE, 0, NULL, GDK_v, GDK_CONTROL_MASK, true }, 44 { MENU_NORMAL, IDC_PASTE, IDS_PASTE, 0, NULL, GDK_v, GDK_CONTROL_MASK, true },
49 { MENU_SEPARATOR }, 45 { MENU_SEPARATOR },
50 { MENU_NORMAL, IDC_FIND, IDS_FIND, 0, NULL, GDK_f, GDK_CONTROL_MASK }, 46 { MENU_NORMAL, IDC_FIND, IDS_FIND, 0, NULL, GDK_f, GDK_CONTROL_MASK },
51 { MENU_NORMAL, IDC_SAVE_PAGE, IDS_SAVE_PAGE, 0, NULL, GDK_s, 47 { MENU_NORMAL, IDC_SAVE_PAGE, IDS_SAVE_PAGE, 0, NULL, GDK_s,
52 GDK_CONTROL_MASK }, 48 GDK_CONTROL_MASK },
53 { MENU_NORMAL, IDC_PRINT, IDS_PRINT, 0, NULL, GDK_p, GDK_CONTROL_MASK }, 49 { MENU_NORMAL, IDC_PRINT, IDS_PRINT, 0, NULL, GDK_p, GDK_CONTROL_MASK },
54 { MENU_SEPARATOR }, 50 { MENU_SEPARATOR },
55 { MENU_NORMAL, IDC_ZOOM_MENU, IDS_ZOOM_MENU, 0, zoom_menu_materials }, 51 { MENU_NORMAL, IDC_ZOOM_MENU, IDS_ZOOM_MENU, 0, zoom_menu_materials },
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 break; 108 break;
113 } 109 }
114 } 110 }
115 111
116 return standard_page_menu_materials; 112 return standard_page_menu_materials;
117 } 113 }
118 114
119 const MenuCreateMaterial* GetStandardAppMenu() { 115 const MenuCreateMaterial* GetStandardAppMenu() {
120 return standard_app_menu_materials; 116 return standard_app_menu_materials;
121 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698