Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | <menubar id="main-menubar" |
michael@0 | 7 | onpopupshowing="if (event.target.parentNode.parentNode == this && |
michael@0 | 8 | !('@mozilla.org/widget/nativemenuservice;1' in Cc)) |
michael@0 | 9 | this.setAttribute('openedwithkey', |
michael@0 | 10 | event.target.parentNode.openedWithKey);" |
michael@0 | 11 | style="border:0px;padding:0px;margin:0px;-moz-appearance:none"> |
michael@0 | 12 | <menu id="file-menu" label="&fileMenu.label;" |
michael@0 | 13 | accesskey="&fileMenu.accesskey;"> |
michael@0 | 14 | <menupopup id="menu_FilePopup"> |
michael@0 | 15 | <menuitem id="menu_newNavigatorTab" |
michael@0 | 16 | label="&tabCmd.label;" |
michael@0 | 17 | command="cmd_newNavigatorTab" |
michael@0 | 18 | key="key_newNavigatorTab" |
michael@0 | 19 | accesskey="&tabCmd.accesskey;"/> |
michael@0 | 20 | <menuitem id="menu_newNavigator" |
michael@0 | 21 | label="&newNavigatorCmd.label;" |
michael@0 | 22 | accesskey="&newNavigatorCmd.accesskey;" |
michael@0 | 23 | key="key_newNavigator" |
michael@0 | 24 | command="cmd_newNavigator"/> |
michael@0 | 25 | <menuitem id="menu_newPrivateWindow" |
michael@0 | 26 | label="&newPrivateWindow.label;" |
michael@0 | 27 | accesskey="&newPrivateWindow.accesskey;" |
michael@0 | 28 | command="Tools:PrivateBrowsing" |
michael@0 | 29 | key="key_privatebrowsing"/> |
michael@0 | 30 | <menuitem id="menu_newRemoteWindow" |
michael@0 | 31 | label="New e10s Window" |
michael@0 | 32 | hidden="true" |
michael@0 | 33 | command="Tools:RemoteWindow"/> |
michael@0 | 34 | <menuitem id="menu_newNonRemoteWindow" |
michael@0 | 35 | label="New Non-e10s Window" |
michael@0 | 36 | hidden="true" |
michael@0 | 37 | command="Tools:NonRemoteWindow"/> |
michael@0 | 38 | <menuitem id="menu_openFile" |
michael@0 | 39 | label="&openFileCmd.label;" |
michael@0 | 40 | command="Browser:OpenFile" |
michael@0 | 41 | key="openFileKb" |
michael@0 | 42 | accesskey="&openFileCmd.accesskey;"/> |
michael@0 | 43 | #ifdef HAVE_SHELL_SERVICE |
michael@0 | 44 | #ifdef XP_WIN |
michael@0 | 45 | #ifdef MOZ_METRO |
michael@0 | 46 | <menuitem id="menu_switchToMetro" |
michael@0 | 47 | label="&switchToMetroCmd2.label;" |
michael@0 | 48 | oncommand="SwitchToMetro()"/> |
michael@0 | 49 | #endif |
michael@0 | 50 | #endif |
michael@0 | 51 | #endif |
michael@0 | 52 | <menuitem id="menu_close" |
michael@0 | 53 | class="show-only-for-keyboard" |
michael@0 | 54 | label="&closeCmd.label;" |
michael@0 | 55 | key="key_close" |
michael@0 | 56 | accesskey="&closeCmd.accesskey;" |
michael@0 | 57 | command="cmd_close"/> |
michael@0 | 58 | <menuitem id="menu_closeWindow" |
michael@0 | 59 | class="show-only-for-keyboard" |
michael@0 | 60 | hidden="true" |
michael@0 | 61 | command="cmd_closeWindow" |
michael@0 | 62 | key="key_closeWindow" |
michael@0 | 63 | label="&closeWindow.label;" |
michael@0 | 64 | accesskey="&closeWindow.accesskey;"/> |
michael@0 | 65 | <menuseparator/> |
michael@0 | 66 | <menuitem id="menu_savePage" |
michael@0 | 67 | label="&savePageCmd.label;" |
michael@0 | 68 | accesskey="&savePageCmd.accesskey;" |
michael@0 | 69 | key="key_savePage" |
michael@0 | 70 | command="Browser:SavePage"/> |
michael@0 | 71 | <menuitem id="menu_sendLink" |
michael@0 | 72 | label="&emailPageCmd.label;" |
michael@0 | 73 | accesskey="&emailPageCmd.accesskey;" |
michael@0 | 74 | command="Browser:SendLink"/> |
michael@0 | 75 | <menuseparator/> |
michael@0 | 76 | #if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT) |
michael@0 | 77 | <menuitem id="menu_printSetup" |
michael@0 | 78 | label="&printSetupCmd.label;" |
michael@0 | 79 | accesskey="&printSetupCmd.accesskey;" |
michael@0 | 80 | command="cmd_pageSetup"/> |
michael@0 | 81 | #endif |
michael@0 | 82 | #ifndef XP_MACOSX |
michael@0 | 83 | <menuitem id="menu_printPreview" |
michael@0 | 84 | label="&printPreviewCmd.label;" |
michael@0 | 85 | accesskey="&printPreviewCmd.accesskey;" |
michael@0 | 86 | command="cmd_printPreview"/> |
michael@0 | 87 | #endif |
michael@0 | 88 | <menuitem id="menu_print" |
michael@0 | 89 | label="&printCmd.label;" |
michael@0 | 90 | accesskey="&printCmd.accesskey;" |
michael@0 | 91 | key="printKb" |
michael@0 | 92 | command="cmd_print"/> |
michael@0 | 93 | <menuseparator/> |
michael@0 | 94 | <menuitem id="goOfflineMenuitem" |
michael@0 | 95 | label="&goOfflineCmd.label;" |
michael@0 | 96 | accesskey="&goOfflineCmd.accesskey;" |
michael@0 | 97 | type="checkbox" |
michael@0 | 98 | observes="workOfflineMenuitemState" |
michael@0 | 99 | oncommand="BrowserOffline.toggleOfflineStatus();"/> |
michael@0 | 100 | <menuitem id="menu_FileQuitItem" |
michael@0 | 101 | #ifdef XP_WIN |
michael@0 | 102 | label="&quitApplicationCmdWin.label;" |
michael@0 | 103 | accesskey="&quitApplicationCmdWin.accesskey;" |
michael@0 | 104 | #else |
michael@0 | 105 | #ifdef XP_MACOSX |
michael@0 | 106 | label="&quitApplicationCmdMac.label;" |
michael@0 | 107 | #else |
michael@0 | 108 | label="&quitApplicationCmd.label;" |
michael@0 | 109 | accesskey="&quitApplicationCmd.accesskey;" |
michael@0 | 110 | #endif |
michael@0 | 111 | #ifdef XP_UNIX |
michael@0 | 112 | key="key_quitApplication" |
michael@0 | 113 | #endif |
michael@0 | 114 | #endif |
michael@0 | 115 | command="cmd_quitApplication"/> |
michael@0 | 116 | </menupopup> |
michael@0 | 117 | </menu> |
michael@0 | 118 | |
michael@0 | 119 | <menu id="edit-menu" label="&editMenu.label;" |
michael@0 | 120 | accesskey="&editMenu.accesskey;"> |
michael@0 | 121 | <menupopup id="menu_EditPopup" |
michael@0 | 122 | onpopupshowing="updateEditUIVisibility()" |
michael@0 | 123 | onpopuphidden="updateEditUIVisibility()"> |
michael@0 | 124 | <menuitem id="menu_undo" |
michael@0 | 125 | label="&undoCmd.label;" |
michael@0 | 126 | key="key_undo" |
michael@0 | 127 | accesskey="&undoCmd.accesskey;" |
michael@0 | 128 | command="cmd_undo"/> |
michael@0 | 129 | <menuitem id="menu_redo" |
michael@0 | 130 | label="&redoCmd.label;" |
michael@0 | 131 | key="key_redo" |
michael@0 | 132 | accesskey="&redoCmd.accesskey;" |
michael@0 | 133 | command="cmd_redo"/> |
michael@0 | 134 | <menuseparator/> |
michael@0 | 135 | <menuitem id="menu_cut" |
michael@0 | 136 | label="&cutCmd.label;" |
michael@0 | 137 | key="key_cut" |
michael@0 | 138 | accesskey="&cutCmd.accesskey;" |
michael@0 | 139 | command="cmd_cut"/> |
michael@0 | 140 | <menuitem id="menu_copy" |
michael@0 | 141 | label="©Cmd.label;" |
michael@0 | 142 | key="key_copy" |
michael@0 | 143 | accesskey="©Cmd.accesskey;" |
michael@0 | 144 | command="cmd_copy"/> |
michael@0 | 145 | <menuitem id="menu_paste" |
michael@0 | 146 | label="&pasteCmd.label;" |
michael@0 | 147 | key="key_paste" |
michael@0 | 148 | accesskey="&pasteCmd.accesskey;" |
michael@0 | 149 | command="cmd_paste"/> |
michael@0 | 150 | <menuitem id="menu_delete" |
michael@0 | 151 | label="&deleteCmd.label;" |
michael@0 | 152 | key="key_delete" |
michael@0 | 153 | accesskey="&deleteCmd.accesskey;" |
michael@0 | 154 | command="cmd_delete"/> |
michael@0 | 155 | <menuseparator/> |
michael@0 | 156 | <menuitem id="menu_selectAll" |
michael@0 | 157 | label="&selectAllCmd.label;" |
michael@0 | 158 | key="key_selectAll" |
michael@0 | 159 | accesskey="&selectAllCmd.accesskey;" |
michael@0 | 160 | command="cmd_selectAll"/> |
michael@0 | 161 | <menuseparator/> |
michael@0 | 162 | <menuitem id="menu_find" |
michael@0 | 163 | label="&findOnCmd.label;" |
michael@0 | 164 | accesskey="&findOnCmd.accesskey;" |
michael@0 | 165 | key="key_find" |
michael@0 | 166 | command="cmd_find"/> |
michael@0 | 167 | <menuitem id="menu_findAgain" |
michael@0 | 168 | class="show-only-for-keyboard" |
michael@0 | 169 | label="&findAgainCmd.label;" |
michael@0 | 170 | accesskey="&findAgainCmd.accesskey;" |
michael@0 | 171 | key="key_findAgain" |
michael@0 | 172 | command="cmd_findAgain"/> |
michael@0 | 173 | <menuseparator hidden="true" id="textfieldDirection-separator"/> |
michael@0 | 174 | <menuitem id="textfieldDirection-swap" |
michael@0 | 175 | command="cmd_switchTextDirection" |
michael@0 | 176 | key="key_switchTextDirection" |
michael@0 | 177 | label="&bidiSwitchTextDirectionItem.label;" |
michael@0 | 178 | accesskey="&bidiSwitchTextDirectionItem.accesskey;" |
michael@0 | 179 | hidden="true"/> |
michael@0 | 180 | #ifdef XP_UNIX |
michael@0 | 181 | #ifndef XP_MACOSX |
michael@0 | 182 | <menuseparator/> |
michael@0 | 183 | <menuitem id="menu_preferences" |
michael@0 | 184 | label="&preferencesCmdUnix.label;" |
michael@0 | 185 | accesskey="&preferencesCmdUnix.accesskey;" |
michael@0 | 186 | oncommand="openPreferences();"/> |
michael@0 | 187 | #endif |
michael@0 | 188 | #endif |
michael@0 | 189 | </menupopup> |
michael@0 | 190 | </menu> |
michael@0 | 191 | |
michael@0 | 192 | <menu id="view-menu" label="&viewMenu.label;" |
michael@0 | 193 | accesskey="&viewMenu.accesskey;"> |
michael@0 | 194 | <menupopup id="menu_viewPopup" |
michael@0 | 195 | onpopupshowing="updateCharacterEncodingMenuState();"> |
michael@0 | 196 | <menu id="viewToolbarsMenu" |
michael@0 | 197 | label="&viewToolbarsMenu.label;" |
michael@0 | 198 | accesskey="&viewToolbarsMenu.accesskey;"> |
michael@0 | 199 | <menupopup onpopupshowing="onViewToolbarsPopupShowing(event);"> |
michael@0 | 200 | <menuseparator/> |
michael@0 | 201 | <menuitem id="menu_customizeToolbars" |
michael@0 | 202 | label="&viewCustomizeToolbar.label;" |
michael@0 | 203 | accesskey="&viewCustomizeToolbar.accesskey;" |
michael@0 | 204 | command="cmd_CustomizeToolbars"/> |
michael@0 | 205 | </menupopup> |
michael@0 | 206 | </menu> |
michael@0 | 207 | <menu id="viewSidebarMenuMenu" |
michael@0 | 208 | label="&viewSidebarMenu.label;" |
michael@0 | 209 | accesskey="&viewSidebarMenu.accesskey;"> |
michael@0 | 210 | <menupopup id="viewSidebarMenu"> |
michael@0 | 211 | <menuitem id="menu_bookmarksSidebar" |
michael@0 | 212 | key="viewBookmarksSidebarKb" |
michael@0 | 213 | observes="viewBookmarksSidebar"/> |
michael@0 | 214 | <menuitem id="menu_historySidebar" |
michael@0 | 215 | key="key_gotoHistory" |
michael@0 | 216 | observes="viewHistorySidebar" |
michael@0 | 217 | label="&historyButton.label;"/> |
michael@0 | 218 | <!-- Service providers with sidebars are inserted between these two menuseperators --> |
michael@0 | 219 | <menuseparator hidden="true"/> |
michael@0 | 220 | <menuseparator class="social-provider-menu" hidden="true"/> |
michael@0 | 221 | </menupopup> |
michael@0 | 222 | </menu> |
michael@0 | 223 | <menuseparator/> |
michael@0 | 224 | <menu id="viewFullZoomMenu" label="&fullZoom.label;" |
michael@0 | 225 | accesskey="&fullZoom.accesskey;" |
michael@0 | 226 | onpopupshowing="FullZoom.updateMenu();"> |
michael@0 | 227 | <menupopup> |
michael@0 | 228 | <menuitem id="menu_zoomEnlarge" |
michael@0 | 229 | key="key_fullZoomEnlarge" |
michael@0 | 230 | label="&fullZoomEnlargeCmd.label;" |
michael@0 | 231 | accesskey="&fullZoomEnlargeCmd.accesskey;" |
michael@0 | 232 | command="cmd_fullZoomEnlarge"/> |
michael@0 | 233 | <menuitem id="menu_zoomReduce" |
michael@0 | 234 | key="key_fullZoomReduce" |
michael@0 | 235 | label="&fullZoomReduceCmd.label;" |
michael@0 | 236 | accesskey="&fullZoomReduceCmd.accesskey;" |
michael@0 | 237 | command="cmd_fullZoomReduce"/> |
michael@0 | 238 | <menuseparator/> |
michael@0 | 239 | <menuitem id="menu_zoomReset" |
michael@0 | 240 | key="key_fullZoomReset" |
michael@0 | 241 | label="&fullZoomResetCmd.label;" |
michael@0 | 242 | accesskey="&fullZoomResetCmd.accesskey;" |
michael@0 | 243 | command="cmd_fullZoomReset"/> |
michael@0 | 244 | <menuseparator/> |
michael@0 | 245 | <menuitem id="toggle_zoom" |
michael@0 | 246 | label="&fullZoomToggleCmd.label;" |
michael@0 | 247 | accesskey="&fullZoomToggleCmd.accesskey;" |
michael@0 | 248 | type="checkbox" |
michael@0 | 249 | command="cmd_fullZoomToggle" |
michael@0 | 250 | checked="false"/> |
michael@0 | 251 | </menupopup> |
michael@0 | 252 | </menu> |
michael@0 | 253 | <menu id="pageStyleMenu" label="&pageStyleMenu.label;" |
michael@0 | 254 | accesskey="&pageStyleMenu.accesskey;" observes="isImage"> |
michael@0 | 255 | <menupopup onpopupshowing="gPageStyleMenu.fillPopup(this);"> |
michael@0 | 256 | <menuitem id="menu_pageStyleNoStyle" |
michael@0 | 257 | label="&pageStyleNoStyle.label;" |
michael@0 | 258 | accesskey="&pageStyleNoStyle.accesskey;" |
michael@0 | 259 | oncommand="gPageStyleMenu.disableStyle();" |
michael@0 | 260 | type="radio"/> |
michael@0 | 261 | <menuitem id="menu_pageStylePersistentOnly" |
michael@0 | 262 | label="&pageStylePersistentOnly.label;" |
michael@0 | 263 | accesskey="&pageStylePersistentOnly.accesskey;" |
michael@0 | 264 | oncommand="gPageStyleMenu.switchStyleSheet('');" |
michael@0 | 265 | type="radio" |
michael@0 | 266 | checked="true"/> |
michael@0 | 267 | <menuseparator/> |
michael@0 | 268 | </menupopup> |
michael@0 | 269 | </menu> |
michael@0 | 270 | #include browser-charsetmenu.inc |
michael@0 | 271 | <menuseparator/> |
michael@0 | 272 | #ifdef XP_MACOSX |
michael@0 | 273 | <menuitem id="enterFullScreenItem" |
michael@0 | 274 | accesskey="&enterFullScreenCmd.accesskey;" |
michael@0 | 275 | label="&enterFullScreenCmd.label;" |
michael@0 | 276 | key="key_fullScreen"> |
michael@0 | 277 | <observes element="View:FullScreen" attribute="oncommand"/> |
michael@0 | 278 | <observes element="View:FullScreen" attribute="disabled"/> |
michael@0 | 279 | </menuitem> |
michael@0 | 280 | <menuitem id="exitFullScreenItem" |
michael@0 | 281 | accesskey="&exitFullScreenCmd.accesskey;" |
michael@0 | 282 | label="&exitFullScreenCmd.label;" |
michael@0 | 283 | key="key_fullScreen" |
michael@0 | 284 | hidden="true"> |
michael@0 | 285 | <observes element="View:FullScreen" attribute="oncommand"/> |
michael@0 | 286 | <observes element="View:FullScreen" attribute="disabled"/> |
michael@0 | 287 | </menuitem> |
michael@0 | 288 | #else |
michael@0 | 289 | <menuitem id="fullScreenItem" |
michael@0 | 290 | accesskey="&fullScreenCmd.accesskey;" |
michael@0 | 291 | label="&fullScreenCmd.label;" |
michael@0 | 292 | key="key_fullScreen" |
michael@0 | 293 | type="checkbox" |
michael@0 | 294 | observes="View:FullScreen"/> |
michael@0 | 295 | #endif |
michael@0 | 296 | <menuitem id="menu_showAllTabs" |
michael@0 | 297 | hidden="true" |
michael@0 | 298 | accesskey="&showAllTabsCmd.accesskey;" |
michael@0 | 299 | label="&showAllTabsCmd.label;" |
michael@0 | 300 | command="Browser:ShowAllTabs" |
michael@0 | 301 | key="key_showAllTabs"/> |
michael@0 | 302 | <menuseparator hidden="true" id="documentDirection-separator"/> |
michael@0 | 303 | <menuitem id="documentDirection-swap" |
michael@0 | 304 | hidden="true" |
michael@0 | 305 | label="&bidiSwitchPageDirectionItem.label;" |
michael@0 | 306 | accesskey="&bidiSwitchPageDirectionItem.accesskey;" |
michael@0 | 307 | oncommand="SwitchDocumentDirection(window.content)"/> |
michael@0 | 308 | </menupopup> |
michael@0 | 309 | </menu> |
michael@0 | 310 | |
michael@0 | 311 | <menu id="history-menu" |
michael@0 | 312 | label="&historyMenu.label;" |
michael@0 | 313 | accesskey="&historyMenu.accesskey;"> |
michael@0 | 314 | <menupopup id="goPopup" |
michael@0 | 315 | #ifndef XP_MACOSX |
michael@0 | 316 | placespopup="true" |
michael@0 | 317 | #endif |
michael@0 | 318 | oncommand="this.parentNode._placesView._onCommand(event);" |
michael@0 | 319 | onclick="checkForMiddleClick(this, event);" |
michael@0 | 320 | onpopupshowing="if (!this.parentNode._placesView) |
michael@0 | 321 | new HistoryMenu(event);" |
michael@0 | 322 | tooltip="bhTooltip" |
michael@0 | 323 | popupsinherittooltip="true"> |
michael@0 | 324 | <menuitem id="menu_showAllHistory" |
michael@0 | 325 | label="&showAllHistoryCmd2.label;" |
michael@0 | 326 | #ifndef XP_MACOSX |
michael@0 | 327 | key="showAllHistoryKb" |
michael@0 | 328 | #endif |
michael@0 | 329 | command="Browser:ShowAllHistory"/> |
michael@0 | 330 | <menuitem id="sanitizeItem" |
michael@0 | 331 | label="&clearRecentHistory.label;" |
michael@0 | 332 | key="key_sanitize" |
michael@0 | 333 | command="Tools:Sanitize"/> |
michael@0 | 334 | <menuseparator id="sanitizeSeparator"/> |
michael@0 | 335 | #ifdef MOZ_SERVICES_SYNC |
michael@0 | 336 | <menuitem id="sync-tabs-menuitem" |
michael@0 | 337 | class="syncTabsMenuItem" |
michael@0 | 338 | label="&syncTabsMenu2.label;" |
michael@0 | 339 | oncommand="BrowserOpenSyncTabs();" |
michael@0 | 340 | disabled="true"/> |
michael@0 | 341 | #endif |
michael@0 | 342 | <menuitem id="historyRestoreLastSession" |
michael@0 | 343 | label="&historyRestoreLastSession.label;" |
michael@0 | 344 | command="Browser:RestoreLastSession"/> |
michael@0 | 345 | <menu id="historyUndoMenu" |
michael@0 | 346 | class="recentlyClosedTabsMenu" |
michael@0 | 347 | label="&historyUndoMenu.label;" |
michael@0 | 348 | disabled="true"> |
michael@0 | 349 | <menupopup id="historyUndoPopup" |
michael@0 | 350 | #ifndef XP_MACOSX |
michael@0 | 351 | placespopup="true" |
michael@0 | 352 | #endif |
michael@0 | 353 | onpopupshowing="document.getElementById('history-menu')._placesView.populateUndoSubmenu();"/> |
michael@0 | 354 | </menu> |
michael@0 | 355 | <menu id="historyUndoWindowMenu" |
michael@0 | 356 | class="recentlyClosedWindowsMenu" |
michael@0 | 357 | label="&historyUndoWindowMenu.label;" |
michael@0 | 358 | disabled="true"> |
michael@0 | 359 | <menupopup id="historyUndoWindowPopup" |
michael@0 | 360 | #ifndef XP_MACOSX |
michael@0 | 361 | placespopup="true" |
michael@0 | 362 | #endif |
michael@0 | 363 | onpopupshowing="document.getElementById('history-menu')._placesView.populateUndoWindowSubmenu();"/> |
michael@0 | 364 | </menu> |
michael@0 | 365 | <menuseparator id="startHistorySeparator" |
michael@0 | 366 | class="hide-if-empty-places-result"/> |
michael@0 | 367 | </menupopup> |
michael@0 | 368 | </menu> |
michael@0 | 369 | |
michael@0 | 370 | <menu id="bookmarksMenu" |
michael@0 | 371 | label="&bookmarksMenu.label;" |
michael@0 | 372 | accesskey="&bookmarksMenu.accesskey;" |
michael@0 | 373 | ondragenter="PlacesMenuDNDHandler.onDragEnter(event);" |
michael@0 | 374 | ondragover="PlacesMenuDNDHandler.onDragOver(event);" |
michael@0 | 375 | ondrop="PlacesMenuDNDHandler.onDrop(event);"> |
michael@0 | 376 | <menupopup id="bookmarksMenuPopup" |
michael@0 | 377 | #ifndef XP_MACOSX |
michael@0 | 378 | placespopup="true" |
michael@0 | 379 | #endif |
michael@0 | 380 | context="placesContext" |
michael@0 | 381 | openInTabs="children" |
michael@0 | 382 | oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);" |
michael@0 | 383 | onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);" |
michael@0 | 384 | onpopupshowing="BookmarkingUI.onMainMenuPopupShowing(event); |
michael@0 | 385 | if (!this.parentNode._placesView) |
michael@0 | 386 | new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');" |
michael@0 | 387 | tooltip="bhTooltip" popupsinherittooltip="true"> |
michael@0 | 388 | <menuitem id="bookmarksShowAll" |
michael@0 | 389 | label="&showAllBookmarks2.label;" |
michael@0 | 390 | command="Browser:ShowAllBookmarks" |
michael@0 | 391 | key="manBookmarkKb"/> |
michael@0 | 392 | <menuseparator id="organizeBookmarksSeparator"/> |
michael@0 | 393 | <menuitem id="menu_bookmarkThisPage" |
michael@0 | 394 | command="Browser:AddBookmarkAs" |
michael@0 | 395 | observes="bookmarkThisPageBroadcaster" |
michael@0 | 396 | key="addBookmarkAsKb"/> |
michael@0 | 397 | <menuitem id="subscribeToPageMenuitem" |
michael@0 | 398 | #ifndef XP_MACOSX |
michael@0 | 399 | class="menuitem-iconic" |
michael@0 | 400 | #endif |
michael@0 | 401 | label="&subscribeToPageMenuitem.label;" |
michael@0 | 402 | oncommand="return FeedHandler.subscribeToFeed(null, event);" |
michael@0 | 403 | onclick="checkForMiddleClick(this, event);" |
michael@0 | 404 | observes="singleFeedMenuitemState"/> |
michael@0 | 405 | <menu id="subscribeToPageMenupopup" |
michael@0 | 406 | #ifndef XP_MACOSX |
michael@0 | 407 | class="menu-iconic" |
michael@0 | 408 | #endif |
michael@0 | 409 | label="&subscribeToPageMenupopup.label;" |
michael@0 | 410 | observes="multipleFeedsMenuState"> |
michael@0 | 411 | <menupopup id="subscribeToPageSubmenuMenupopup" |
michael@0 | 412 | onpopupshowing="return FeedHandler.buildFeedList(event.target);" |
michael@0 | 413 | oncommand="return FeedHandler.subscribeToFeed(null, event);" |
michael@0 | 414 | onclick="checkForMiddleClick(this, event);"/> |
michael@0 | 415 | </menu> |
michael@0 | 416 | <menuitem id="menu_bookmarkAllTabs" |
michael@0 | 417 | label="&addCurPagesCmd.label;" |
michael@0 | 418 | class="show-only-for-keyboard" |
michael@0 | 419 | command="Browser:BookmarkAllTabs" |
michael@0 | 420 | key="bookmarkAllTabsKb"/> |
michael@0 | 421 | <menuseparator id="bookmarksToolbarSeparator"/> |
michael@0 | 422 | <menu id="bookmarksToolbarFolderMenu" |
michael@0 | 423 | class="menu-iconic bookmark-item" |
michael@0 | 424 | label="&personalbarCmd.label;" |
michael@0 | 425 | container="true"> |
michael@0 | 426 | <menupopup id="bookmarksToolbarFolderPopup" |
michael@0 | 427 | #ifndef XP_MACOSX |
michael@0 | 428 | placespopup="true" |
michael@0 | 429 | #endif |
michael@0 | 430 | context="placesContext" |
michael@0 | 431 | onpopupshowing="if (!this.parentNode._placesView) |
michael@0 | 432 | new PlacesMenu(event, 'place:folder=TOOLBAR');"/> |
michael@0 | 433 | </menu> |
michael@0 | 434 | <menuseparator id="bookmarksMenuItemsSeparator"/> |
michael@0 | 435 | <!-- Bookmarks menu items --> |
michael@0 | 436 | <menuseparator builder="end" |
michael@0 | 437 | class="hide-if-empty-places-result"/> |
michael@0 | 438 | <menuitem id="menu_unsortedBookmarks" |
michael@0 | 439 | label="&unsortedBookmarksCmd.label;" |
michael@0 | 440 | oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"/> |
michael@0 | 441 | </menupopup> |
michael@0 | 442 | </menu> |
michael@0 | 443 | |
michael@0 | 444 | <menu id="tools-menu" |
michael@0 | 445 | label="&toolsMenu.label;" |
michael@0 | 446 | accesskey="&toolsMenu.accesskey;"> |
michael@0 | 447 | <menupopup id="menu_ToolsPopup" |
michael@0 | 448 | #ifdef MOZ_SERVICES_SYNC |
michael@0 | 449 | # We have to use setTimeout() here to avoid a flickering menu bar when opening |
michael@0 | 450 | # the Tools menu, see bug 970769. This can be removed once we got rid of the |
michael@0 | 451 | # event loop spinning in Weave.Status._authManager. |
michael@0 | 452 | onpopupshowing="setTimeout(() => gSyncUI.updateUI());" |
michael@0 | 453 | #endif |
michael@0 | 454 | > |
michael@0 | 455 | <menuitem id="menu_openDownloads" |
michael@0 | 456 | label="&downloads.label;" |
michael@0 | 457 | accesskey="&downloads.accesskey;" |
michael@0 | 458 | key="key_openDownloads" |
michael@0 | 459 | command="Tools:Downloads"/> |
michael@0 | 460 | <menuitem id="menu_openAddons" |
michael@0 | 461 | label="&addons.label;" |
michael@0 | 462 | accesskey="&addons.accesskey;" |
michael@0 | 463 | key="key_openAddons" |
michael@0 | 464 | command="Tools:Addons"/> |
michael@0 | 465 | #ifdef MOZ_SERVICES_SYNC |
michael@0 | 466 | <!-- only one of sync-setup or sync-menu will be showing at once --> |
michael@0 | 467 | <menuitem id="sync-setup" |
michael@0 | 468 | label="&syncSetup.label;" |
michael@0 | 469 | accesskey="&syncSetup.accesskey;" |
michael@0 | 470 | observes="sync-setup-state" |
michael@0 | 471 | oncommand="gSyncUI.openSetup()"/> |
michael@0 | 472 | <menuitem id="sync-syncnowitem" |
michael@0 | 473 | label="&syncSyncNowItem.label;" |
michael@0 | 474 | accesskey="&syncSyncNowItem.accesskey;" |
michael@0 | 475 | observes="sync-syncnow-state" |
michael@0 | 476 | oncommand="gSyncUI.doSync(event);"/> |
michael@0 | 477 | <menuitem id="sync-reauthitem" |
michael@0 | 478 | label="&syncReAuthItem.label;" |
michael@0 | 479 | accesskey="&syncReAuthItem.accesskey;" |
michael@0 | 480 | observes="sync-reauth-state" |
michael@0 | 481 | oncommand="gSyncUI.openSignInAgainPage();"/> |
michael@0 | 482 | #endif |
michael@0 | 483 | <menuseparator id="devToolsSeparator"/> |
michael@0 | 484 | <menu id="webDeveloperMenu" |
michael@0 | 485 | label="&webDeveloperMenu.label;" |
michael@0 | 486 | accesskey="&webDeveloperMenu.accesskey;"> |
michael@0 | 487 | <menupopup id="menuWebDeveloperPopup"> |
michael@0 | 488 | <menuitem id="menu_devToolbox" |
michael@0 | 489 | observes="devtoolsMenuBroadcaster_DevToolbox" |
michael@0 | 490 | accesskey="&devToolboxMenuItem.accesskey;"/> |
michael@0 | 491 | <menuseparator id="menu_devtools_separator"/> |
michael@0 | 492 | <menuitem id="menu_devToolbar" |
michael@0 | 493 | observes="devtoolsMenuBroadcaster_DevToolbar" |
michael@0 | 494 | accesskey="&devToolbarMenu.accesskey;"/> |
michael@0 | 495 | <menuitem id="menu_devAppMgr" |
michael@0 | 496 | observes="devtoolsMenuBroadcaster_DevAppMgr" |
michael@0 | 497 | accesskey="&devAppMgrMenu.accesskey;"/> |
michael@0 | 498 | <menuitem id="menu_browserToolbox" |
michael@0 | 499 | observes="devtoolsMenuBroadcaster_BrowserToolbox" |
michael@0 | 500 | accesskey="&browserToolboxMenu.accesskey;"/> |
michael@0 | 501 | <menuitem id="menu_browserConsole" |
michael@0 | 502 | observes="devtoolsMenuBroadcaster_BrowserConsole" |
michael@0 | 503 | accesskey="&browserConsoleCmd.accesskey;"/> |
michael@0 | 504 | <menuitem id="menu_responsiveUI" |
michael@0 | 505 | observes="devtoolsMenuBroadcaster_ResponsiveUI" |
michael@0 | 506 | accesskey="&responsiveDesignTool.accesskey;"/> |
michael@0 | 507 | <menuitem id="menu_eyedropper" |
michael@0 | 508 | observes="devtoolsMenuBroadcaster_Eyedropper" |
michael@0 | 509 | accesskey="&eyedropper.accesskey;"/> |
michael@0 | 510 | <menuitem id="menu_scratchpad" |
michael@0 | 511 | observes="devtoolsMenuBroadcaster_Scratchpad" |
michael@0 | 512 | accesskey="&scratchpad.accesskey;"/> |
michael@0 | 513 | <menuitem id="menu_pageSource" |
michael@0 | 514 | observes="devtoolsMenuBroadcaster_PageSource" |
michael@0 | 515 | accesskey="&pageSourceCmd.accesskey;"/> |
michael@0 | 516 | <menuitem id="javascriptConsole" |
michael@0 | 517 | observes="devtoolsMenuBroadcaster_ErrorConsole" |
michael@0 | 518 | accesskey="&errorConsoleCmd.accesskey;"/> |
michael@0 | 519 | <menuitem id="menu_devtools_connect" |
michael@0 | 520 | observes="devtoolsMenuBroadcaster_connect"/> |
michael@0 | 521 | <menuseparator id="devToolsEndSeparator"/> |
michael@0 | 522 | <menuitem id="getMoreDevtools" |
michael@0 | 523 | observes="devtoolsMenuBroadcaster_GetMoreTools" |
michael@0 | 524 | accesskey="&getMoreDevtoolsCmd.accesskey;"/> |
michael@0 | 525 | </menupopup> |
michael@0 | 526 | </menu> |
michael@0 | 527 | <menuitem id="menu_pageInfo" |
michael@0 | 528 | accesskey="&pageInfoCmd.accesskey;" |
michael@0 | 529 | label="&pageInfoCmd.label;" |
michael@0 | 530 | #ifndef XP_WIN |
michael@0 | 531 | key="key_viewInfo" |
michael@0 | 532 | #endif |
michael@0 | 533 | command="View:PageInfo"/> |
michael@0 | 534 | #ifndef XP_UNIX |
michael@0 | 535 | <menuseparator id="prefSep"/> |
michael@0 | 536 | <menuitem id="menu_preferences" |
michael@0 | 537 | label="&preferencesCmd2.label;" |
michael@0 | 538 | accesskey="&preferencesCmd2.accesskey;" |
michael@0 | 539 | oncommand="openPreferences();"/> |
michael@0 | 540 | #endif |
michael@0 | 541 | </menupopup> |
michael@0 | 542 | </menu> |
michael@0 | 543 | |
michael@0 | 544 | #ifdef XP_MACOSX |
michael@0 | 545 | <menu id="windowMenu" /> |
michael@0 | 546 | #endif |
michael@0 | 547 | <menu id="helpMenu" /> |
michael@0 | 548 | </menubar> |