blob: 6bbad9b63c47736635b7e895b089f86baee9b7e3 [file] [log] [blame]
[email protected]bb76fd42011-05-10 18:19:321// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]1a3aba82010-11-08 23:52:542// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]057569b2011-06-14 01:44:325#ifndef CHROME_APP_CHROME_COMMAND_IDS_H_
6#define CHROME_APP_CHROME_COMMAND_IDS_H_
7#pragma once
8
[email protected]1a3aba82010-11-08 23:52:549// This file lists all the command IDs understood by e.g. the browser.
10// It is used by Windows RC files, Mac NIB files, and other platforms too.
11
[email protected]93b59fc2010-12-21 20:00:4712// Values below IDC_MinimumLabelValue are reserved for dynamic menu items.
13#define IDC_MinimumLabelValue 4000
14
[email protected]21fa3a12010-12-08 23:34:1615#define IDC_Messages 4000
16#define IDC_MessagesAll 4007
17#define IDC_MessagesNone 4008
[email protected]1a3aba82010-11-08 23:52:5418
19// NOTE: Within each of the following sections, the IDs are ordered roughly by
20// how they appear in the GUI/menus (left to right, top to bottom, etc.).
21
22// Navigation commands
23// TODO: Reorder to be in visible order; collapse holes
24#define IDC_BACK 33000
25#define IDC_FORWARD 33001
26#define IDC_RELOAD 33002
27#define IDC_HOME 33003
28#define IDC_OPEN_CURRENT_URL 33004
29#define IDC_STOP 33006
30#define IDC_RELOAD_IGNORING_CACHE 33007
31
32// Window management commands
33#define IDC_NEW_WINDOW 34000
34#define IDC_NEW_INCOGNITO_WINDOW 34001
35#define IDC_CLOSE_WINDOW 34012
36#define IDC_ALWAYS_ON_TOP 34013
37#define IDC_NEW_TAB 34014
38#define IDC_CLOSE_TAB 34015
39#define IDC_SELECT_NEXT_TAB 34016
40#define IDC_SELECT_PREVIOUS_TAB 34017
41#define IDC_SELECT_TAB_0 34018
42#define IDC_SELECT_TAB_1 34019
43#define IDC_SELECT_TAB_2 34020
44#define IDC_SELECT_TAB_3 34021
45#define IDC_SELECT_TAB_4 34022
46#define IDC_SELECT_TAB_5 34023
47#define IDC_SELECT_TAB_6 34024
48#define IDC_SELECT_TAB_7 34025
49#define IDC_SELECT_LAST_TAB 34026
50#define IDC_DUPLICATE_TAB 34027
51#define IDC_RESTORE_TAB 34028
52#define IDC_SHOW_AS_TAB 34029
53#define IDC_FULLSCREEN 34030
54#define IDC_EXIT 34031
55#define IDC_MOVE_TAB_NEXT 34032
56#define IDC_MOVE_TAB_PREVIOUS 34033
[email protected]1a3aba82010-11-08 23:52:5457#define IDC_SEARCH 34035
58#define IDC_TABPOSE 34036
[email protected]cdc05ec2011-05-18 15:15:5959#define IDC_DEBUG_FRAME_TOGGLE 34038
[email protected]d3766932011-08-04 22:18:2360#define IDC_PRESENTATION_MODE 34039
[email protected]1a3aba82010-11-08 23:52:5461
62// Page-related commands
63#define IDC_BOOKMARK_PAGE 35000
64#define IDC_BOOKMARK_ALL_TABS 35001
65#define IDC_VIEW_SOURCE 35002
66#define IDC_PRINT 35003
67#define IDC_SAVE_PAGE 35004
68#define IDC_ENCODING_MENU 35005
69#define IDC_EMAIL_PAGE_LOCATION 35006
[email protected]0996e9b2011-08-26 17:59:0170#define IDC_ADVANCED_PRINT 35007
[email protected]1a3aba82010-11-08 23:52:5471
72// When adding a new encoding to this list, be sure to append it to the
73// EncodingMenuController::kValidEncodingIds array in
74// encoding_menu_controller.cc.
75#define IDC_ENCODING_AUTO_DETECT 35500
76#define IDC_ENCODING_UTF8 35501
77#define IDC_ENCODING_UTF16LE 35502
78#define IDC_ENCODING_ISO88591 35503
79#define IDC_ENCODING_WINDOWS1252 35504
80#define IDC_ENCODING_GBK 35505
81#define IDC_ENCODING_GB18030 35506
82#define IDC_ENCODING_BIG5 35507
83#define IDC_ENCODING_BIG5HKSCS 35508
84#define IDC_ENCODING_KOREAN 35509
85#define IDC_ENCODING_SHIFTJIS 35510
86#define IDC_ENCODING_ISO2022JP 35511
87#define IDC_ENCODING_EUCJP 35512
88#define IDC_ENCODING_THAI 35513
89#define IDC_ENCODING_ISO885915 35514
90#define IDC_ENCODING_MACINTOSH 35515
91#define IDC_ENCODING_ISO88592 35516
92#define IDC_ENCODING_WINDOWS1250 35517
93#define IDC_ENCODING_ISO88595 35518
94#define IDC_ENCODING_WINDOWS1251 35519
95#define IDC_ENCODING_KOI8R 35520
96#define IDC_ENCODING_KOI8U 35521
97#define IDC_ENCODING_ISO88597 35522
98#define IDC_ENCODING_WINDOWS1253 35523
99#define IDC_ENCODING_ISO88594 35524
100#define IDC_ENCODING_ISO885913 35525
101#define IDC_ENCODING_WINDOWS1257 35526
102#define IDC_ENCODING_ISO88593 35527
103#define IDC_ENCODING_ISO885910 35528
104#define IDC_ENCODING_ISO885914 35529
105#define IDC_ENCODING_ISO885916 35530
106#define IDC_ENCODING_WINDOWS1254 35531
107#define IDC_ENCODING_ISO88596 35532
108#define IDC_ENCODING_WINDOWS1256 35533
109#define IDC_ENCODING_ISO88598 35534
110#define IDC_ENCODING_WINDOWS1255 35535
111#define IDC_ENCODING_WINDOWS1258 35536
112#define IDC_ENCODING_ISO88598I 35537
113
114// Clipboard commands
115#define IDC_CUT 36000
116#define IDC_COPY 36001
117#define IDC_COPY_URL 36002
118#define IDC_PASTE 36003
119#define IDC_EDIT_MENU 36004
120
121// Find-in-page
122#define IDC_FIND 37000
123#define IDC_FIND_NEXT 37001
124#define IDC_FIND_PREVIOUS 37002
125
126// Zoom
127#define IDC_ZOOM_MENU 38000
128#define IDC_ZOOM_PLUS 38001
129#define IDC_ZOOM_NORMAL 38002
130#define IDC_ZOOM_MINUS 38003
131#define IDC_ZOOM_PERCENT_DISPLAY 38004
132
133// Focus various bits of UI
134#define IDC_FOCUS_TOOLBAR 39000
135#define IDC_FOCUS_LOCATION 39001
136#define IDC_FOCUS_SEARCH 39002
137#define IDC_FOCUS_MENU_BAR 39003
138#define IDC_FOCUS_NEXT_PANE 39004
139#define IDC_FOCUS_PREVIOUS_PANE 39005
140#define IDC_FOCUS_BOOKMARKS 39006
141#define IDC_FOCUS_CHROMEOS_STATUS 39007
142
143// Show various bits of UI
144#define IDC_OPEN_FILE 40000
145#define IDC_CREATE_SHORTCUTS 40001
146#define IDC_DEVELOPER_MENU 40002
147#define IDC_DEV_TOOLS 40003
148#define IDC_DEV_TOOLS_CONSOLE 40004
149#define IDC_TASK_MANAGER 40005
[email protected]1c41a932010-11-22 23:41:23150#define IDC_FEEDBACK 40008
[email protected]1a3aba82010-11-08 23:52:54151#define IDC_SHOW_BOOKMARK_BAR 40009
152#define IDC_SHOW_HISTORY 40010
153#define IDC_SHOW_BOOKMARK_MANAGER 40011
154#define IDC_SHOW_DOWNLOADS 40012
155#define IDC_CLEAR_BROWSING_DATA 40013
156#define IDC_IMPORT_SETTINGS 40014
157#define IDC_OPTIONS 40015
158#define IDC_EDIT_SEARCH_ENGINES 40016
159#define IDC_VIEW_PASSWORDS 40017
160#define IDC_ABOUT 40018
161#define IDC_HELP_PAGE 40019
162#define IDC_SHOW_APP_MENU 40020
[email protected]605749372011-07-26 03:06:42163#define IDC_MANAGE_EXTENSIONS 40021
164#define IDC_DEV_TOOLS_INSPECT 40022
165#define IDC_UPGRADE_DIALOG 40023
166#define IDC_VIEW_INCOMPATIBILITIES 40024
167#define IDC_VIEW_BACKGROUND_PAGES 40025
168#define IDC_SHOW_KEYBOARD_OVERLAY 40026
169#define IDC_PROFILING_ENABLED 40027
170#define IDC_FILE_MANAGER 40028
171#define IDC_BOOKMARKS_MENU 40029
172#define IDC_SHOW_SYNC_SETUP 40030
[email protected]7c1490da2011-10-11 18:53:25173#define IDC_EXTENSION_ERRORS 40031
[email protected]1a3aba82010-11-08 23:52:54174
175// Spell-check
176// Insert any additional suggestions before _LAST; these have to be consecutive.
177#define IDC_SPELLCHECK_SUGGESTION_0 41000
178#define IDC_SPELLCHECK_SUGGESTION_1 41001
179#define IDC_SPELLCHECK_SUGGESTION_2 41002
180#define IDC_SPELLCHECK_SUGGESTION_3 41003
181#define IDC_SPELLCHECK_SUGGESTION_4 41004
182#define IDC_SPELLCHECK_SUGGESTION_LAST IDC_SPELLCHECK_SUGGESTION_4
183#define IDC_SPELLCHECK_MENU 41005
184// Language entries are inserted using autogenerated values between
185// [_FIRST, _LAST).
186#define IDC_SPELLCHECK_LANGUAGES_FIRST 41006
187#define IDC_SPELLCHECK_LANGUAGES_LAST 41106
188#define IDC_CHECK_SPELLING_OF_THIS_FIELD 41107
189#define IDC_SYNC_BOOKMARKS 41108
190#define IDC_SPELLPANEL_TOGGLE 41109
191#define IDC_SPELLCHECK_ADD_TO_DICTIONARY 41110
192
193// Writing direction
194#define IDC_WRITING_DIRECTION_MENU 41120 // OSX only
195#define IDC_WRITING_DIRECTION_DEFAULT 41121 // OSX only
196#define IDC_WRITING_DIRECTION_LTR 41122 // OSX only
197#define IDC_WRITING_DIRECTION_RTL 41123 // OSX only
198
[email protected]1a3aba82010-11-08 23:52:54199// Translate
200#define IDC_TRANSLATE_OPTIONS_ALWAYS 42000
201#define IDC_TRANSLATE_OPTIONS_NEVER_TRANSLATE_LANG 42001
202#define IDC_TRANSLATE_OPTIONS_NEVER_TRANSLATE_SITE 42002
203#define IDC_TRANSLATE_REPORT_BAD_LANGUAGE_DETECTION 42003
204#define IDC_TRANSLATE_OPTIONS_ABOUT 42004
205#define IDC_TRANSLATE_ORIGINAL_LANGUAGE_BASE 42100
206#define IDC_TRANSLATE_TARGET_LANGUAGE_BASE 42400
207
[email protected]afcb43562011-09-02 23:33:38208// Speech input
209#define IDC_TOGGLE_SPEECH_INPUT 42500
210
[email protected]1a3aba82010-11-08 23:52:54211// Identifiers for platform-specific items.
212// Placed in a common file to help insure they never collide.
[email protected]1a3aba82010-11-08 23:52:54213#define IDC_VIEW_MENU 44000 // OSX only
214#define IDC_SYSTEM_OPTIONS 45000 // ChromeOS only
215#define IDC_INTERNET_OPTIONS 45100 // ChromeOS only
216#define IDC_LANGUAGE_OPTIONS 45200 // ChromeOS only
217#define IDC_HISTORY_MENU 46000 // OSX only
[email protected]961a6932011-07-19 19:52:46218#define IDC_PROFILE_MAIN_MENU 46100 // OSX only
[email protected]1a3aba82010-11-08 23:52:54219#define IDC_INPUT_METHODS_MENU 46300 // Linux only
220
221// Custom context menu entries
222#define IDC_CONTENT_CONTEXT_CUSTOM_FIRST 47000
223#define IDC_CONTENT_CONTEXT_CUSTOM_LAST 48000
224
225// Context menu items added by extensions.
226#define IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST 49000
227#define IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST 50000
228
229// Context menu items in the render view.
230// Link items.
231#define IDC_CONTENT_CONTEXT_OPENLINKNEWTAB 50100
232#define IDC_CONTENT_CONTEXT_OPENLINKNEWWINDOW 50101
233#define IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD 50102
234#define IDC_CONTENT_CONTEXT_SAVELINKAS 50103
235#define IDC_CONTENT_CONTEXT_COPYLINKLOCATION 50104
236#define IDC_CONTENT_CONTEXT_COPYEMAILADDRESS 50105
[email protected]88fb6a62011-06-27 04:07:57237#define IDC_CONTENT_CONTEXT_OPENLINKWITH 50106
[email protected]1a3aba82010-11-08 23:52:54238// 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
[email protected]0c696612011-06-25 04:29:08266#define IDC_CONTENT_CONTEXT_NO_SPELLING_SUGGESTIONS 50155
[email protected]c8a72662011-09-05 09:26:08267#define IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION 50156
[email protected]1a3aba82010-11-08 23:52:54268// Frame items.
269#define IDC_CONTENT_CONTEXT_RELOADFRAME 50160
[email protected]0be760d002010-12-03 21:58:55270#define IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE 50161
271#define IDC_CONTENT_CONTEXT_VIEWFRAMEINFO 50162
[email protected]1a3aba82010-11-08 23:52:54272// Search items.
273#define IDC_CONTENT_CONTEXT_GOTOURL 50170
274#define IDC_CONTENT_CONTEXT_SEARCHWEBFOR 50171
[email protected]747f1c52011-07-01 01:55:49275#define IDC_CONTENT_CONTEXT_ADDSEARCHENGINE 50172
[email protected]4aa0dea2010-12-09 01:51:03276
277// Context menu items in the bookmark bar
278#define IDC_BOOKMARK_BAR_OPEN_ALL 51000
279#define IDC_BOOKMARK_BAR_OPEN_ALL_NEW_WINDOW 51001
280#define IDC_BOOKMARK_BAR_OPEN_ALL_INCOGNITO 51002
281#define IDC_BOOKMARK_BAR_OPEN_INCOGNITO 51003
282#define IDC_BOOKMARK_BAR_RENAME_FOLDER 51004
283#define IDC_BOOKMARK_BAR_EDIT 51005
284#define IDC_BOOKMARK_BAR_REMOVE 51006
285#define IDC_BOOKMARK_BAR_ADD_NEW_BOOKMARK 51007
286#define IDC_BOOKMARK_BAR_NEW_FOLDER 51008
287#define IDC_BOOKMARK_MANAGER 51009
288#define IDC_BOOKMARK_BAR_ALWAYS_SHOW 51010
[email protected]e7e637e2011-05-13 20:49:49289
290// Context menu items in the status tray
291#define IDC_STATUS_TRAY_KEEP_CHROME_RUNNING_IN_BACKGROUND 51100
[email protected]057569b2011-06-14 01:44:32292
[email protected]508d1032011-07-26 05:08:34293// Context menu items for speech recognition
294#define IDC_SPEECH_INPUT_MENU 51200
[email protected]9af487d42011-10-08 11:04:59295#define IDC_CONTENT_CONTEXT_SPEECH_INPUT_FILTER_PROFANITIES 51201
[email protected]508d1032011-07-26 05:08:34296#define IDC_CONTENT_CONTEXT_SPEECH_INPUT_ABOUT 51202
297
[email protected]88fb6a62011-06-27 04:07:57298// Protocol handler menu entries
299#define IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_FIRST 52000
300#define IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_LAST 52199
301#define IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_SETTINGS 52200
302
303// NOTE: The last valid command value is 57343 (0xDFFF)
304// See http://msdn.microsoft.com/en-us/library/t2zechd4(VS.71).aspx
305
[email protected]057569b2011-06-14 01:44:32306#endif // CHROME_APP_CHROME_COMMAND_IDS_H_