Bug 575870 - Enable the firefox button on xp themed, classic, and aero basic. r=dao...
[mozilla-central.git] / browser / base / content / browser.xul
blobcc1555e886972b70000049c67e72635705c6f944
1 #filter substitution
2 <?xml version="1.0"?>
3 # -*- Mode: HTML -*-
5 # ***** BEGIN LICENSE BLOCK *****
6 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
8 # The contents of this file are subject to the Mozilla Public License Version
9 # 1.1 (the "License"); you may not use this file except in compliance with
10 # the License. You may obtain a copy of the License at
11 # http://www.mozilla.org/MPL/
13 # Software distributed under the License is distributed on an "AS IS" basis,
14 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
15 # for the specific language governing rights and limitations under the
16 # License.
18 # The Original Code is Mozilla Communicator client code, released
19 # March 31, 1998.
21 # The Initial Developer of the Original Code is
22 # Netscape Communications Corporation.
23 # Portions created by the Initial Developer are Copyright (C) 1998-2000
24 # the Initial Developer. All Rights Reserved.
26 # Contributor(s):
27 #   Blake Ross <blake@cs.stanford.edu>
28 #   David Hyatt <hyatt@mozilla.org>
29 #   Joe Hewitt <hewitt@netscape.com>
30 #   Pierre Chanial <chanial@noos.fr>
31 #   Dean Tessman <dean_tessman@hotmail.com>
32 #   Johnathan Nightingale <johnath@mozilla.com>
33 #   Dão Gottwald <dao@mozilla.com>
34 #   Ehsan Akhgari <ehsan.akhgari@gmail.com>
35 #   Robert Strong <robert.bugzilla@gmail.com>
36 #   Rob Campbell <rcampbell@mozilla.com>
37 #   Patrick Walton <pcwalton@mozilla.com>
39 # Alternatively, the contents of this file may be used under the terms of
40 # either the GNU General Public License Version 2 or later (the "GPL"), or
41 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
42 # in which case the provisions of the GPL or the LGPL are applicable instead
43 # of those above. If you wish to allow use of your version of this file only
44 # under the terms of either the GPL or the LGPL, and not to allow others to
45 # use your version of this file under the terms of the MPL, indicate your
46 # decision by deleting the provisions above and replace them with the notice
47 # and other provisions required by the GPL or the LGPL. If you do not delete
48 # the provisions above, a recipient may use your version of this file under
49 # the terms of any one of the MPL, the GPL or the LGPL.
51 # ***** END LICENSE BLOCK *****
53 <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
54 <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
55 <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
57 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
58 <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
59 <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
61 # All DTD information is stored in a separate file so that it can be shared by
62 # hiddenWindow.xul.
63 #include browser-doctype.inc
65 <window id="main-window"
66         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
67         xmlns:svg="http://www.w3.org/2000/svg"
68         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
69         onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
70         title="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
71         title_normal="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
72 #ifdef XP_MACOSX
73         title_privatebrowsing="&mainWindow.title;@PRE_RELEASE_SUFFIX@&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
74         titledefault="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
75         titlemodifier=""
76         titlemodifier_normal=""
77         titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
78 #else
79         title_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
80         titlemodifier="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
81         titlemodifier_normal="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
82         titlemodifier_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
83 #endif
84         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
85         lightweightthemes="true"
86         lightweightthemesfooter="browser-bottombox"
87         windowtype="navigator:browser"
88         screenX="4" screenY="4"
89         browsingmode="normal"
90         persist="screenX screenY width height sizemode"> 
92 # All JS files which are not content (only) dependent that browser.xul
93 # wishes to include *must* go into the global-scripts.inc file
94 # so that they can be shared by macBrowserOverlay.xul.
95 #include global-scripts.inc
96 <script type="application/javascript" src="chrome://browser/content/nsContextMenu.js"/>
98 #ifdef MOZ_SAFE_BROWSING
99 <script type="application/javascript" src="chrome://browser/content/safebrowsing/sb-loader.js"/>
100 #endif
101 <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
103 <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
105 # All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
106 # browser-sets.inc file for sharing with hiddenWindow.xul.
107 #include browser-sets.inc
109   <popupset id="mainPopupSet">
110     <menupopup id="tabContextMenu"
111                onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
112                onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
113       <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
114                 oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
115       <menuitem id="context_reloadAllTabs" label="&reloadAllTabs.label;" accesskey="&reloadAllTabs.accesskey;"
116                 tbattr="tabbrowser-multiple"
117                 oncommand="gBrowser.reloadAllTabs();"/>
118       <menuseparator/>
119       <menuitem id="context_openTabInWindow" label="&openTabInNewWindow.label;"
120                 accesskey="&openTabInNewWindow.accesskey;"
121                 tbattr="tabbrowser-multiple"
122                 oncommand="gBrowser.replaceTabWithWindow(TabContextMenu.contextTab);"/>
123       <menuitem id="context_pinTab" label="&pinTab.label;"
124                 accesskey="&pinTab.accesskey;"
125                 oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
126       <menuitem id="context_unpinTab" label="&unpinTab.label;" hidden="true"
127                 accesskey="&unpinTab.accesskey;"
128                 oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/>
129       <menu id="context_tabViewMenu" label="&moveToGroup.label;"
130             accesskey="&moveToGroup.accesskey;">
131         <menupopup id="context_tabViewMenuPopup"
132                    onpopupshowing="if (event.target == this) TabView.updateContextMenu(TabContextMenu.contextTab, this);">
133           <menuseparator id="context_tabViewNamedGroups" hidden="true"/>
134           <menuitem label="&moveToNewGroup.label;"
135                     oncommand="TabView.moveTabTo(TabContextMenu.contextTab, null);"/>
136         </menupopup>
137       </menu>
138       <menuseparator/>
139       <menuitem id="context_bookmarkTab"
140                 label="&bookmarkThisTab.label;"
141                 accesskey="&bookmarkThisTab.accesskey;"
142                 oncommand="BookmarkThisTab(TabContextMenu.contextTab);"/>
143       <menuitem id="context_bookmarkAllTabs"
144                 label="&bookmarkAllTabs.label;"
145                 accesskey="&bookmarkAllTabs.accesskey;"
146                 command="Browser:BookmarkAllTabs"/>
147       <menuseparator/>
148       <menuitem id="context_closeOtherTabs" label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;"
149                 oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/>
150       <menuitem id="context_undoCloseTab"
151                 label="&undoCloseTab.label;"
152                 accesskey="&undoCloseTab.accesskey;"
153                 observes="History:UndoCloseTab"/>
154       <menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;"
155                 oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/>
156     </menupopup>
158     <menupopup id="backForwardMenu"
159                onpopupshowing="return FillHistoryMenu(event.target);"
160                oncommand="gotoHistoryIndex(event);"
161                onclick="checkForMiddleClick(this, event);"/>
162     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
164     <!-- for search and content formfill/pw manager -->
165     <panel type="autocomplete" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
167     <!-- for url bar autocomplete -->
168     <panel type="autocomplete-richlistbox" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
170     <panel id="editBookmarkPanel"
171            orient="vertical"
172            ignorekeys="true"
173            hidden="true"
174            onpopupshown="StarUI.panelShown(event);"
175            aria-labelledby="editBookmarkPanelTitle">
176       <row id="editBookmarkPanelHeader" align="center" hidden="true">
177         <vbox align="center">
178           <image id="editBookmarkPanelStarIcon"/>
179         </vbox>
180         <vbox>
181           <label id="editBookmarkPanelTitle"/>
182           <description id="editBookmarkPanelDescription"/>
183           <hbox>
184             <button id="editBookmarkPanelUndoRemoveButton"
185                     class="editBookmarkPanelHeaderButton"
186                     hidden="true"
187                     oncommand="StarUI.undoRemoveBookmarkCommand();"
188                     label="&editBookmark.undo.label;"
189                     accesskey="&editBookmark.undo.accessKey;"/>
190             <button id="editBookmarkPanelRemoveButton"
191                     class="editBookmarkPanelHeaderButton"
192                     oncommand="StarUI.removeBookmarkButtonCommand();"
193                     accesskey="&editBookmark.removeBookmark.accessKey;"/>
194             <button id="editBookmarkPanelEditButton"
195                     class="editBookmarkPanelHeaderButton"
196                     oncommand="StarUI.editButtonCommand();"
197                     label="&editBookmark.edit.label;"
198                     accesskey="&editBookmark.edit.accessKey;"/>
199           </hbox>
200         </vbox>
201       </row>
202       <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
203       <hbox id="editBookmarkPanelBottomButtons" pack="end">
204 #ifndef XP_UNIX
205         <button id="editBookmarkPanelDoneButton"
206                 class="editBookmarkPanelBottomButton"
207                 label="&editBookmark.done.label;"
208                 default="true"
209                 oncommand="StarUI.panel.hidePopup();"/>
210         <button id="editBookmarkPanelDeleteButton"
211                 class="editBookmarkPanelBottomButton"
212                 label="&editBookmark.cancel.label;"
213                 oncommand="StarUI.cancelButtonOnCommand();"/>
214 #else
215         <button id="editBookmarkPanelDeleteButton"
216                 class="editBookmarkPanelBottomButton"
217                 label="&editBookmark.cancel.label;"
218                 oncommand="StarUI.cancelButtonOnCommand();"/>
219         <button id="editBookmarkPanelDoneButton"
220                 class="editBookmarkPanelBottomButton"
221                 label="&editBookmark.done.label;"
222                 default="true"
223                 oncommand="StarUI.panel.hidePopup();"/>
224 #endif
225       </hbox>
226     </panel>
228     <panel id="highlighter-panel"
229            hidden="true"
230            ignorekeys="true"
231            noautofocus="true"
232            noautohide="true"
233            onclick="InspectorUI.stopInspecting();"
234            onmousemove="InspectorUI.highlighter.handleMouseMove(event);"
235            onMozMousePixelScroll="InspectorUI.highlighter.handlePixelScroll(event);"/>
237     <panel id="inspector-panel"
238            orient="vertical"
239            hidden="true"
240            ignorekeys="true"
241            noautofocus="true"
242            noautohide="true"
243            titlebar="normal"
244            label="&inspectPanelTitle.label;">
245       <toolbar id="inspector-toolbar"
246                nowindowdrag="true">
247         <toolbarbutton id="inspector-inspect-toolbutton"
248                        label="&inspectButton.label;"
249                        accesskey="&inspectButton.accesskey;"
250                        class="toolbarbutton-text"
251                        command="Inspector:Inspect"/>
252         <toolbarbutton id="inspector-previous-toolbutton"
253                        label="&inspectPreviousButton.label;"
254                        accesskey="&inspectPreviousButton.accesskey;"
255                        class="toolbarbutton-text"
256                        command="Inspector:Previous"/>
257         <toolbarbutton id="inspector-next-toolbutton"
258                        label="&inspectNextButton.label;"
259                        accesskey="&inspectNextButton.accesskey;"
260                        class="toolbarbutton-text"
261                        command="Inspector:Next"/>
262         <toolbarbutton id="inspector-style-toolbutton"
263                        label="&inspectStyleButton.label;"
264                        accesskey="&inspectStyleButton.accesskey;"
265                        class="toolbarbutton-text"
266                        oncommand="InspectorUI.toggleStylePanel();'"/>
267         <toolbarbutton id="inspector-dom-toolbutton"
268                        label="&inspectDOMButton.label;"
269                        accesskey="&inspectDOMButton.accesskey;"
270                        class="toolbarbutton-text"
271                        oncommand="InspectorUI.toggleDOMPanel();"/>
272       </toolbar>
273       <tree id="inspector-tree" class="plain"
274             seltype="single"
275             treelines="true"
276             onselect="InspectorUI.onTreeSelected()"
277             flex="1">
278         <treecols>
279           <treecol id="colNodeName" label="nodeName" primary="true"
280                    persist="width,hidden,ordinal" flex="1"/>
281           <splitter class="tree-splitter"/>
282           <treecol id="colNodeValue" label="nodeValue"
283                    persist="width,hidden,ordinal" flex="1"/>
284         </treecols>
285         <treechildren id="inspector-tree-body"/>
286       </tree>
287       <hbox align="end">
288         <spacer flex="1" />
289         <resizer dir="bottomend" />
290       </hbox>
291     </panel>
293     <panel id="inspector-style-panel"
294            hidden="true"
295            orient="vertical"
296            ignorekeys="true"
297            noautofocus="true"
298            noautohide="true"
299            titlebar="normal"
300            label="&inspectStylePanelTitle.label;">
301         <listbox id="inspector-style-listbox" flex="1"/>
302         <hbox align="end">
303           <spacer flex="1" />
304           <resizer dir="bottomend"/>
305         </hbox>
306     </panel>
308     <menupopup id="toolbar-context-menu"
309                onpopupshowing="onViewToolbarsPopupShowing(event);">
310       <menuseparator/>
311       <menuitem command="cmd_ToggleTabsOnTop"
312                 type="checkbox"
313                 label="&viewTabsOnTop.label;"
314                 accesskey="&viewTabsOnTop.accesskey;"/>
315       <menuseparator/>
316       <menuitem command="cmd_CustomizeToolbars"
317                 label="&viewCustomizeToolbar.label;"
318                 accesskey="&viewCustomizeToolbar.accesskey;"/>
319     </menupopup>
321     <menupopup id="blockedPopupOptions" 
322                onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
323       <menuitem observes="blockedPopupAllowSite"/>
324       <menuitem observes="blockedPopupEditSettings"/>
325       <menuitem observes="blockedPopupDontShowMessage"/>
326       <menuseparator observes="blockedPopupsSeparator"/>
327     </menupopup>
329     <menupopup id="autohide-context"
330            onpopupshowing="FullScreen.getAutohide(this.firstChild);">
331       <menuitem type="checkbox" label="&fullScreenAutohide.label;"
332                 accesskey="&fullScreenAutohide.accesskey;"
333                 oncommand="FullScreen.setAutohide();"/>
334       <menuseparator/>
335       <menuitem label="&fullScreenExit.label;"
336                 accesskey="&fullScreenExit.accesskey;"
337                 oncommand="BrowserFullScreen();"/>
338     </menupopup>
340     <menupopup id="contentAreaContextMenu"
341                onpopupshowing="if (event.target != this)
342                                  return true;
343                                gContextMenu = new nsContextMenu(this, gBrowser);
344                                if (gContextMenu.shouldDisplay)
345                                  updateEditUIVisibility();
346                                return gContextMenu.shouldDisplay;"
347                onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
348 #include browser-context.inc
349     </menupopup>
351     <menupopup id="placesContext"/>
353     <panel id="notification-popup" position="after_start" noautofocus="true" hidden="true"/>
355     <!-- Popup for site identity information -->
356     <panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
357            onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
358            level="top">
359       <hbox id="identity-popup-container" align="top">
360         <image id="identity-popup-icon"/>
361         <vbox id="identity-popup-content-box">
362           <label id="identity-popup-connectedToLabel"
363                  class="identity-popup-label"
364                  value="&identity.connectedTo;"/>
365           <label id="identity-popup-connectedToLabel2"
366                  class="identity-popup-label"
367                  value="&identity.unverifiedsite2;"/>
368           <description id="identity-popup-content-host"
369                        class="identity-popup-description"/>
370           <label id="identity-popup-runByLabel"
371                  class="identity-popup-label"
372                  value="&identity.runBy;"/>
373           <description id="identity-popup-content-owner"
374                        class="identity-popup-description"/>
375           <description id="identity-popup-content-supplemental"
376                        class="identity-popup-description"/>
377           <description id="identity-popup-content-verifier"
378                        class="identity-popup-description"/>
379           <hbox id="identity-popup-encryption" flex="1">
380             <vbox>
381               <image id="identity-popup-encryption-icon"/>
382             </vbox>
383             <description id="identity-popup-encryption-label" flex="1"
384                          class="identity-popup-description"/>
385           </hbox>
386           <!-- Footer button to open security page info -->
387           <hbox pack="end">
388             <button id="identity-popup-more-info-button"
389                     label="&identity.moreInfoLinkText;"
390                     onblur="gIdentityHandler.hideIdentityPopup();"
391                     oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
392           </hbox>
393         </vbox>
394       </hbox>
395     </panel>
397     <tooltip id="urlTooltip">
398       <label crop="center" flex="1" class="tooltip-label"/>
399     </tooltip>
401     <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
402       <hbox>
403         <button class="ctrlTab-preview" flex="1"/>
404         <button class="ctrlTab-preview" flex="1"/>
405         <button class="ctrlTab-preview" flex="1"/>
406         <button class="ctrlTab-preview" flex="1"/>
407         <button class="ctrlTab-preview" flex="1"/>
408         <button class="ctrlTab-preview" flex="1"/>
409       </hbox>
410       <hbox pack="center">
411         <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
412       </hbox>
413     </panel>
415     <panel id="allTabs-panel" hidden="true" norestorefocus="true" ignorekeys="true"
416            onmouseover="allTabs._updateTabCloseButton(event);">
417       <hbox id="allTabs-meta" align="center">
418         <spacer flex="1"/>
419         <textbox id="allTabs-filter"
420                  tooltiptext="&allTabs.filter.emptyText;"
421                  type="search"
422                  oncommand="allTabs.filter();"/>
423         <spacer flex="1"/>
424         <toolbarbutton class="KUI-panel-closebutton"
425                        oncommand="allTabs.close()"
426                        tooltiptext="&closeCmd.label;"/>
427       </hbox>
428       <stack id="allTabs-stack">
429         <vbox id="allTabs-container"><hbox/></vbox>
430         <toolbarbutton id="allTabs-tab-close-button"
431                        class="tab-close-button"
432                        oncommand="allTabs.closeTab(event);"
433                        tooltiptext="&closeCmd.label;"
434                        style="visibility:hidden"/>
435       </stack>
436     </panel>
438     <!-- Bookmarks and history tooltip -->
439     <tooltip id="bhTooltip"/>
441     <panel id="customizeToolbarSheetPopup"
442            noautohide="true">
443       <iframe id="customizeToolbarSheetIFrame"
444               style="&dialog.style;"
445               hidden="true"/>
446     </panel>
448     <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
449   </popupset>
451 #ifdef MENUBAR_CAN_AUTOHIDE
452   <vbox id="titlebar">
453   <hbox id="titlebar-content">
454   <hbox id="appmenu-button-container" align="start">
455   <button id="appmenu-button"
456           type="menu"
457           label="&brandShortName;"
458           style="-moz-user-focus: ignore;">
459     <menupopup id="appmenu-popup"
460                onpopupshowing="updateEditUIVisibility();">
461       <hbox>
462         <vbox id="appmenuPrimaryPane">
463           <hbox flex="1"
464                 class="split-menuitem">
465             <menuitem id="appmenu_newTab"
466                       class="split-menuitem-item"
467                       flex="1"
468                       label="&tabCmd.label;"
469                       command="cmd_newNavigatorTab"/>
470               <menu class="split-menuitem-menu">
471                 <menupopup>
472                   <menuitem id="appmenu_newTab_popup"
473                             label="&tabCmd.label;"
474                             command="cmd_newNavigatorTab"/>
475                   <menuitem id="appmenu_newNavigator"
476                             label="&newNavigatorCmd.label;"
477                             command="cmd_newNavigator"/>
478                   <menuseparator/>
479                   <menuitem id="appmenu_openFile"
480                             label="&openFileCmd.label;"
481                             command="Browser:OpenFile"/>
482                 </menupopup>
483                </menu>
484           </hbox>
485           <menuitem id="appmenu_privateBrowsing"
486                     class="menuitem-iconic"
487                     label="&privateBrowsingCmd.start.label;"
488                     accesskey="&privateBrowsingCmd.start.accesskey;"
489                     startlabel="&privateBrowsingCmd.start.label;"
490                     stoplabel="&privateBrowsingCmd.stop.label;"
491                     command="Tools:PrivateBrowsing"/>
492           <menuseparator class="menu-seperator"/>
493           <hbox class="split-menuitem">
494             <menuitem id="appmenu-edit-menuitem"
495                       label="&editMenu.label;"
496                       disabled="true"/>
497             <toolbarbutton id="appmenu-cut"
498                            class="appmenu-edit-button"
499                            command="cmd_cut"
500                            onclick="if (!this.disabled) hidePopup();"
501                            tooltiptext="&cutButton.tooltip;"/>
502             <toolbarbutton id="appmenu-copy"
503                            class="appmenu-edit-button"
504                            command="cmd_copy"
505                            onclick="if (!this.disabled) hidePopup();"
506                            tooltiptext="&copyButton.tooltip;"/>
507             <toolbarbutton id="appmenu-paste"
508                            class="appmenu-edit-button"
509                            command="cmd_paste"
510                            onclick="if (!this.disabled) hidePopup();"
511                            tooltiptext="&pasteButton.tooltip;"/>
512           </hbox>
513           <menuitem id="appmenu_find"
514                     label="&appMenuFind.label;"
515                     command="cmd_find"/>
516           <menuseparator/>
517           <menuitem id="appmenu_savePage"
518                     label="&savePageCmd.label;"
519                     command="Browser:SavePage"/>
520           <menuitem id="appmenu_sendLink"
521                     label="&sendPageCmd.label;"
522                     command="Browser:SendLink"/>
523           <hbox flex="1"
524                 class="split-menuitem">
525             <menuitem id="appmenu_print"
526                       class="menuitem-iconic split-menuitem-item"
527                       flex="1"
528                       label="&printCmd.label;"
529                       command="cmd_print"/>
530             <menu class="split-menuitem-menu">
531               <menupopup>
532                 <menuitem id="appmenu_print_popup"
533                           class="menuitem-iconic"
534                           label="&printCmd.label;"
535                           command="cmd_print"/>
536                 <menuitem id="appmenu_printPreview"
537                           label="&printPreviewCmd.label;"
538                           command="cmd_printPreview"/>
539                 <menuitem id="appmenu_printSetup"
540                           label="&printSetupCmd.label;"
541                           command="cmd_pageSetup"/>
542               </menupopup>
543             </menu>
544           </hbox>
545           <menuseparator/>
546           <menu id="appmenu_developer"
547                 label="&developerMenu.label;">
548             <menupopup id="appmenu_developer_popup">
549               <menuitem id="appmenu_webConsole"
550                         label="&webConsoleCmd.label;"
551                         type="checkbox"
552                         oncommand="HUDConsoleUI.toggleHUD();"/>
553               <menuitem id="appmenu_pageInspect"
554                         label="&inspectMenu.label;"
555                         type="checkbox"
556                         command="Tools:Inspect"/>
557               <menuseparator/>
558               <menuitem id="appmenu_pageSource"
559                         label="&viewPageSourceCmd.label;"
560                         command="View:PageSource"/>
561               <menuseparator/>
562               <menuitem label="&goOfflineCmd.label;"
563                         accesskey="&goOfflineCmd.accesskey;"
564                         type="checkbox"
565                         oncommand="BrowserOffline.toggleOfflineStatus();"/>
566             </menupopup>
567           </menu>
568           <menuseparator/>
569           <menuitem id="appmenu_fullScreen"
570                     label="&fullScreenCmd.label;"
571                     type="checkbox"
572                     observes="View:FullScreen"/>
573           <menuitem id="appmenu-quit"
574                     class="menuitem-iconic"
575 #ifdef XP_WIN
576                     label="&quitApplicationCmdWin.label;"
577 #else
578                     label="&quitApplicationCmd.label;"
579 #endif
580                     command="cmd_quitApplication"/>
581         </vbox>
582         <vbox id="appmenuSecondaryPane">
583           <hbox class="split-menuitem">
584             <menuitem id="appmenu_bookmarks"
585                       class="menuitem-iconic split-menuitem-item"
586                       flex="1"
587                       label="&bookmarksMenu.label;"
588                       command="Browser:ShowAllBookmarks"/>
589             <menu id="appmenu_bookmarksMenu"
590                   class="split-menuitem-menu">
591               <menupopup id="appmenu_bookmarksMenupopup"
592                          placespopup="true"
593                          context="placesContext"
594                          openInTabs="children"
595                          oncommand="BookmarksEventHandler.onCommand(event);"
596                          onclick="BookmarksEventHandler.onClick(event);"
597                          onpopupshowing="BookmarksMenuButton.onPopupShowing(event);
598                                          if (!this.parentNode._placesView)
599                                            new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');
600                                          this.appendChild(document.getElementById('appmenu_unsortedBookmarks_seperator'));
601                                          this.appendChild(document.getElementById('appmenu_unsortedBookmarks'));"
602                          tooltip="bhTooltip"
603                          popupsinherittooltip="true">
604                 <menuseparator id="appmenu_unsortedBookmarks_seperator"/>
605                 <menuitem id="appmenu_unsortedBookmarks"
606                           label="&appMenuUnsorted.label;"
607                           oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"
608                           class="menuitem-iconic"/>
609                 <menuitem id="appmenu_organizeBookmarks"
610                           label="&organizeBookmarks.label;"
611                           key="manBookmarkKb"
612                           command="Browser:ShowAllBookmarks"
613                           context=""/>
614                 <menuseparator/>
615                 <menuitem id="appmenu_bookmarkThisPage"
616                           class="menuitem-iconic"
617                           label="&bookmarkThisPageCmd.label;"
618                           command="Browser:AddBookmarkAs"
619                           key="addBookmarkAsKb"/>
620                 <menuitem id="appmenu_subscribeToPage"
621                           class="menuitem-iconic"
622                           label="&subscribeToPageMenuitem.label;"
623                           oncommand="return FeedHandler.subscribeToFeed(null, event);"
624                           onclick="checkForMiddleClick(this, event);"
625                           observes="singleFeedMenuitemState"/>
626                 <menu id="appmenu_subscribeToPageMenu"
627                       class="menu-iconic"
628                       label="&subscribeToPageMenupopup.label;"
629                       observes="multipleFeedsMenuState">
630                   <menupopup id="appmenu_subscribeToPageMenupopup"
631                              onpopupshowing="return FeedHandler.buildFeedList(event.target);"
632                              oncommand="return FeedHandler.subscribeToFeed(null, event);"
633                              onclick="checkForMiddleClick(this, event);"/>
634                 </menu>
635                 <menuseparator/>
636               </menupopup>
637             </menu>
638           </hbox>
639           <hbox class="split-menuitem">
640             <menuitem id="appmenu_history"
641                       class="menuitem-iconic split-menuitem-item"
642                       flex="1"
643                       label="&historyMenu.label;"
644                       command="Browser:ShowAllHistory"/>
645             <menu id="appmenu_historyMenu"
646                   class="split-menuitem-menu">
647               <menupopup id="appmenu_historyMenupopup"
648                          placespopup="true"
649                          oncommand="this.parentNode._placesView._onCommand(event);"
650                          onclick="checkForMiddleClick(this, event);"
651                          onpopupshowing="if (!this.parentNode._placesView)
652                                            new HistoryMenu(event);"
653                          tooltip="bhTooltip"
654                          popupsinherittooltip="true">
655                 <menuitem id="appmenu_showAllHistory"
656                           label="&showAllHistoryCmd2.label;"
657                           key="showAllHistoryKb"
658                           command="Browser:ShowAllHistory"/>
659                 <menuseparator/>
660                 <menuitem id="appmenu_sanitizeHistory"
661                           label="&clearRecentHistory.label;"
662                           key="key_sanitize"
663                           command="Tools:Sanitize"/>
664                 <menuseparator class="hide-if-empty-places-result"/>
665                 <menu id="appmenu_recentlyClosedTabsMenu"
666                       class="recentlyClosedTabsMenu"
667                       label="&historyUndoMenu.label;"
668                       disabled="true">
669                   <menupopup id="appmenu_recentlyClosedTabsMenupopup"
670                              onpopupshowing="document.getElementById('appmenu_historyMenu')._placesView.populateUndoSubmenu();"/>
671                 </menu>
672                 <menu id="appmenu_recentlyClosedWindowsMenu"
673                       class="recentlyClosedWindowsMenu"
674                       label="&historyUndoWindowMenu.label;"
675                       disabled="true">
676                   <menupopup id="appmenu_recentlyClosedWindowsMenupopup"
677                              onpopupshowing="document.getElementById('appmenu_historyMenu')._placesView.populateUndoWindowSubmenu();"/>
678                 </menu>
679                 <menuseparator/>
680               </menupopup>
681             </menu>
682           </hbox>
683             <menuitem id="appmenu_downloads"
684                       label="&downloads.label;"
685                       command="Tools:Downloads"/>
686             <spacer id="appmenuSecondaryPane-spacer"/>
687             <menuitem id="appmenu_addons"
688                       class="menuitem-iconic"
689                       label="&addons.label;"
690                       command="Tools:Addons"/>
691             <hbox class="split-menuitem">
692               <menuitem id="appmenu_customize"
693                         label="&preferencesCmd.label;"
694                         class="split-menuitem-item"
695                         flex="1"
696                         oncommand="openPreferences();"/>
697               <menu class="split-menuitem-menu"
698                     label="&preferencesCmd.label;">
699                 <menupopup id="appmenu_customizeMenu"
700                            onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('appmenu_toggleStatusbar'));">
701                   <menuitem id="appmenu_preferences"
702 #ifdef XP_UNIX
703                             label="&preferencesCmdUnix.label;"
704 #else
705                             label="&preferencesCmd.label;"
706 #endif
707                             oncommand="openPreferences();"/>
708                   <menuseparator/>
709                   <menuitem id="appmenu_toggleStatusbar"
710                             type="checkbox"
711                             command="cmd_toggleTaskbar"
712                             observes="toggle_taskbar"/>
713                   <menuseparator/>
714                   <menuitem id="appmenu_toggleTabsOnTop"
715                             label="&viewTabsOnTop.label;"
716                             type="checkbox"
717                             command="cmd_ToggleTabsOnTop"/>
718                   <menuitem id="appmenu_toolbarLayout"
719                             label="&appMenuToolbarLayout.label;"
720                             command="cmd_CustomizeToolbars"/>
721                 </menupopup>
722               </menu>
723             </hbox>
724             <hbox class="split-menuitem">
725               <menuitem id="appmenu_help"
726                         class="split-menuitem-item"
727                         flex="1"
728                         label="&helpMenu.label;"
729                         oncommand="openHelpLink('firefox-help')"/>
730               <menu class="split-menuitem-menu">
731                 <menupopup id="appmenu_helpMenupopup">
732                   <menuitem id="appmenu_openHelp"
733                             label="&helpMenu.label;"
734                             oncommand="openHelpLink('firefox-help')"
735                             onclick="checkForMiddleClick(this, event);"/>
736                   <menuitem id="appmenu_gettingStarted"
737                             label="&appMenuGettingStarted.label;"
738                             oncommand="gBrowser.loadOneTab('http://www.mozilla.com/firefox/central/', {inBackground: false});"
739                             onclick="checkForMiddleClick(this, event);"/>
740                   <menuseparator/>
741                   <menuitem id="appmenu_about"
742                             label="&aboutProduct.label;"
743                             oncommand="openAboutDialog();"/>
744                 </menupopup>
745               </menu>
746             </hbox>
747         </vbox>
748       </hbox>
749     </menupopup>
750   </button>
751   </hbox>
752   <spacer id="titlebar-spacer" flex="1"/>
753   <hbox id="titlebar-buttonbox">
754     <toolbarbutton id="titlebar-min" onclick="window.minimize();"/>
755     <toolbarbutton id="titlebar-max" onclick="onTitlebarMaxClick();"/>
756     <toolbarbutton id="titlebar-close" onclick="window.close();"/>
757   </hbox>
758   </hbox>
759   </vbox>
760 #endif
762 <deck flex="1" id="tab-view-deck">
763 <vbox flex="1">
765   <toolbox id="navigator-toolbox"
766            defaultmode="icons" mode="icons"
767 #ifdef WINCE
768            defaulticonsize="small" iconsize="small"
769 #endif
770 #ifdef XP_WIN
771            tabsontop="true"
772 #endif
773 #ifdef XP_MACOSX
774            tabsontop="true"
775 #endif
776            persist="tabsontop">
777     <!-- Menu -->
778     <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
779              defaultset="menubar-items"
780              mode="icons" iconsize="small" defaulticonsize="small"
781              lockiconsize="true"
782 #ifdef MENUBAR_CAN_AUTOHIDE
783              toolbarname="&menubarCmd.label;"
784              accesskey="&menubarCmd.accesskey;"
785 #endif
786              context="toolbar-context-menu">
787       <toolbaritem id="menubar-items" align="center">
788 # The entire main menubar is placed into browser-menubar.inc, so that it can be shared by 
789 # hiddenWindow.xul.
790 #include browser-menubar.inc
791       </toolbaritem>
792     </toolbar>
794     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
795              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
796              fullscreentoolbar="true" mode="icons" customizable="true"
797 #ifdef WINCE
798              iconsize="small" defaulticonsize="small"
799              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,bookmarks-menu-button-container,navigator-throbber,fullscreenflex,window-controls"
800 #else
801              iconsize="large"
802              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,bookmarks-menu-button-container,fullscreenflex,window-controls"
803 #endif
804              context="toolbar-context-menu">
806       <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
807                    context="backForwardMenu" removable="true"
808                    title="&backForwardItem.title;">
809         <toolbarbutton id="back-button" class="toolbarbutton-1"
810                        label="&backCmd.label;"
811                        command="Browser:BackOrBackDuplicate"
812                        onclick="checkForMiddleClick(this, event);"
813                        tooltiptext="&backButton.tooltip;"/>
814         <toolbarbutton id="forward-button" class="toolbarbutton-1"
815                        label="&forwardCmd.label;"
816                        command="Browser:ForwardOrForwardDuplicate"
817                        onclick="checkForMiddleClick(this, event);"
818                        tooltiptext="&forwardButton.tooltip;"/>
819         <toolbarbutton id="back-forward-dropmarker" type="menu"
820                        disabled="true" tooltiptext="&backForwardMenu.tooltip;"
821                        onbroadcast="if (this.disabled) this.disabled =
822                                       document.getElementById('Browser:Back').hasAttribute('disabled') &amp;&amp;
823                                       document.getElementById('Browser:Forward').hasAttribute('disabled');">
824           <!-- bug 415444: event.stopPropagation is here for the cloned version of
825                this menupopup -->
826           <menupopup context=""
827                      position="after_start"
828                      onpopupshowing="return FillHistoryMenu(event.target);"
829                      oncommand="gotoHistoryIndex(event); event.stopPropagation();"
830                      onclick="checkForMiddleClick(this, event);"/>
831           <observes element="Browser:Back" attribute="disabled"/>
832           <observes element="Browser:Forward" attribute="disabled"/>
833         </toolbarbutton>
834       </toolbaritem>
836       <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
837                      label="&reloadCmd.label;" removable="true"
838                      command="Browser:ReloadOrDuplicate"
839                      onclick="checkForMiddleClick(this, event);"
840                      tooltiptext="&reloadButton.tooltip;"/>
842       <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
843                      label="&stopCmd.label;" removable="true"
844                      command="Browser:Stop"
845                      tooltiptext="&stopButton.tooltip;"/>
847       <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
848                      persist="class" removable="true"
849                      label="&homeButton.label;"
850                      ondragover="homeButtonObserver.onDragOver(event)"
851                      ondragenter="homeButtonObserver.onDragOver(event)"
852                      ondrop="homeButtonObserver.onDrop(event)"
853                      ondragleave="homeButtonObserver.onDragLeave(event)"
854                      onclick="BrowserGoHome(event);"/>
856       <toolbaritem id="urlbar-container" align="center" flex="400" persist="width"
857                    title="&locationItem.title;" class="chromeclass-location" removable="true">
858         <textbox id="urlbar" flex="1"
859                  placeholder="&urlbar.placeholder;"
860                  type="autocomplete"
861                  autocompletesearch="history"
862                  autocompletesearchparam="enable-actions"
863                  autocompletepopup="PopupAutoCompleteRichResult"
864                  completeselectedindex="true"
865                  tabscrolling="true"
866                  showcommentcolumn="true"
867                  showimagecolumn="true"
868                  enablehistory="true"
869                  maxrows="6"
870                  newlines="stripsurroundingwhitespace"
871                  oninput="gBrowser.userTypedValue = this.value;"
872                  ontextentered="this.handleCommand(param);"
873                  ontextreverted="return this.handleRevert();"
874                  pageproxystate="invalid"
875                  onsearchbegin="LocationBarHelpers._searchBegin();"
876                  onsearchcomplete="LocationBarHelpers._searchComplete();"
877                  onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
878                  onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);">
879           <box id="notification-popup-box" hidden="true" align="center">
880             <image id="geo-notification-icon" class="notification-anchor-icon" role="button"/>
881             <image id="addons-notification-icon" class="notification-anchor-icon" role="button"/>
882           </box>
883           <!-- Use onclick instead of normal popup= syntax since the popup
884                code fires onmousedown, and hence eats our favicon drag events.
885                We only add the identity-box button to the tab order when the location bar
886                has focus, otherwise pressing F6 focuses it instead of the location bar -->
887           <box id="identity-box" role="button"
888                onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
889                onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);">
890             <hbox id="identity-box-inner" align="center">
891               <stack id="page-proxy-stack"
892                      onclick="PageProxyClickHandler(event);">
893                 <image id="urlbar-throbber" busy="false"/>
894                 <image id="page-proxy-favicon" validate="never"
895                        pageproxystate="invalid"
896                        ondragstart="proxyIconDNDObserver.onDragStart(event);"
897                        onerror="this.removeAttribute('src');"/>
898               </stack>
899               <hbox id="identity-icon-labels">
900                 <label id="identity-icon-label" class="plain" flex="1"/>
901                 <label id="identity-icon-country-label" class="plain"/>
902               </hbox>
903             </hbox>
904           </box>
905           <label id="urlbar-display" value="&urlbar.switchToTab.label;"/>
906           <hbox id="urlbar-icons">
907             <button type="menu"
908                     style="-moz-user-focus: none"
909                     class="plain urlbar-icon"
910                     id="feed-button"
911                     collapsed="true"
912                     tooltiptext="&feedButton.tooltip;"
913                     onclick="return FeedHandler.onFeedButtonClick(event);">
914               <menupopup position="after_end"
915                          id="feed-menu"
916                          onpopupshowing="return FeedHandler.buildFeedList(this);"
917                          oncommand="return FeedHandler.subscribeToFeed(null, event);"
918                          onclick="checkForMiddleClick(this, event);"/>
919             </button>
920             <image id="star-button"
921                    class="urlbar-icon"
922                    onclick="PlacesStarButton.onClick(event);"/>
923             <image id="go-button"
924                    class="urlbar-icon"
925                    tooltiptext="&goEndCap.tooltip;"
926                    onclick="gURLBar.handleCommand(event);"/>
927           </hbox>
928         </textbox>
929       </toolbaritem>
931       <toolbaritem id="search-container" title="&searchItem.title;"
932                    align="center" class="chromeclass-toolbar-additional"
933                    flex="100" persist="width" removable="true">
934         <searchbar id="searchbar" flex="1"/>
935       </toolbaritem>
937       <toolbaritem id="bookmarks-menu-button-container"
938                    class="chromeclass-toolbar-additional"
939                    removable="true"
940                    title="&bookmarksMenuButton.label;">
941         <toolbarbutton id="bookmarks-menu-button"
942                        type="menu"
943                        class="toolbarbutton-1"
944                        label="&bookmarksMenuButton.label;"
945                        tooltiptext="&bookmarksMenuButton.tooltip;"
946                        ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
947                        ondragover="PlacesMenuDNDHandler.onDragOver(event);"
948                        ondragleave="PlacesMenuDNDHandler.onDragLeave(event);"
949                        ondrop="PlacesMenuDNDHandler.onDrop(event);">
950           <menupopup id="BMB_bookmarksPopup"
951                      placespopup="true"
952                      context="placesContext"
953                      openInTabs="children"
954                      oncommand="BookmarksEventHandler.onCommand(event);"
955                      onclick="BookmarksEventHandler.onClick(event);"
956                      onpopupshowing="BookmarksMenuButton.onPopupShowing(event);
957                                      if (!this.parentNode._placesView)
958                                        new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
959                      tooltip="bhTooltip" popupsinherittooltip="true">
960             <menuitem id="BMB_bookmarkAllTabs"
961                       label="&addCurPagesCmd.label;"
962                       command="Browser:BookmarkAllTabs"
963                       key="bookmarkAllTabsKb"/>
964             <menuitem id="BMB_bookmarksShowAll"
965                       label="&organizeBookmarks.label;"
966                       command="Browser:ShowAllBookmarks"
967                       key="manBookmarkKb"/>
968             <menuseparator/>
969             <menuitem id="BMB_viewBookmarksToolbar"
970                       type="checkbox"
971                       oncommand="onViewToolbarCommand(event)"
972                       label="&viewBookmarksToolbar.label;"/>
973             <menuitem id="BMB_viewBookmarksSidebar"
974                       label="&viewBookmarksSidebar.label;"
975                       type="checkbox"
976                       oncommand="toggleSidebar('viewBookmarksSidebar');"
977                       key="viewBookmarksSidebarKb">
978               <observes element="viewBookmarksSidebar" attribute="checked"/>
979             </menuitem>
980             <menuseparator/>
981             <menu id="BMB_bookmarksToolbarFolderMenu"
982                   class="menu-iconic bookmark-item"
983                   label="&personalbarCmd.label;"
984                   container="true">
985               <menupopup id="BMB_bookmarksToolbarFolderPopup"
986                          placespopup="true"
987                          context="placesContext"
988                          onpopupshowing="if (!this.parentNode._placesView)
989                                            new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
990             </menu>
991             <menu id="BMB_unsortedBookmarksFolderMenu"
992                   class="menu-iconic bookmark-item"
993                   container="true">
994               <menupopup id="BMB_unsortedBookmarksFolderPopup"
995                          placespopup="true"
996                          context="placesContext"
997                          onpopupshowing="if (!this.parentNode._placesView)
998                                            new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS');"/>
999             </menu>
1000             <menuseparator/>
1001           </menupopup>
1002         </toolbarbutton>
1003       </toolbaritem>
1005       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
1006       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
1007         <toolbarbutton id="minimize-button"
1008                        tooltiptext="&fullScreenMinimize.tooltip;"
1009                        oncommand="window.minimize();"/>
1011         <toolbarbutton id="restore-button"
1012                        tooltiptext="&fullScreenRestore.tooltip;"
1013                        oncommand="BrowserFullScreen();"/>
1015         <toolbarbutton id="close-button"
1016                        tooltiptext="&fullScreenClose.tooltip;"
1017                        oncommand="BrowserTryToCloseWindow();"/>
1018       </hbox>
1019     </toolbar>
1021     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
1023     <toolbar id="PersonalToolbar"
1024              mode="icons" iconsize="small" defaulticonsize="small"
1025              lockiconsize="true"
1026              class="chromeclass-directories"
1027              context="toolbar-context-menu"
1028              defaultset="personal-bookmarks"
1029              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
1030              collapsed="true"
1031              customizable="true">
1032       <toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;"
1033                    removable="true">
1034         <hbox flex="1"
1035               id="PlacesToolbar"
1036               context="placesContext"
1037               onclick="BookmarksEventHandler.onClick(event);"
1038               oncommand="BookmarksEventHandler.onCommand(event);"
1039               tooltip="bhTooltip"
1040               popupsinherittooltip="true">
1041           <toolbarbutton class="bookmark-item bookmarks-toolbar-customize"
1042                          mousethrough="never"
1043                          label="&bookmarksToolbarItem.label;"/>
1044           <hbox flex="1">
1045             <hbox align="center">
1046               <image id="PlacesToolbarDropIndicator"
1047                      mousethrough="always"
1048                      collapsed="true"/>
1049             </hbox>
1050             <scrollbox orient="horizontal"
1051                        id="PlacesToolbarItems"
1052                        flex="1"/>
1053             <toolbarbutton type="menu"
1054                            id="PlacesChevron"
1055                            class="chevron"
1056                            mousethrough="never"
1057                            collapsed="true"
1058                            tooltiptext="&bookmarksToolbarChevron.tooltip;"
1059                            onpopupshowing="document.getElementById('PlacesToolbar')
1060                                                    ._placesView._onChevronPopupShowing(event);">
1061               <menupopup id="PlacesChevronPopup"
1062                          placespopup="true"
1063                          tooltip="bhTooltip" popupsinherittooltip="true"
1064                          context="placesContext"/>
1065             </toolbarbutton>
1066           </hbox>
1067         </hbox>
1068       </toolbaritem>
1069     </toolbar>
1071     <toolbar id="TabsToolbar"
1072              fullscreentoolbar="true"
1073              customizable="true"
1074              mode="icons" lockmode="true"
1075              iconsize="small" defaulticonsize="small" lockiconsize="true"
1076              aria-label="&tabsToolbar.label;"
1077              context="toolbar-context-menu"
1078              defaultset="tabbrowser-tabs,new-tab-button,tabview-button,alltabs-button,tabs-closebutton"
1079              collapsed="true">
1081       <tabs id="tabbrowser-tabs"
1082             class="tabbrowser-tabs"
1083             tabbrowser="content"
1084             flex="1"
1085             setfocus="false"
1086             tooltip="tabbrowser-tab-tooltip">
1087         <tab class="tabbrowser-tab" selected="true" fadein="true"/>
1088       </tabs>
1090       <toolbarbutton id="new-tab-button"
1091                      class="toolbarbutton-1 chromeclass-toolbar-additional"
1092                      label="&tabCmd.label;"
1093                      command="cmd_newNavigatorTab"
1094                      onclick="checkForMiddleClick(this, event);"
1095                      tooltiptext="&newTabButton.tooltip;"
1096                      ondrop="newTabButtonObserver.onDrop(event)"
1097                      ondragover="newTabButtonObserver.onDragOver(event)"
1098                      ondragenter="newTabButtonObserver.onDragOver(event)"
1099                      ondragleave="newTabButtonObserver.onDragLeave(event)"
1100                      removable="true"/>
1102       <toolbarbutton id="alltabs-button"
1103                      class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
1104                      type="menu"
1105                      label="&listAllTabs.label;"
1106                      tooltiptext="&listAllTabs.label;"
1107                      removable="true">
1108         <menupopup id="alltabs-popup"
1109                    position="after_end"/>
1110       </toolbarbutton>
1112       <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1113                      label="&tabViewButton2.label;"
1114                      command="Browser:ToggleTabView"
1115                      tooltiptext="&tabViewButton2.tooltip;"
1116                      removable="true"/>
1118       <toolbarbutton id="tabs-closebutton"
1119                      class="close-button tabs-closebutton"
1120                      command="cmd_close"
1121                      label="&closeTab.label;"
1122                      tooltiptext="&closeTab.label;"/>
1124     </toolbar>
1126     <toolbarpalette id="BrowserToolbarPalette">
1128 # Update primaryToolbarButtons in browser/themes/browserShared.inc when adding
1129 # or removing default items with the toolbarbutton-1 class.
1131       <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1132                      label="&printButton.label;" command="cmd_print"
1133                      tooltiptext="&printButton.tooltip;"/>
1135       <toolbaritem id="navigator-throbber" title="&throbberItem.title;" align="center" pack="center"
1136                    mousethrough="always">
1137         <image/>
1138       </toolbaritem>
1140       <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1141                      observes="Tools:Downloads"
1142                      ondrop="DownloadsButtonDNDObserver.onDrop(event)"
1143                      ondragover="DownloadsButtonDNDObserver.onDragOver(event)"
1144                      ondragenter="DownloadsButtonDNDObserver.onDragOver(event)"
1145                      ondragleave="DownloadsButtonDNDObserver.onDragLeave(event)"
1146                      label="&downloads.label;"
1147                      tooltiptext="&downloads.tooltip;"/>
1149       <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1150                      observes="viewHistorySidebar" label="&historyButton.label;"
1151                      tooltiptext="&historyButton.tooltip;"/>
1153       <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1154                      observes="viewBookmarksSidebar"
1155                      tooltiptext="&bookmarksButton.tooltip;"
1156                      ondrop="bookmarksButtonObserver.onDrop(event)"
1157                      ondragover="bookmarksButtonObserver.onDragOver(event)"
1158                      ondragenter="bookmarksButtonObserver.onDragOver(event)"
1159                      ondragleave="bookmarksButtonObserver.onDragLeave(event)"/>
1161       <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1162                      label="&newNavigatorCmd.label;"
1163                      command="key_newNavigator"
1164                      tooltiptext="&newWindowButton.tooltip;"
1165                      ondrop="newWindowButtonObserver.onDrop(event)"
1166                      ondragover="newWindowButtonObserver.onDragOver(event)"
1167                      ondragenter="newWindowButtonObserver.onDragOver(event)"
1168                      ondragleave="newWindowButtonObserver.onDragLeave(event)"/>
1170       <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1171                      label="&cutCmd.label;"
1172                      command="cmd_cut"
1173                      tooltiptext="&cutButton.tooltip;"/>
1175       <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1176                      label="&copyCmd.label;"
1177                      command="cmd_copy"
1178                      tooltiptext="&copyButton.tooltip;"/>
1180       <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1181                      label="&pasteCmd.label;"
1182                      command="cmd_paste"
1183                      tooltiptext="&pasteButton.tooltip;"/>
1185       <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1186                      observes="View:FullScreen"
1187                      type="checkbox"
1188                      label="&fullScreenCmd.label;"
1189                      tooltiptext="&fullScreenButton.tooltip;"/>
1191     </toolbarpalette>
1192   </toolbox>
1194   <hbox flex="1" id="browser">
1195     <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
1196       <sidebarheader id="sidebar-header" align="center">
1197         <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
1198         <image id="sidebar-throbber"/>
1199         <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
1200       </sidebarheader>
1201       <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
1202                 style="min-width: 14em; width: 18em; max-width: 36em;"/>
1203     </vbox>
1205     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
1206     <vbox id="appcontent" flex="1">
1207       <tabbrowser id="content" disablehistory="true"
1208                   flex="1" contenttooltip="aHTMLTooltip"
1209                   tabcontainer="tabbrowser-tabs"
1210                   contentcontextmenu="contentAreaContextMenu"
1211                   autocompletepopup="PopupAutoComplete"
1212                   onclick="return contentAreaClick(event, false);"/>
1213     </vbox>
1214   </hbox>
1216   <vbox id="browser-bottombox">
1217     <statusbar class="chromeclass-status" id="status-bar"
1218 #ifdef WINCE
1219                hidden="true"
1220 #endif
1221                >
1222       <statusbarpanel id="statusbar-display" label="" flex="1"/>
1223       <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
1224         <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
1225       </statusbarpanel>
1226       <statusbarpanel id="download-monitor" class="statusbarpanel-iconic-text"
1227                       tooltiptext="&downloadMonitor2.tooltip;" hidden="true"
1228                       command="Tools:Downloads"/>
1229       <statusbarpanel id="security-button" class="statusbarpanel-iconic"
1230                       hidden="true"
1231                       onclick="if (event.button == 0 &amp;&amp; event.detail == 1) displaySecurityInfo();"/>
1232 #ifdef MOZ_SERVICES_SYNC
1233       <statusbarpanel id="sync-status-button"
1234                       class="statusbarpanel-iconic"
1235                       image="chrome://browser/skin/sync-16.png"
1236                       label="&syncLogInItem.label;"
1237                       oncommand="gSyncUI.handleStatusbarButton();"
1238                       onmousedown="event.preventDefault();">
1239       </statusbarpanel>
1240       <separator class="thin"/>
1241       <statusbarpanel id="sync-notifications-button"
1242                       class="statusbarpanel-iconic-text"
1243                       hidden="true"
1244                       popup="sync-notifications-panel">
1245       </statusbarpanel>
1246       <panel id="sync-notifications-panel" position="before_end">
1247           <notificationbox id="sync-notifications-box"/>
1248       </panel>
1249 #endif
1250       <statusbarpanel id="page-report-button" type="menu"
1251                       class="statusbarpanel-menu-iconic"
1252                       hidden="true"
1253                       tooltiptext="&pageReportIcon.tooltip;">
1254         <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
1255           <menuitem observes="blockedPopupAllowSite"/>
1256           <menuitem observes="blockedPopupEditSettings"/>
1257           <menuitem observes="blockedPopupDontShowMessage"/>
1258           <menuseparator observes="blockedPopupsSeparator"/>
1259         </menupopup>
1260       </statusbarpanel>
1261     </statusbar>
1262   </vbox>
1263 #ifndef XP_UNIX
1264   <svg:svg height="0">
1265     <svg:mask id="winstripe-keyhole-forward-mask" maskContentUnits="objectBoundingBox">
1266       <svg:rect x="0" y="0" width="1" height="1" fill="white"/>
1267       <svg:circle cx="-0.46" cy="0.5" r="0.63"/>
1268     </svg:mask>
1269     <svg:mask id="winstripe-keyhole-forward-mask-hover" maskContentUnits="objectBoundingBox">
1270       <svg:rect x="0" y="0" width="1" height="1" fill="white"/>
1271       <svg:circle cx="-0.35" cy="0.5" r="0.58"/>
1272     </svg:mask>
1273   </svg:svg>
1274 #endif
1276 </vbox>
1277 # <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
1278 #     Introducing the iframe dynamically, as needed, was found to be better than
1279 #     starting with an empty iframe here in browser.xul from a Ts standpoint.
1280 </deck>
1282 </window>