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

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

Issue 159722: GTK: Ctrl+shift+q for quit (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 GDK_j, GDK_CONTROL_MASK }, 91 GDK_j, GDK_CONTROL_MASK },
92 { MENU_SEPARATOR }, 92 { MENU_SEPARATOR },
93 // TODO(erg): P13N stuff goes here as soon as they get IDS strings. 93 // TODO(erg): P13N stuff goes here as soon as they get IDS strings.
94 { MENU_NORMAL, IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA }, 94 { MENU_NORMAL, IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA },
95 { MENU_NORMAL, IDC_IMPORT_SETTINGS, IDS_IMPORT_SETTINGS }, 95 { MENU_NORMAL, IDC_IMPORT_SETTINGS, IDS_IMPORT_SETTINGS },
96 { MENU_SEPARATOR }, 96 { MENU_SEPARATOR },
97 { MENU_NORMAL, IDC_OPTIONS, IDS_OPTIONS, IDS_PRODUCT_NAME }, 97 { MENU_NORMAL, IDC_OPTIONS, IDS_OPTIONS, IDS_PRODUCT_NAME },
98 { MENU_NORMAL, IDC_ABOUT, IDS_ABOUT, IDS_PRODUCT_NAME }, 98 { MENU_NORMAL, IDC_ABOUT, IDS_ABOUT, IDS_PRODUCT_NAME },
99 { MENU_NORMAL, IDC_HELP_PAGE, IDS_HELP_PAGE, 0, NULL, GDK_F1 }, 99 { MENU_NORMAL, IDC_HELP_PAGE, IDS_HELP_PAGE, 0, NULL, GDK_F1 },
100 { MENU_SEPARATOR }, 100 { MENU_SEPARATOR },
101 { MENU_NORMAL, IDC_EXIT, IDS_EXIT, 0, NULL, GDK_q, GDK_CONTROL_MASK }, 101 { MENU_NORMAL, IDC_EXIT, IDS_EXIT, 0, NULL, GDK_q,
102 GDK_CONTROL_MASK | GDK_SHIFT_MASK },
102 { MENU_END } 103 { MENU_END }
103 }; 104 };
104 105
105 } // namespace 106 } // namespace
106 107
107 108
108 const MenuCreateMaterial* GetStandardPageMenu(MenuGtk* encodings_menu) { 109 const MenuCreateMaterial* GetStandardPageMenu(MenuGtk* encodings_menu) {
109 // Find the encoding menu and attach this menu. 110 // Find the encoding menu and attach this menu.
110 for (MenuCreateMaterial* entry = standard_page_menu_materials; 111 for (MenuCreateMaterial* entry = standard_page_menu_materials;
111 entry->type != MENU_END; ++entry) { 112 entry->type != MENU_END; ++entry) {
112 if (entry->id == IDC_ENCODING_MENU) { 113 if (entry->id == IDC_ENCODING_MENU) {
113 entry->custom_submenu = encodings_menu; 114 entry->custom_submenu = encodings_menu;
114 break; 115 break;
115 } 116 }
116 } 117 }
117 118
118 return standard_page_menu_materials; 119 return standard_page_menu_materials;
119 } 120 }
120 121
121 const MenuCreateMaterial* GetStandardAppMenu() { 122 const MenuCreateMaterial* GetStandardAppMenu() {
122 return standard_app_menu_materials; 123 return standard_app_menu_materials;
123 } 124 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698