browser/base/content/baseMenuOverlay.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0"?>
michael@0 2
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 <!DOCTYPE overlay [
michael@0 8 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
michael@0 9 %brandDTD;
michael@0 10 <!ENTITY % baseMenuOverlayDTD SYSTEM "chrome://browser/locale/baseMenuOverlay.dtd">
michael@0 11 %baseMenuOverlayDTD;
michael@0 12 ]>
michael@0 13 <overlay id="baseMenuOverlay"
michael@0 14 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
michael@0 15 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 16
michael@0 17 <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
michael@0 18
michael@0 19 #ifdef XP_MACOSX
michael@0 20 <!-- nsMenuBarX hides these and uses them to build the Application menu.
michael@0 21 When using Carbon widgets for Mac OS X widgets, some of these are not
michael@0 22 used as they only apply to Cocoa widget builds. All version of Firefox
michael@0 23 through Firefox 2 will use Carbon widgets. -->
michael@0 24 <menupopup id="menu_ToolsPopup">
michael@0 25 <menuitem id="menu_preferences" label="&preferencesCmdMac.label;" key="key_preferencesCmdMac" oncommand="openPreferences();"/>
michael@0 26 <menuitem id="menu_mac_services" label="&servicesMenuMac.label;"/>
michael@0 27 <menuitem id="menu_mac_hide_app" label="&hideThisAppCmdMac.label;" key="key_hideThisAppCmdMac"/>
michael@0 28 <menuitem id="menu_mac_hide_others" label="&hideOtherAppsCmdMac.label;" key="key_hideOtherAppsCmdMac"/>
michael@0 29 <menuitem id="menu_mac_show_all" label="&showAllAppsCmdMac.label;"/>
michael@0 30 </menupopup>
michael@0 31 <!-- Mac window menu -->
michael@0 32 #include ../../../toolkit/content/macWindowMenu.inc
michael@0 33 #endif
michael@0 34
michael@0 35 #ifdef XP_WIN
michael@0 36 <menu id="helpMenu"
michael@0 37 label="&helpMenuWin.label;"
michael@0 38 accesskey="&helpMenuWin.accesskey;">
michael@0 39 #else
michael@0 40 <menu id="helpMenu"
michael@0 41 label="&helpMenu.label;"
michael@0 42 accesskey="&helpMenu.accesskey;">
michael@0 43 #endif
michael@0 44 <menupopup id="menu_HelpPopup" onpopupshowing="buildHelpMenu();">
michael@0 45 <menuitem id="menu_openHelp"
michael@0 46 oncommand="openHelpLink('firefox-help')"
michael@0 47 onclick="checkForMiddleClick(this, event);"
michael@0 48 label="&productHelp.label;"
michael@0 49 accesskey="&productHelp.accesskey;"
michael@0 50 #ifdef XP_MACOSX
michael@0 51 key="key_openHelpMac"/>
michael@0 52 #else
michael@0 53 />
michael@0 54 #endif
michael@0 55 <menuitem id="menu_openTour"
michael@0 56 oncommand="openTourPage();"
michael@0 57 label="&helpShowTour.label;"
michael@0 58 accesskey="&helpShowTour.accesskey;"/>
michael@0 59 <menuitem id="menu_keyboardShortcuts"
michael@0 60 oncommand="openHelpLink('keyboard-shortcuts')"
michael@0 61 onclick="checkForMiddleClick(this, event);"
michael@0 62 label="&helpKeyboardShortcuts.label;"
michael@0 63 accesskey="&helpKeyboardShortcuts.accesskey;"/>
michael@0 64 #ifdef MOZ_SERVICES_HEALTHREPORT
michael@0 65 <menuitem id="healthReport"
michael@0 66 label="&healthReport.label;"
michael@0 67 accesskey="&healthReport.accesskey;"
michael@0 68 oncommand="openHealthReport()"
michael@0 69 onclick="checkForMiddleClick(this, event);"/>
michael@0 70 #endif
michael@0 71 <menuitem id="troubleShooting"
michael@0 72 accesskey="&helpTroubleshootingInfo.accesskey;"
michael@0 73 label="&helpTroubleshootingInfo.label;"
michael@0 74 oncommand="openTroubleshootingPage()"
michael@0 75 onclick="checkForMiddleClick(this, event);"/>
michael@0 76 <menuitem id="feedbackPage"
michael@0 77 accesskey="&helpFeedbackPage.accesskey;"
michael@0 78 label="&helpFeedbackPage.label;"
michael@0 79 oncommand="openFeedbackPage()"
michael@0 80 onclick="checkForMiddleClick(this, event);"/>
michael@0 81 <menuitem id="helpSafeMode"
michael@0 82 accesskey="&helpSafeMode.accesskey;"
michael@0 83 label="&helpSafeMode.label;"
michael@0 84 oncommand="safeModeRestart();"/>
michael@0 85 <menuseparator id="aboutSeparator"/>
michael@0 86 <menuitem id="aboutName"
michael@0 87 accesskey="&aboutProduct.accesskey;"
michael@0 88 label="&aboutProduct.label;"
michael@0 89 oncommand="openAboutDialog();"/>
michael@0 90 </menupopup>
michael@0 91 </menu>
michael@0 92
michael@0 93 <keyset id="baseMenuKeyset">
michael@0 94 #ifdef XP_MACOSX
michael@0 95 <key id="key_openHelpMac"
michael@0 96 oncommand="openHelpLink('firefox-osxkey');"
michael@0 97 key="&helpMac.commandkey;"
michael@0 98 modifiers="accel"/>
michael@0 99 <!-- These are used to build the Application menu under Cocoa widgets -->
michael@0 100 <key id="key_preferencesCmdMac"
michael@0 101 key="&preferencesCmdMac.commandkey;"
michael@0 102 modifiers="accel"/>
michael@0 103 <key id="key_hideThisAppCmdMac"
michael@0 104 key="&hideThisAppCmdMac.commandkey;"
michael@0 105 modifiers="accel"/>
michael@0 106 <key id="key_hideOtherAppsCmdMac"
michael@0 107 key="&hideOtherAppsCmdMac.commandkey;"
michael@0 108 modifiers="accel,alt"/>
michael@0 109 #endif
michael@0 110 </keyset>
michael@0 111
michael@0 112 <stringbundleset id="stringbundleset">
michael@0 113 <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
michael@0 114 <stringbundle id="bundle_browser_region" src="chrome://browser-region/locale/region.properties"/>
michael@0 115 </stringbundleset>
michael@0 116 </overlay>

mercurial