Home | History | Annotate | Download | only in app
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_APP_CHROME_COMMAND_IDS_H_
      6 #define CHROME_APP_CHROME_COMMAND_IDS_H_
      7 
      8 // This file lists all the command IDs understood by e.g. the browser.
      9 // It is used by Windows RC files, Mac NIB files, and other platforms too.
     10 
     11 // Mac NIB files (e.g. chrome/app/nibs/MainMenu.xib) include ID numbers rather
     12 // than the corresponding #define labels.  If you change a given command's
     13 // number, any NIB files that refer to it will also need to be updated.
     14 
     15 // Values below IDC_MinimumLabelValue are reserved for dynamic menu items.
     16 #define IDC_MinimumLabelValue           4000
     17 
     18 #define IDC_Messages                    4000
     19 #define IDC_MessagesAll                 4007
     20 #define IDC_MessagesNone                4008
     21 
     22 // NOTE: Within each of the following sections, the IDs are ordered roughly by
     23 // how they appear in the GUI/menus (left to right, top to bottom, etc.).
     24 
     25 // Navigation commands
     26 // TODO: Reorder to be in visible order; collapse holes
     27 #define IDC_BACK                        33000
     28 #define IDC_FORWARD                     33001
     29 #define IDC_RELOAD                      33002
     30 #define IDC_HOME                        33003
     31 #define IDC_OPEN_CURRENT_URL            33004
     32 #define IDC_STOP                        33006
     33 #define IDC_RELOAD_IGNORING_CACHE       33007
     34 #define IDC_LOAD_NEW_TAB_PAGE           33008
     35 #define IDC_RELOAD_CLEARING_CACHE       33009
     36 
     37 // Window management commands
     38 #define IDC_NEW_WINDOW                  34000
     39 #define IDC_NEW_INCOGNITO_WINDOW        34001
     40 #define IDC_PIN_TO_START_SCREEN         34005
     41 #define IDC_CLOSE_WINDOW                34012
     42 #define IDC_ALWAYS_ON_TOP               34013
     43 #define IDC_NEW_TAB                     34014
     44 #define IDC_CLOSE_TAB                   34015
     45 #define IDC_SELECT_NEXT_TAB             34016
     46 #define IDC_SELECT_PREVIOUS_TAB         34017
     47 #define IDC_SELECT_TAB_0                34018
     48 #define IDC_SELECT_TAB_1                34019
     49 #define IDC_SELECT_TAB_2                34020
     50 #define IDC_SELECT_TAB_3                34021
     51 #define IDC_SELECT_TAB_4                34022
     52 #define IDC_SELECT_TAB_5                34023
     53 #define IDC_SELECT_TAB_6                34024
     54 #define IDC_SELECT_TAB_7                34025
     55 #define IDC_SELECT_LAST_TAB             34026
     56 #define IDC_DUPLICATE_TAB               34027
     57 #define IDC_RESTORE_TAB                 34028
     58 #define IDC_SHOW_AS_TAB                 34029
     59 #define IDC_FULLSCREEN                  34030
     60 #define IDC_EXIT                        34031
     61 #define IDC_MOVE_TAB_NEXT               34032
     62 #define IDC_MOVE_TAB_PREVIOUS           34033
     63 #define IDC_SEARCH                      34035
     64 #define IDC_DEBUG_FRAME_TOGGLE          34038
     65 #define IDC_PRESENTATION_MODE           34039
     66 #define IDC_METRO_SNAP_ENABLE           34040
     67 #define IDC_METRO_SNAP_DISABLE          34041
     68 #define IDC_WIN_DESKTOP_RESTART         34042
     69 #define IDC_WIN8_METRO_RESTART          34043
     70 #define IDC_WIN_CHROMEOS_RESTART        34044
     71 #define IDC_WINDOW_MENU                 34045
     72 #define IDC_MINIMIZE_WINDOW             34046
     73 #define IDC_MAXIMIZE_WINDOW             34047
     74 #define IDC_ALL_WINDOWS_FRONT           34048
     75 #define IDC_VISIT_DESKTOP_OF_LRU_USER_2 34049
     76 #define IDC_VISIT_DESKTOP_OF_LRU_USER_3 34050
     77 #define IDC_USE_SYSTEM_TITLE_BAR        34051
     78 
     79 // Page-related commands
     80 #define IDC_BOOKMARK_PAGE               35000
     81 #define IDC_BOOKMARK_ALL_TABS           35001
     82 #define IDC_VIEW_SOURCE                 35002
     83 #define IDC_PRINT                       35003
     84 #define IDC_SAVE_PAGE                   35004
     85 #define IDC_ENCODING_MENU               35005
     86 #define IDC_EMAIL_PAGE_LOCATION         35006
     87 #define IDC_BASIC_PRINT                 35007
     88 #define IDC_TRANSLATE_PAGE              35009
     89 #define IDC_MANAGE_PASSWORDS_FOR_PAGE   35010
     90 
     91 // When adding a new encoding to this list, be sure to append it to the
     92 // EncodingMenuController::kValidEncodingIds array in
     93 // encoding_menu_controller.cc.
     94 #define IDC_ENCODING_AUTO_DETECT        35500
     95 #define IDC_ENCODING_UTF8               35501
     96 #define IDC_ENCODING_UTF16LE            35502
     97 #define IDC_ENCODING_ISO88591           35503
     98 #define IDC_ENCODING_WINDOWS1252        35504
     99 #define IDC_ENCODING_GBK                35505
    100 #define IDC_ENCODING_GB18030            35506
    101 #define IDC_ENCODING_BIG5               35507
    102 #define IDC_ENCODING_BIG5HKSCS          35508
    103 #define IDC_ENCODING_KOREAN             35509
    104 #define IDC_ENCODING_SHIFTJIS           35510
    105 #define IDC_ENCODING_ISO2022JP          35511
    106 #define IDC_ENCODING_EUCJP              35512
    107 #define IDC_ENCODING_THAI               35513
    108 #define IDC_ENCODING_ISO885915          35514
    109 #define IDC_ENCODING_MACINTOSH          35515
    110 #define IDC_ENCODING_ISO88592           35516
    111 #define IDC_ENCODING_WINDOWS1250        35517
    112 #define IDC_ENCODING_ISO88595           35518
    113 #define IDC_ENCODING_WINDOWS1251        35519
    114 #define IDC_ENCODING_KOI8R              35520
    115 #define IDC_ENCODING_KOI8U              35521
    116 #define IDC_ENCODING_ISO88597           35522
    117 #define IDC_ENCODING_WINDOWS1253        35523
    118 #define IDC_ENCODING_ISO88594           35524
    119 #define IDC_ENCODING_ISO885913          35525
    120 #define IDC_ENCODING_WINDOWS1257        35526
    121 #define IDC_ENCODING_ISO88593           35527
    122 #define IDC_ENCODING_ISO885910          35528
    123 #define IDC_ENCODING_ISO885914          35529
    124 #define IDC_ENCODING_ISO885916          35530
    125 #define IDC_ENCODING_WINDOWS1254        35531
    126 #define IDC_ENCODING_ISO88596           35532
    127 #define IDC_ENCODING_WINDOWS1256        35533
    128 #define IDC_ENCODING_ISO88598           35534
    129 #define IDC_ENCODING_WINDOWS1255        35535
    130 #define IDC_ENCODING_WINDOWS1258        35536
    131 #define IDC_ENCODING_ISO88598I          35537
    132 
    133 // Clipboard commands
    134 #define IDC_CUT                         36000
    135 #define IDC_COPY                        36001
    136 #define IDC_PASTE                       36003
    137 #define IDC_EDIT_MENU                   36004
    138 
    139 // Find-in-page
    140 #define IDC_FIND                        37000
    141 #define IDC_FIND_NEXT                   37001
    142 #define IDC_FIND_PREVIOUS               37002
    143 #define IDC_FIND_MENU                   37100
    144 
    145 // Zoom
    146 #define IDC_ZOOM_MENU                   38000
    147 #define IDC_ZOOM_PLUS                   38001
    148 #define IDC_ZOOM_NORMAL                 38002
    149 #define IDC_ZOOM_MINUS                  38003
    150 #define IDC_ZOOM_PERCENT_DISPLAY        38004
    151 
    152 // Focus various bits of UI
    153 #define IDC_FOCUS_TOOLBAR               39000
    154 #define IDC_FOCUS_LOCATION              39001
    155 #define IDC_FOCUS_SEARCH                39002
    156 #define IDC_FOCUS_MENU_BAR              39003
    157 #define IDC_FOCUS_NEXT_PANE             39004
    158 #define IDC_FOCUS_PREVIOUS_PANE         39005
    159 #define IDC_FOCUS_BOOKMARKS             39006
    160 #define IDC_FOCUS_INFOBARS              39007
    161 
    162 // Show various bits of UI
    163 #define IDC_OPEN_FILE                   40000
    164 #define IDC_CREATE_SHORTCUTS            40001
    165 #define IDC_CREATE_HOSTED_APP           40002
    166 #define IDC_DEVELOPER_MENU              40003
    167 #define IDC_DEV_TOOLS                   40004
    168 #define IDC_DEV_TOOLS_CONSOLE           40005
    169 #define IDC_TASK_MANAGER                40006
    170 #define IDC_DEV_TOOLS_DEVICES           40007
    171 #if defined(GOOGLE_CHROME_BUILD)
    172 #define IDC_FEEDBACK                    40008
    173 #endif
    174 #define IDC_SHOW_BOOKMARK_BAR           40009
    175 #define IDC_SHOW_HISTORY                40010
    176 #define IDC_SHOW_BOOKMARK_MANAGER       40011
    177 #define IDC_SHOW_DOWNLOADS              40012
    178 #define IDC_CLEAR_BROWSING_DATA         40013
    179 #define IDC_IMPORT_SETTINGS             40014
    180 #define IDC_OPTIONS                     40015
    181 #define IDC_EDIT_SEARCH_ENGINES         40016
    182 #define IDC_VIEW_PASSWORDS              40017
    183 #define IDC_ABOUT                       40018
    184 #define IDC_HELP_PAGE_VIA_KEYBOARD      40019
    185 #define IDC_HELP_PAGE_VIA_MENU          40020
    186 #define IDC_SHOW_APP_MENU               40021
    187 #define IDC_MANAGE_EXTENSIONS           40022
    188 #define IDC_DEV_TOOLS_INSPECT           40023
    189 #define IDC_UPGRADE_DIALOG              40024
    190 #define IDC_VIEW_INCOMPATIBILITIES      40025
    191 #define IDC_SHOW_KEYBOARD_OVERLAY       40027
    192 #define IDC_PROFILING_ENABLED           40028
    193 #define IDC_BOOKMARKS_MENU              40029
    194 // TODO(atwilson): Remove IDC_SHOW_SYNC_SETUP when we officially allow signin
    195 // when sync is disabled.
    196 #define IDC_SHOW_SYNC_SETUP             40030
    197 #define IDC_SHOW_SIGNIN                 40030
    198 #define IDC_EXTENSION_ERRORS            40031
    199 #define IDC_SHOW_SIGNIN_ERROR           40032
    200 #define IDC_SHOW_SETTINGS_CHANGE_FIRST  40033
    201 #define IDC_SHOW_SETTINGS_CHANGE_LAST   40133
    202 #define IDC_SHOW_AVATAR_MENU            40134
    203 #define IDC_EXTENSION_DISABLED_FIRST    40135
    204 #define IDC_EXTENSION_DISABLED_LAST     40235
    205 #define IDC_TOGGLE_REQUEST_TABLET_SITE  40236
    206 #define IDC_DEV_TOOLS_TOGGLE            40237
    207 #define IDC_EXTERNAL_EXTENSION_ALERT    40238
    208 #define IDC_RECENT_TABS_MENU            40239
    209 #define IDC_RECENT_TABS_NO_DEVICE_TABS  40240
    210 #define IDC_SHOW_SETTINGS_RESET_BUBBLE  40241
    211 #define IDC_TAKE_SCREENSHOT             40242
    212 #define IDC_SHOW_SYNC_ERROR             40243
    213 #define IDC_DISTILL_PAGE                40244
    214 #define IDC_HELP_MENU                   40245
    215 #define IDC_EXTENSIONS_OVERFLOW_MENU    40246
    216 #define IDC_SHOW_SRT_BUBBLE             40247
    217 
    218 // Spell-check
    219 // Insert any additional suggestions before _LAST; these have to be consecutive.
    220 #define IDC_SPELLCHECK_SUGGESTION_0     41000
    221 #define IDC_SPELLCHECK_SUGGESTION_1     41001
    222 #define IDC_SPELLCHECK_SUGGESTION_2     41002
    223 #define IDC_SPELLCHECK_SUGGESTION_3     41003
    224 #define IDC_SPELLCHECK_SUGGESTION_4     41004
    225 #define IDC_SPELLCHECK_SUGGESTION_LAST  IDC_SPELLCHECK_SUGGESTION_4
    226 #define IDC_SPELLCHECK_MENU             41005
    227 // Language entries are inserted using autogenerated values between
    228 // [_FIRST, _LAST).
    229 #define IDC_SPELLCHECK_LANGUAGES_FIRST  41006
    230 #define IDC_SPELLCHECK_LANGUAGES_LAST   41106
    231 #define IDC_CHECK_SPELLING_WHILE_TYPING 41107
    232 #define IDC_SPELLPANEL_TOGGLE           41109
    233 #define IDC_SPELLCHECK_ADD_TO_DICTIONARY 41110
    234 
    235 // Writing direction
    236 #define IDC_WRITING_DIRECTION_MENU       41120
    237 #define IDC_WRITING_DIRECTION_DEFAULT    41121
    238 #define IDC_WRITING_DIRECTION_LTR        41122
    239 #define IDC_WRITING_DIRECTION_RTL        41123
    240 
    241 // Translate
    242 #define IDC_TRANSLATE_ORIGINAL_LANGUAGE_BASE 42100
    243 #define IDC_TRANSLATE_TARGET_LANGUAGE_BASE   42400
    244 
    245 // Speech input
    246 #define IDC_TOGGLE_SPEECH_INPUT         42500
    247 
    248 // Identifiers for platform-specific items.
    249 // Placed in a common file to help insure they never collide.
    250 #define IDC_VIEW_MENU                   44000     // OSX only
    251 #define IDC_FILE_MENU                   44001     // OSX only
    252 #define IDC_CHROME_MENU                 44002     // OSX only
    253 #define IDC_HIDE_APP                    44003     // OSX only
    254 #define IDC_HISTORY_MENU                46000     // OSX only
    255 #define IDC_PROFILE_MAIN_MENU           46100     // OSX only
    256 #define IDC_INPUT_METHODS_MENU          46300     // Linux only
    257 
    258 // The range of command ids reserved for context menus added by web content.
    259 #define IDC_CONTENT_CONTEXT_CUSTOM_FIRST 47000
    260 #define IDC_CONTENT_CONTEXT_CUSTOM_LAST  48000
    261 
    262 // The range of command ids reserved for context menus added by extensions.
    263 #define IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST 49000
    264 #define IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST 50000
    265 
    266 // Context menu items in the render view.
    267 // Link items.
    268 #define IDC_CONTENT_CONTEXT_OPENLINKNEWTAB 50100
    269 #define IDC_CONTENT_CONTEXT_OPENLINKNEWWINDOW 50101
    270 #define IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD 50102
    271 #define IDC_CONTENT_CONTEXT_SAVELINKAS 50103
    272 #define IDC_CONTENT_CONTEXT_COPYLINKLOCATION 50104
    273 #define IDC_CONTENT_CONTEXT_COPYEMAILADDRESS 50105
    274 #define IDC_CONTENT_CONTEXT_OPENLINKWITH 50106
    275 // Image items.
    276 #define IDC_CONTENT_CONTEXT_SAVEIMAGEAS 50110
    277 #define IDC_CONTENT_CONTEXT_COPYIMAGELOCATION 50111
    278 #define IDC_CONTENT_CONTEXT_COPYIMAGE 50112
    279 #define IDC_CONTENT_CONTEXT_OPENIMAGENEWTAB 50113
    280 #define IDC_CONTENT_CONTEXT_SEARCHWEBFORIMAGE 50114
    281 // Audio/video items.
    282 #define IDC_CONTENT_CONTEXT_SAVEAVAS 50120
    283 #define IDC_CONTENT_CONTEXT_COPYAVLOCATION 50121
    284 #define IDC_CONTENT_CONTEXT_OPENAVNEWTAB 50122
    285 // Media items.
    286 #define IDC_CONTENT_CONTEXT_PLAYPAUSE 50130
    287 #define IDC_CONTENT_CONTEXT_MUTE 50131
    288 #define IDC_CONTENT_CONTEXT_LOOP 50132
    289 #define IDC_CONTENT_CONTEXT_CONTROLS 50133
    290 #define IDC_CONTENT_CONTEXT_ROTATECW 50134
    291 #define IDC_CONTENT_CONTEXT_ROTATECCW 50135
    292 // Edit items.
    293 #define IDC_CONTENT_CONTEXT_COPY 50140
    294 #define IDC_CONTENT_CONTEXT_CUT 50141
    295 #define IDC_CONTENT_CONTEXT_PASTE 50142
    296 #define IDC_CONTENT_CONTEXT_DELETE 50143
    297 #define IDC_CONTENT_CONTEXT_UNDO 50144
    298 #define IDC_CONTENT_CONTEXT_REDO 50145
    299 #define IDC_CONTENT_CONTEXT_SELECTALL 50146
    300 #define IDC_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE 50147
    301 // Other items.
    302 #define IDC_CONTENT_CONTEXT_TRANSLATE 50150
    303 #define IDC_CONTENT_CONTEXT_INSPECTELEMENT 50151
    304 #define IDC_CONTENT_CONTEXT_VIEWPAGEINFO 50152
    305 #define IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS 50153
    306 #define IDC_CONTENT_CONTEXT_LOOK_UP_IN_DICTIONARY 50154
    307 #define IDC_CONTENT_CONTEXT_NO_SPELLING_SUGGESTIONS 50155
    308 #define IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION 50156
    309 #define IDC_CONTENT_CONTEXT_SPELLING_TOGGLE 50157
    310 #define IDC_CONTENT_CONTEXT_SPEECH_MENU 50158
    311 #define IDC_CONTENT_CONTEXT_SPEECH_START_SPEAKING 50159
    312 #define IDC_CONTENT_CONTEXT_SPEECH_STOP_SPEAKING 50160
    313 #define IDC_CONTENT_CONTEXT_INSPECTBACKGROUNDPAGE 50161
    314 #define IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP 50162
    315 #define IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP 50163
    316 #define IDC_CONTENT_CONTEXT_AUTOCORRECT_SPELLING_TOGGLE 50164
    317 // Frame items.
    318 #define IDC_CONTENT_CONTEXT_RELOADFRAME 50170
    319 #define IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE 50171
    320 #define IDC_CONTENT_CONTEXT_VIEWFRAMEINFO 50172
    321 // Search items.
    322 #define IDC_CONTENT_CONTEXT_GOTOURL 50180
    323 #define IDC_CONTENT_CONTEXT_SEARCHWEBFOR 50181
    324 #define IDC_CONTENT_CONTEXT_ADDSEARCHENGINE 50182
    325 
    326 // Context menu items in the bookmark bar
    327 #define IDC_BOOKMARK_BAR_OPEN_ALL 51000
    328 #define IDC_BOOKMARK_BAR_OPEN_ALL_NEW_WINDOW 51001
    329 #define IDC_BOOKMARK_BAR_OPEN_ALL_INCOGNITO 51002
    330 #define IDC_BOOKMARK_BAR_OPEN_INCOGNITO 51003
    331 #define IDC_BOOKMARK_BAR_RENAME_FOLDER 51004
    332 #define IDC_BOOKMARK_BAR_EDIT 51005
    333 #define IDC_BOOKMARK_BAR_REMOVE 51006
    334 #define IDC_BOOKMARK_BAR_ADD_NEW_BOOKMARK 51007
    335 #define IDC_BOOKMARK_BAR_NEW_FOLDER 51008
    336 #define IDC_BOOKMARK_MANAGER 51009
    337 #define IDC_BOOKMARK_BAR_ALWAYS_SHOW 51010
    338 #define IDC_BOOKMARK_BAR_SHOW_APPS_SHORTCUT 51011
    339 #define IDC_BOOKMARK_BAR_UNDO 51012
    340 #define IDC_BOOKMARK_BAR_REDO 51013
    341 #define IDC_BOOKMARK_BAR_SHOW_MANAGED_BOOKMARKS 51014
    342 
    343 // Context menu items in the status tray
    344 #define IDC_STATUS_TRAY_KEEP_CHROME_RUNNING_IN_BACKGROUND 51100
    345 
    346 // Context menu items for media stream status tray
    347 #define IDC_MEDIA_STREAM_DEVICE_STATUS_TRAY 51300
    348 #define IDC_MEDIA_CONTEXT_MEDIA_STREAM_CAPTURE_LIST_FIRST 51301
    349 #define IDC_MEDIA_CONTEXT_MEDIA_STREAM_CAPTURE_LIST_LAST 51399
    350 #define IDC_MEDIA_STREAM_DEVICE_ALWAYS_ALLOW 51400
    351 
    352 // Protocol handler menu entries
    353 #define IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_FIRST     52000
    354 #define IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_LAST      52199
    355 #define IDC_CONTENT_CONTEXT_PROTOCOL_HANDLER_SETTINGS  52200
    356 
    357 // NOTE: The last valid command value is 57343 (0xDFFF)
    358 // See http://msdn.microsoft.com/en-us/library/t2zechd4(VS.71).aspx
    359 
    360 #endif  // CHROME_APP_CHROME_COMMAND_IDS_H_
    361