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