OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
Ben Goodger (Google)
2010/11/09 01:18:47
Would it make sense for this file to live in src/c
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // This file lists all the command IDs understood by e.g. the browser. | |
6 // It is used by Windows RC files, Mac NIB files, and other platforms too. | |
7 | |
8 #define IDC_View 4000 | |
9 #define IDC_ViewHost 4001 | |
10 #define IDC_Plugin 4002 | |
11 #define IDC_PluginHost 4003 | |
12 #define IDC_NPObject 4004 | |
13 #define IDC_PluginProcess 4005 | |
14 #define IDC_PluginProcessHost 4006 | |
15 #define IDC_ViewAll 4007 | |
16 #define IDC_ViewNone 4008 | |
17 #define IDC_ViewHostAll 4009 | |
18 #define IDC_ViewHostNone 4010 | |
19 #define IDC_PluginAll 4011 | |
20 #define IDC_PluginNone 4012 | |
21 #define IDC_NPObjectAll 4013 | |
22 #define IDC_NPObjectNone 4014 | |
23 #define IDC_PluginHostAll 4015 | |
24 #define IDC_PluginHostNone 4016 | |
25 #define IDC_DevToolsAgent 4017 | |
26 #define IDC_DevToolsClient 4018 | |
27 | |
28 // NOTE: Within each of the following sections, the IDs are ordered roughly by | |
29 // how they appear in the GUI/menus (left to right, top to bottom, etc.). | |
30 | |
31 // Navigation commands | |
32 // TODO: Reorder to be in visible order; collapse holes | |
33 #define IDC_BACK 33000 | |
34 #define IDC_FORWARD 33001 | |
35 #define IDC_RELOAD 33002 | |
36 #define IDC_HOME 33003 | |
37 #define IDC_OPEN_CURRENT_URL 33004 | |
38 #define IDC_STOP 33006 | |
39 #define IDC_RELOAD_IGNORING_CACHE 33007 | |
40 | |
41 // Window management commands | |
42 #define IDC_NEW_WINDOW 34000 | |
43 #define IDC_NEW_INCOGNITO_WINDOW 34001 | |
44 #define IDC_CLOSE_WINDOW 34012 | |
45 #define IDC_ALWAYS_ON_TOP 34013 | |
46 #define IDC_NEW_TAB 34014 | |
47 #define IDC_CLOSE_TAB 34015 | |
48 #define IDC_SELECT_NEXT_TAB 34016 | |
49 #define IDC_SELECT_PREVIOUS_TAB 34017 | |
50 #define IDC_SELECT_TAB_0 34018 | |
51 #define IDC_SELECT_TAB_1 34019 | |
52 #define IDC_SELECT_TAB_2 34020 | |
53 #define IDC_SELECT_TAB_3 34021 | |
54 #define IDC_SELECT_TAB_4 34022 | |
55 #define IDC_SELECT_TAB_5 34023 | |
56 #define IDC_SELECT_TAB_6 34024 | |
57 #define IDC_SELECT_TAB_7 34025 | |
58 #define IDC_SELECT_LAST_TAB 34026 | |
59 #define IDC_DUPLICATE_TAB 34027 | |
60 #define IDC_RESTORE_TAB 34028 | |
61 #define IDC_SHOW_AS_TAB 34029 | |
62 #define IDC_FULLSCREEN 34030 | |
63 #define IDC_EXIT 34031 | |
64 #define IDC_MOVE_TAB_NEXT 34032 | |
65 #define IDC_MOVE_TAB_PREVIOUS 34033 | |
66 #define IDC_TOGGLE_VERTICAL_TABS 34034 | |
67 #define IDC_SEARCH 34035 | |
68 #define IDC_TABPOSE 34036 | |
69 | |
70 // Page-related commands | |
71 #define IDC_BOOKMARK_PAGE 35000 | |
72 #define IDC_BOOKMARK_ALL_TABS 35001 | |
73 #define IDC_VIEW_SOURCE 35002 | |
74 #define IDC_PRINT 35003 | |
75 #define IDC_SAVE_PAGE 35004 | |
76 #define IDC_ENCODING_MENU 35005 | |
77 #define IDC_EMAIL_PAGE_LOCATION 35006 | |
78 | |
79 // When adding a new encoding to this list, be sure to append it to the | |
80 // EncodingMenuController::kValidEncodingIds array in | |
81 // encoding_menu_controller.cc. | |
82 #define IDC_ENCODING_AUTO_DETECT 35500 | |
83 #define IDC_ENCODING_UTF8 35501 | |
84 #define IDC_ENCODING_UTF16LE 35502 | |
85 #define IDC_ENCODING_ISO88591 35503 | |
86 #define IDC_ENCODING_WINDOWS1252 35504 | |
87 #define IDC_ENCODING_GBK 35505 | |
88 #define IDC_ENCODING_GB18030 35506 | |
89 #define IDC_ENCODING_BIG5 35507 | |
90 #define IDC_ENCODING_BIG5HKSCS 35508 | |
91 #define IDC_ENCODING_KOREAN 35509 | |
92 #define IDC_ENCODING_SHIFTJIS 35510 | |
93 #define IDC_ENCODING_ISO2022JP 35511 | |
94 #define IDC_ENCODING_EUCJP 35512 | |
95 #define IDC_ENCODING_THAI 35513 | |
96 #define IDC_ENCODING_ISO885915 35514 | |
97 #define IDC_ENCODING_MACINTOSH 35515 | |
98 #define IDC_ENCODING_ISO88592 35516 | |
99 #define IDC_ENCODING_WINDOWS1250 35517 | |
100 #define IDC_ENCODING_ISO88595 35518 | |
101 #define IDC_ENCODING_WINDOWS1251 35519 | |
102 #define IDC_ENCODING_KOI8R 35520 | |
103 #define IDC_ENCODING_KOI8U 35521 | |
104 #define IDC_ENCODING_ISO88597 35522 | |
105 #define IDC_ENCODING_WINDOWS1253 35523 | |
106 #define IDC_ENCODING_ISO88594 35524 | |
107 #define IDC_ENCODING_ISO885913 35525 | |
108 #define IDC_ENCODING_WINDOWS1257 35526 | |
109 #define IDC_ENCODING_ISO88593 35527 | |
110 #define IDC_ENCODING_ISO885910 35528 | |
111 #define IDC_ENCODING_ISO885914 35529 | |
112 #define IDC_ENCODING_ISO885916 35530 | |
113 #define IDC_ENCODING_WINDOWS1254 35531 | |
114 #define IDC_ENCODING_ISO88596 35532 | |
115 #define IDC_ENCODING_WINDOWS1256 35533 | |
116 #define IDC_ENCODING_ISO88598 35534 | |
117 #define IDC_ENCODING_WINDOWS1255 35535 | |
118 #define IDC_ENCODING_WINDOWS1258 35536 | |
119 #define IDC_ENCODING_ISO88598I 35537 | |
120 | |
121 // Clipboard commands | |
122 #define IDC_CUT 36000 | |
123 #define IDC_COPY 36001 | |
124 #define IDC_COPY_URL 36002 | |
125 #define IDC_PASTE 36003 | |
126 #define IDC_EDIT_MENU 36004 | |
127 | |
128 // Find-in-page | |
129 #define IDC_FIND 37000 | |
130 #define IDC_FIND_NEXT 37001 | |
131 #define IDC_FIND_PREVIOUS 37002 | |
132 | |
133 // Zoom | |
134 #define IDC_ZOOM_MENU 38000 | |
135 #define IDC_ZOOM_PLUS 38001 | |
136 #define IDC_ZOOM_NORMAL 38002 | |
137 #define IDC_ZOOM_MINUS 38003 | |
138 #define IDC_ZOOM_PERCENT_DISPLAY 38004 | |
139 | |
140 // Focus various bits of UI | |
141 #define IDC_FOCUS_TOOLBAR 39000 | |
142 #define IDC_FOCUS_LOCATION 39001 | |
143 #define IDC_FOCUS_SEARCH 39002 | |
144 #define IDC_FOCUS_MENU_BAR 39003 | |
145 #define IDC_FOCUS_NEXT_PANE 39004 | |
146 #define IDC_FOCUS_PREVIOUS_PANE 39005 | |
147 #define IDC_FOCUS_BOOKMARKS 39006 | |
148 #define IDC_FOCUS_CHROMEOS_STATUS 39007 | |
149 | |
150 // Show various bits of UI | |
151 #define IDC_OPEN_FILE 40000 | |
152 #define IDC_CREATE_SHORTCUTS 40001 | |
153 #define IDC_DEVELOPER_MENU 40002 | |
154 #define IDC_DEV_TOOLS 40003 | |
155 #define IDC_DEV_TOOLS_CONSOLE 40004 | |
156 #define IDC_TASK_MANAGER 40005 | |
157 #define IDC_REPORT_BUG 40008 | |
158 #define IDC_SHOW_BOOKMARK_BAR 40009 | |
159 #define IDC_SHOW_HISTORY 40010 | |
160 #define IDC_SHOW_BOOKMARK_MANAGER 40011 | |
161 #define IDC_SHOW_DOWNLOADS 40012 | |
162 #define IDC_CLEAR_BROWSING_DATA 40013 | |
163 #define IDC_IMPORT_SETTINGS 40014 | |
164 #define IDC_OPTIONS 40015 | |
165 #define IDC_EDIT_SEARCH_ENGINES 40016 | |
166 #define IDC_VIEW_PASSWORDS 40017 | |
167 #define IDC_ABOUT 40018 | |
168 #define IDC_HELP_PAGE 40019 | |
169 #define IDC_SHOW_APP_MENU 40020 | |
170 #define IDC_MANAGE_EXTENSIONS 40022 | |
171 #define IDC_AUTOFILL_DEFAULT 40023 | |
172 #define IDC_DEV_TOOLS_INSPECT 40025 | |
173 #define IDC_UPGRADE_DIALOG 40026 | |
174 #define IDC_VIEW_INCOMPATIBILITIES 40027 | |
175 | |
176 // Spell-check | |
177 // Insert any additional suggestions before _LAST; these have to be consecutive. | |
178 #define IDC_SPELLCHECK_SUGGESTION_0 41000 | |
179 #define IDC_SPELLCHECK_SUGGESTION_1 41001 | |
180 #define IDC_SPELLCHECK_SUGGESTION_2 41002 | |
181 #define IDC_SPELLCHECK_SUGGESTION_3 41003 | |
182 #define IDC_SPELLCHECK_SUGGESTION_4 41004 | |
183 #define IDC_SPELLCHECK_SUGGESTION_LAST IDC_SPELLCHECK_SUGGESTION_4 | |
184 #define IDC_SPELLCHECK_MENU 41005 | |
185 // Language entries are inserted using autogenerated values between | |
186 // [_FIRST, _LAST). | |
187 #define IDC_SPELLCHECK_LANGUAGES_FIRST 41006 | |
188 #define IDC_SPELLCHECK_LANGUAGES_LAST 41106 | |
189 #define IDC_CHECK_SPELLING_OF_THIS_FIELD 41107 | |
190 #define IDC_SYNC_BOOKMARKS 41108 | |
191 #define IDC_SPELLPANEL_TOGGLE 41109 | |
192 #define IDC_SPELLCHECK_ADD_TO_DICTIONARY 41110 | |
193 | |
194 // Writing direction | |
195 #define IDC_WRITING_DIRECTION_MENU 41120 // OSX only | |
196 #define IDC_WRITING_DIRECTION_DEFAULT 41121 // OSX only | |
197 #define IDC_WRITING_DIRECTION_LTR 41122 // OSX only | |
198 #define IDC_WRITING_DIRECTION_RTL 41123 // OSX only | |
199 | |
200 // Remoting | |
201 #define IDC_REMOTING_SETUP 41140 | |
202 | |
203 // Translate | |
204 #define IDC_TRANSLATE_OPTIONS_ALWAYS 42000 | |
205 #define IDC_TRANSLATE_OPTIONS_NEVER_TRANSLATE_LANG 42001 | |
206 #define IDC_TRANSLATE_OPTIONS_NEVER_TRANSLATE_SITE 42002 | |
207 #define IDC_TRANSLATE_REPORT_BAD_LANGUAGE_DETECTION 42003 | |
208 #define IDC_TRANSLATE_OPTIONS_ABOUT 42004 | |
209 #define IDC_TRANSLATE_ORIGINAL_LANGUAGE_BASE 42100 | |
210 #define IDC_TRANSLATE_TARGET_LANGUAGE_BASE 42400 | |
211 | |
212 // Identifiers for platform-specific items. | |
213 // Placed in a common file to help insure they never collide. | |
214 #define IDC_BOOKMARK_MENU 43000 // OSX only | |
215 #define IDC_VIEW_MENU 44000 // OSX only | |
216 #define IDC_SYSTEM_OPTIONS 45000 // ChromeOS only | |
217 #define IDC_INTERNET_OPTIONS 45100 // ChromeOS only | |
218 #define IDC_LANGUAGE_OPTIONS 45200 // ChromeOS only | |
219 #define IDC_HISTORY_MENU 46000 // OSX only | |
220 #define IDC_INPUT_METHODS_MENU 46300 // Linux only | |
221 | |
222 // Custom context menu entries | |
223 #define IDC_CONTENT_CONTEXT_CUSTOM_FIRST 47000 | |
224 #define IDC_CONTENT_CONTEXT_CUSTOM_LAST 48000 | |
225 | |
226 // Context menu items added by extensions. | |
227 #define IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST 49000 | |
228 #define IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST 50000 | |
229 | |
230 // Context menu items in the render view. | |
231 // Link items. | |
232 #define IDC_CONTENT_CONTEXT_OPENLINKNEWTAB 50100 | |
233 #define IDC_CONTENT_CONTEXT_OPENLINKNEWWINDOW 50101 | |
234 #define IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD 50102 | |
235 #define IDC_CONTENT_CONTEXT_SAVELINKAS 50103 | |
236 #define IDC_CONTENT_CONTEXT_COPYLINKLOCATION 50104 | |
237 #define IDC_CONTENT_CONTEXT_COPYEMAILADDRESS 50105 | |
238 // Image items. | |
239 #define IDC_CONTENT_CONTEXT_SAVEIMAGEAS 50110 | |
240 #define IDC_CONTENT_CONTEXT_COPYIMAGELOCATION 50111 | |
241 #define IDC_CONTENT_CONTEXT_COPYIMAGE 50112 | |
242 #define IDC_CONTENT_CONTEXT_OPENIMAGENEWTAB 50113 | |
243 // Audio/video items. | |
244 #define IDC_CONTENT_CONTEXT_SAVEAVAS 50120 | |
245 #define IDC_CONTENT_CONTEXT_COPYAVLOCATION 50121 | |
246 #define IDC_CONTENT_CONTEXT_OPENAVNEWTAB 50122 | |
247 // Media items. | |
248 #define IDC_CONTENT_CONTEXT_PLAYPAUSE 50130 | |
249 #define IDC_CONTENT_CONTEXT_MUTE 50131 | |
250 #define IDC_CONTENT_CONTEXT_LOOP 50132 | |
251 #define IDC_CONTENT_CONTEXT_CONTROLS 50133 | |
252 // Edit items. | |
253 #define IDC_CONTENT_CONTEXT_COPY 50140 | |
254 #define IDC_CONTENT_CONTEXT_CUT 50141 | |
255 #define IDC_CONTENT_CONTEXT_PASTE 50142 | |
256 #define IDC_CONTENT_CONTEXT_DELETE 50143 | |
257 #define IDC_CONTENT_CONTEXT_UNDO 50144 | |
258 #define IDC_CONTENT_CONTEXT_REDO 50145 | |
259 #define IDC_CONTENT_CONTEXT_SELECTALL 50146 | |
260 // Other items. | |
261 #define IDC_CONTENT_CONTEXT_TRANSLATE 50150 | |
262 #define IDC_CONTENT_CONTEXT_INSPECTELEMENT 50151 | |
263 #define IDC_CONTENT_CONTEXT_VIEWPAGEINFO 50152 | |
264 #define IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS 50153 | |
265 #define IDC_CONTENT_CONTEXT_LOOK_UP_IN_DICTIONARY 50154 | |
266 // Frame items. | |
267 #define IDC_CONTENT_CONTEXT_RELOADFRAME 50160 | |
268 #define IDC_CONTENT_CONTEXT_OPENFRAMENEWTAB 50161 | |
269 #define IDC_CONTENT_CONTEXT_OPENFRAMENEWWINDOW 50162 | |
270 #define IDC_CONTENT_CONTEXT_OPENFRAMEOFFTHERECORD 50163 | |
271 #define IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE 50164 | |
272 #define IDC_CONTENT_CONTEXT_VIEWFRAMEINFO 50165 | |
273 // Search items. | |
274 #define IDC_CONTENT_CONTEXT_GOTOURL 50170 | |
275 #define IDC_CONTENT_CONTEXT_SEARCHWEBFOR 50171 | |
OLD | NEW |