Bug 423190 - [RTL] Feed popup is hardcoded to LTR; r=dao
[mozilla-central.git] / browser / base / content / browser.xul
blobde65307112f0c74376ec94e0aafa911c0c565a69
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>
37 # Alternatively, the contents of this file may be used under the terms of
38 # either the GNU General Public License Version 2 or later (the "GPL"), or
39 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
40 # in which case the provisions of the GPL or the LGPL are applicable instead
41 # of those above. If you wish to allow use of your version of this file only
42 # under the terms of either the GPL or the LGPL, and not to allow others to
43 # use your version of this file under the terms of the MPL, indicate your
44 # decision by deleting the provisions above and replace them with the notice
45 # and other provisions required by the GPL or the LGPL. If you do not delete
46 # the provisions above, a recipient may use your version of this file under
47 # the terms of any one of the MPL, the GPL or the LGPL.
49 # ***** END LICENSE BLOCK *****
51 <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
52 <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
53 <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
55 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
56 <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
57 <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
59 # All DTD information is stored in a separate file so that it can be shared by
60 # hiddenWindow.xul.
61 #include browser-doctype.inc
63 <window id="main-window"
64         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
65         xmlns:svg="http://www.w3.org/2000/svg"
66         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
67         onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
68         title="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
69         title_normal="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
70 #ifdef XP_MACOSX
71         title_privatebrowsing="&mainWindow.title;@PRE_RELEASE_SUFFIX@&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
72         titledefault="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
73         titlemodifier=""
74         titlemodifier_normal=""
75         titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
76 #else
77         title_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
78         titlemodifier="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
79         titlemodifier_normal="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
80         titlemodifier_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
81 #endif
82         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
83         windowtype="navigator:browser"
84         screenX="4" screenY="4"
85         browsingmode="normal"
86         persist="screenX screenY width height sizemode"> 
88 # All JS files which are not content (only) dependent that browser.xul
89 # wishes to include *must* go into the global-scripts.inc file
90 # so that they can be shared by macBrowserOverlay.xul.
91 #include global-scripts.inc
92 <script type="application/x-javascript" src="chrome://browser/content/nsContextMenu.js"/>
94 #ifdef MOZ_SAFE_BROWSING
95 <script type="application/x-javascript" src="chrome://browser/content/safebrowsing/sb-loader.js"/>
96 #endif
97 <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
99 <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
101 # All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the 
102 # browser-sets.inc file for sharing with hiddenWindow.xul.
103 #include browser-sets.inc
105   <popupset id="mainPopupSet">
106     <menupopup id="backForwardMenu"
107                chromedir="&locale.dir;"
108                onpopupshowing="return FillHistoryMenu(event.target);"
109                oncommand="gotoHistoryIndex(event);"
110                onclick="checkForMiddleClick(this, event);"/>
111     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
113     <!-- for search and content formfill/pw manager -->
114     <panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
116     <!-- for url bar autocomplete -->
117     <panel type="autocomplete-richlistbox" chromedir="&locale.dir;" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
119     <panel id="editBookmarkPanel"
120            orient="vertical"
121            ignorekeys="true"
122            hidden="true"
123            onpopupshown="StarUI.panelShown(event);"
124            aria-labelledby="editBookmarkPanelTitle">
125       <row id="editBookmarkPanelHeader" align="center" hidden="true">
126         <vbox align="center">
127           <image id="editBookmarkPanelStarIcon"/>
128         </vbox>
129         <vbox>
130           <label id="editBookmarkPanelTitle"/>
131           <description id="editBookmarkPanelDescription"/>
132           <hbox>
133             <button id="editBookmarkPanelUndoRemoveButton"
134                     hidden="true"
135                     oncommand="StarUI.undoRemoveBookmarkCommand();"
136                     label="&editBookmark.undo.label;"
137                     accesskey="&editBookmark.undo.accessKey;"/>
138             <button id="editBookmarkPanelRemoveButton"
139                     oncommand="StarUI.removeBookmarkButtonCommand();"
140                     accesskey="&editBookmark.removeBookmark.accessKey;"/>
141             <button id="editBookmarkPanelEditButton"
142                     oncommand="StarUI.editButtonCommand();"
143                     label="&editBookmark.edit.label;"
144                     accesskey="&editBookmark.edit.accessKey;"/>
145           </hbox>
146         </vbox>
147       </row>
148       <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
149       <hbox id="editBookmarkPanelBottomButtons" pack="end">
150 #ifndef XP_UNIX
151         <button id="editBookmarkPanelDoneButton"
152                 label="&editBookmark.done.label;"
153                 default="true"
154                 oncommand="StarUI.panel.hidePopup();"/>
155         <button id="editBookmarkPanelDeleteButton"
156                 label="&editBookmark.cancel.label;"
157                 oncommand="StarUI.cancelButtonOnCommand();"/>
158 #else
159         <button id="editBookmarkPanelDeleteButton"
160                 label="&editBookmark.cancel.label;"
161                 oncommand="StarUI.cancelButtonOnCommand();"/>
162         <button id="editBookmarkPanelDoneButton"
163                 label="&editBookmark.done.label;"
164                 default="true"
165                 oncommand="StarUI.panel.hidePopup();"/>
166 #endif
167       </hbox>
168     </panel>
170     <popup id="toolbar-context-menu"
171            onpopupshowing="onViewToolbarsPopupShowing(event);">
172       <menuseparator/>
173       <menuitem command="cmd_CustomizeToolbars"
174                 label="&viewCustomizeToolbar.label;"
175                 accesskey="&viewCustomizeToolbar.accesskey;"/>
176     </popup>
178     <popup id="blockedPopupOptions" 
179            onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
180       <menuitem observes="blockedPopupAllowSite"/>
181       <menuitem observes="blockedPopupEditSettings"/>
182       <menuitem observes="blockedPopupDontShowMessage"/>
183       <menuseparator observes="blockedPopupsSeparator"/>
184     </popup>
186     <menupopup id="autohide-context"
187            onpopupshowing="FullScreen.getAutohide(this.firstChild);">
188       <menuitem type="checkbox" label="&fullScreenAutohide.label;"
189                 accesskey="&fullScreenAutohide.accesskey;"
190                 oncommand="FullScreen.setAutohide();"/>
191       <menuseparator/>
192       <menuitem label="&fullScreenExit.label;"
193                 accesskey="&fullScreenExit.accesskey;"
194                 oncommand="BrowserFullScreen();"/>
195     </menupopup>
197     <popup id="contentAreaContextMenu"
198            onpopupshowing="if (event.target != this) return true; updateEditUIVisibility(); gContextMenu = new nsContextMenu(this, window.getBrowser()); return gContextMenu.shouldDisplay;"
199            onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
200 #include browser-context.inc
201     </popup>
203     <popup id="placesContext"/>
205     <!-- Popup for site identity information -->
206     <panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
207            onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
208            level="top"
209            chromedir="&locale.dir;">
210       <hbox id="identity-popup-container" align="top">
211         <image id="identity-popup-icon"/>
212         <vbox id="identity-popup-content-box">
213           <label id="identity-popup-connectedToLabel" value="&identity.connectedTo;"/>
214           <label id="identity-popup-connectedToLabel2"
215                  value="&identity.unverifiedsite2;"/>
216           <description id="identity-popup-content-host"/>
217           <label id="identity-popup-runByLabel" value="&identity.runBy;"/>
218           <description id="identity-popup-content-owner"/>
219           <description id="identity-popup-content-supplemental"/>
220           <description id="identity-popup-content-verifier"/>
221           <hbox id="identity-popup-encryption" flex="1">
222             <vbox>
223               <image id="identity-popup-encryption-icon"/>
224               <spacer flex="1"/>
225             </vbox>
226             <description id="identity-popup-encryption-label" flex="1"/>
227           </hbox>
228           <spacer flex="1"/>
229           <!-- Footer button to open security page info -->
230           <hbox>
231             <spacer flex="1"/>
232             <button id="identity-popup-more-info-button"
233                     label="&identity.moreInfoLinkText;"
234                     onblur="gIdentityHandler.hideIdentityPopup();"
235                     oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
236           </hbox>
237         </vbox>
238       </hbox>
239     </panel>
241     <tooltip id="urlTooltip">
242       <label crop="center" flex="1" class="tooltip-label"/>
243     </tooltip>
245     <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
246       <hbox>
247         <button class="ctrlTab-preview" flex="1"/>
248         <button class="ctrlTab-preview" flex="1"/>
249         <button class="ctrlTab-preview" flex="1"/>
250         <button class="ctrlTab-preview" flex="1"/>
251         <button class="ctrlTab-preview" flex="1"/>
252         <button class="ctrlTab-preview" flex="1"/>
253       </hbox>
254       <hbox pack="center">
255         <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
256       </hbox>
257     </panel>
259     <panel id="allTabs-panel" hidden="true" norestorefocus="true" ignorekeys="true"
260 # XXX: KUI style disabled, because the transparent background slows down
261 #      interacting with the panel, esp. the search field.
262 #           class="KUI-panel"
263            onmouseover="allTabs._updateTabCloseButton(event);">
264       <hbox id="allTabs-meta" align="center">
265         <spacer flex="1"/>
266         <textbox id="allTabs-filter"
267                  tooltiptext="&allTabs.filter.emptyText;"
268                  type="search"
269                  oncommand="allTabs.filter();"/>
270         <spacer flex="1"/>
271         <toolbarbutton class="KUI-panel-closebutton"
272                        oncommand="allTabs.close()"
273                        tooltiptext="&closeCmd.label;"/>
274       </hbox>
275       <stack id="allTabs-stack">
276         <box id="allTabs-container"/>
277         <toolbarbutton id="allTabs-tab-close-button"
278                        class="tab-close-button"
279                        oncommand="allTabs.closeTab(event);"
280                        tooltiptext="&closeCmd.label;"
281                        style="visibility:hidden"/>
282       </stack>
283     </panel>
284   </popupset>
286   <!-- bookmarks toolbar tooltip -->
287   <tooltip id="btTooltip" noautohide="true"
288            onpopupshowing="return BookmarksEventHandler.fillInBTTooltip(document.tooltipNode)">
289     <vbox id="btTooltipTextBox" flex="1">
290       <label id="btTitleText" class="tooltip-label" />
291       <label id="btUrlText" crop="center" class="tooltip-label" />
292     </vbox>
293   </tooltip>
295   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons"
296 #ifdef WINCE
297            defaulticonsize="small" iconsize="small"
298 #endif
299            defaultmode="icons">
300     <!-- Menu -->
301     <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
302              defaultset="menubar-items"
303              mode="icons" iconsize="small" defaulticonsize="small"
304 #ifdef XP_WIN
305              toolbarname="&menubarCmd.label;"
306              accesskey="&menubarCmd.accesskey;"
307 #endif
308              context="toolbar-context-menu">
309       <toolbaritem id="menubar-items" align="center">
310 # The entire main menubar is placed into browser-menubar.inc, so that it can be shared by 
311 # hiddenWindow.xul.
312 #include browser-menubar.inc
313       </toolbaritem>
314     </toolbar>
316     <toolbarpalette id="BrowserToolbarPalette">
318       <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
319                    context="backForwardMenu">
320         <toolbarbutton id="back-button" class="toolbarbutton-1"
321                        chromedir="&locale.dir;"
322                        label="&backCmd.label;"
323                        command="Browser:BackOrBackDuplicate"
324                        onclick="checkForMiddleClick(this, event);"
325                        tooltiptext="&backButton.tooltip;"/>
326         <toolbarbutton id="forward-button" class="toolbarbutton-1"
327                        chromedir="&locale.dir;"
328                        label="&forwardCmd.label;"
329                        command="Browser:ForwardOrForwardDuplicate"
330                        onclick="checkForMiddleClick(this, event);"
331                        tooltiptext="&forwardButton.tooltip;"/>
332         <toolbarbutton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"
333                        disabled="true" tooltiptext="&backForwardMenu.tooltip;"
334                        onbroadcast="if (this.disabled) this.disabled =
335                                       document.getElementById('Browser:Back').hasAttribute('disabled') &amp;&amp;
336                                       document.getElementById('Browser:Forward').hasAttribute('disabled');">
337           <!-- bug 415444: event.stopPropagation is here for the cloned version of
338                this menupopup -->
339           <menupopup context=""
340                      chromedir="&locale.dir;"
341                      position="after_start"
342                      onpopupshowing="return FillHistoryMenu(event.target);"
343                      oncommand="gotoHistoryIndex(event); event.stopPropagation();"
344                      onclick="checkForMiddleClick(this, event);"/>
345           <observes element="Browser:Back" attribute="disabled"/>
346           <observes element="Browser:Forward" attribute="disabled"/>
347         </toolbarbutton>
348       </toolbaritem>
350       <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
351                      label="&reloadCmd.label;"
352                      command="Browser:ReloadOrDuplicate"
353                      onclick="checkForMiddleClick(this, event);"
354                      tooltiptext="&reloadButton.tooltip;"/>
356       <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
357                      label="&stopCmd.label;"
358                      command="Browser:Stop"
359                      tooltiptext="&stopButton.tooltip;"/>
361       <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
362                      persist="class"
363                      label="&homeButton.label;"
364                      ondragover="homeButtonObserver.onDragOver(event)"
365                      ondragenter="homeButtonObserver.onDragOver(event)"
366                      ondrop="homeButtonObserver.onDrop(event)"
367                      ondragleave="homeButtonObserver.onDragLeave(event)"
368                      onclick="BrowserGoHome(event);"/>
370       <toolbaritem id="urlbar-container" align="center" flex="400" persist="width"
371                    title="&locationItem.title;" class="chromeclass-location">
372         <textbox id="urlbar" flex="1"
373                  bookmarkhistoryemptytext="&urlbar.bookmarkhistory.emptyText;"
374                  bookmarkemptytext="&urlbar.bookmark.emptyText;"
375                  historyemptytext="&urlbar.history.emptyText;"
376                  noneemptytext="&urlbar.none.emptyText;"
377                  chromedir="&locale.dir;"
378                  type="autocomplete"
379                  autocompletesearch="history"
380                  autocompletepopup="PopupAutoCompleteRichResult"
381                  completeselectedindex="true"
382                  tabscrolling="true"
383                  showcommentcolumn="true"
384                  showimagecolumn="true"
385                  enablehistory="true"
386                  maxrows="6"
387                  newlines="stripsurroundingwhitespace"
388                  oninput="gBrowser.userTypedValue = this.value;"
389                  ontextentered="this.handleCommand(param);"
390                  ontextreverted="return this.handleRevert();"
391                  pageproxystate="invalid"
392                  onsearchbegin="LocationBarHelpers._searchBegin();"
393                  onsearchcomplete="LocationBarHelpers._searchComplete();"
394                  onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
395                  onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);">
396           <!-- Use onclick instead of normal popup= syntax since the popup
397                code fires onmousedown, and hence eats our favicon drag events.
398                We only add the identity-box button to the tab order when the location bar
399                has focus, otherwise pressing F6 focuses it instead of the location bar -->
400           <box id="identity-box" role="button"
401                chromedir="&locale.dir;"
402                onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
403                onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);">
404             <hbox align="center">
405               <stack id="page-proxy-stack"
406                      onclick="PageProxyClickHandler(event);">
407                 <image id="urlbar-throbber" busy="false"/>
408                 <image id="page-proxy-favicon" validate="never"
409                        pageproxystate="invalid"
410                        ondragstart="proxyIconDNDObserver.onDragStart(event);"
411                        onerror="this.removeAttribute('src');"/>
412               </stack>
413               <label id="identity-icon-label" crop="center" flex="1"/>
414             </hbox>
415           </box>
416           <hbox id="urlbar-icons">
417             <button type="menu"
418                     style="-moz-user-focus: none"
419                     class="plain urlbar-icon"
420                     id="feed-button"
421                     chromedir="&locale.dir;"
422                     collapsed="true"
423                     tooltiptext="&feedButton.tooltip;"
424                     onclick="return FeedHandler.onFeedButtonClick(event);">
425               <menupopup position="after_end"
426                          id="feed-menu"
427                          chromedir="&locale.dir;"
428                          onpopupshowing="return FeedHandler.buildFeedList(this);"
429                          oncommand="return FeedHandler.subscribeToFeed(null, event);"
430                          onclick="checkForMiddleClick(this, event);"/>
431             </button>
432             <image id="star-button"
433                    class="urlbar-icon"
434                    onclick="PlacesStarButton.onClick(event);"/>
435             <image id="go-button"
436                    chromedir="&locale.dir;"
437                    class="urlbar-icon"
438                    tooltiptext="&goEndCap.tooltip;"
439                    onclick="gURLBar.handleCommand(event);"/>
440           </hbox>
441         </textbox>
442       </toolbaritem>
444       <toolbaritem id="search-container" title="&searchItem.title;"
445                    align="center" class="chromeclass-toolbar-additional"
446                    flex="100" persist="width">
447         <searchbar id="searchbar" flex="1" chromedir="&locale.dir;"/>
448       </toolbaritem>
450       <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
451                      label="&printButton.label;" command="cmd_print"
452                      tooltiptext="&printButton.tooltip;"/>
454       <toolbaritem id="navigator-throbber" title="&throbberItem.title;" align="center" pack="center"
455                    mousethrough="always">
456         <image/>
457       </toolbaritem>
459       <toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;">
460          <hbox id="bookmarksBarContent" flex="1"
461                type="places"
462                place="place:folder=TOOLBAR"
463                context="placesContext"
464                onclick="BookmarksEventHandler.onClick(event);"
465                oncommand="BookmarksEventHandler.onCommand(event);"
466                onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
467                tooltip="btTooltip"/>
468       </toolbaritem>
470         <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
471                        observes="Tools:Downloads"
472                        ondrop="DownloadsButtonDNDObserver.onDrop(event)"
473                        ondragover="DownloadsButtonDNDObserver.onDragOver(event)"
474                        ondragenter="DownloadsButtonDNDObserver.onDragOver(event)"
475                        ondragleave="DownloadsButtonDNDObserver.onDragLeave(event)"
476                        label="&downloads.label;"
477                        tooltiptext="&downloads.tooltip;"/>
479         <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
480                        observes="viewHistorySidebar" label="&historyButton.label;"
481                        tooltiptext="&historyButton.tooltip;"/>
483         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
484                        observes="viewBookmarksSidebar"
485                        tooltiptext="&bookmarksButton.tooltip;"
486                        ondrop="bookmarksButtonObserver.onDrop(event)"
487                        ondragover="bookmarksButtonObserver.onDragOver(event)"
488                        ondragenter="bookmarksButtonObserver.onDragOver(event)"
489                        ondragleave="bookmarksButtonObserver.onDragLeave(event)"/>
491         <toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
492                        label="&tabCmd.label;"
493                        command="cmd_newNavigatorTab"
494                        tooltiptext="&newTabButton.tooltip;"
495                        ondrop="newTabButtonObserver.onDrop(event)"
496                        ondragover="newTabButtonObserver.onDragOver(event)"
497                        ondragenter="newTabButtonObserver.onDragOver(event)"
498                        ondragleave="newTabButtonObserver.onDragLeave(event)"/>
500         <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
501                        label="&newNavigatorCmd.label;"
502                        command="key_newNavigator"
503                        tooltiptext="&newWindowButton.tooltip;"
504                        ondrop="newWindowButtonObserver.onDrop(event)"
505                        ondragover="newWindowButtonObserver.onDragOver(event)"
506                        ondragenter="newWindowButtonObserver.onDragOver(event)"
507                        ondragleave="newWindowButtonObserver.onDragLeave(event)"/>
509         <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
510                        label="&cutCmd.label;"
511                        command="cmd_cut"
512                        tooltiptext="&cutButton.tooltip;"/>
514         <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
515                        label="&copyCmd.label;"
516                        command="cmd_copy"
517                        tooltiptext="&copyButton.tooltip;"/>
519         <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
520                        label="&pasteCmd.label;"
521                        command="cmd_paste"
522                        tooltiptext="&pasteButton.tooltip;"/>
524     </toolbarpalette>
526     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
527              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
528              fullscreentoolbar="true" mode="icons"
529 #ifdef WINCE
530              iconsize="small" defaulticonsize="small"
531 #else
532              iconsize="large"
533 #endif
534              customizable="true"
535 #ifdef XP_MACOSX
536              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container"
537 #else
538 #ifdef WINCE
539              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,navigator-throbber,fullscreenflex,window-controls"
540 #else
541              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,fullscreenflex,window-controls"
542 #endif
543 #endif
544              context="toolbar-context-menu">
545 #ifndef XP_MACOSX
546       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
547       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
548         <toolbarbutton id="minimize-button" class="toolbarbutton-1"
549                        tooltiptext="&fullScreenMinimize.tooltip;"
550                        oncommand="window.minimize();"/>
552         <toolbarbutton id="restore-button" class="toolbarbutton-1"
553                        tooltiptext="&fullScreenRestore.tooltip;"
554                        oncommand="BrowserFullScreen();"/>
556         <toolbarbutton id="close-button" class="toolbarbutton-1"
557                        tooltiptext="&fullScreenClose.tooltip;"
558                        oncommand="BrowserTryToCloseWindow();"/>
559       </hbox>
560 #endif
561     </toolbar>
563     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
565     <toolbar id="PersonalToolbar"
566              mode="icons" iconsize="small" defaulticonsize="small"
567              class="chromeclass-directories"
568              context="toolbar-context-menu"
569              defaultset="personal-bookmarks"
570              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
571 #ifdef WINCE
572              collapsed="true"
573 #endif
574              customizable="true"/>
575   </toolbox>
577   <hbox flex="1" id="browser">
578     <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
579       <sidebarheader id="sidebar-header" align="center">
580         <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
581         <image id="sidebar-throbber"/>
582         <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
583       </sidebarheader>
584       <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
585                 style="min-width: 14em; width: 18em; max-width: 36em;"/>
586     </vbox>
588     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
589     <vbox id="appcontent" flex="1">
590       <tabbrowser id="content" disablehistory="true"
591                   flex="1" contenttooltip="aHTMLTooltip"
592                   contentcontextmenu="contentAreaContextMenu"
593                   onnewtab="BrowserOpenTab();"
594                   autocompletepopup="PopupAutoComplete"
595                   ondrop="contentAreaDNDObserver.onDrop(event)"
596                   onclick="return contentAreaClick(event, false);"/>
597     </vbox>
598   </hbox>
599   <panel id="customizeToolbarSheetPopup" noautohide="true">
600     <iframe id="customizeToolbarSheetIFrame"
601             style="&dialog.style;"
602             hidden="true"/>
603   </panel>
605   <vbox id="browser-bottombox">
606     <findbar browserid="content" id="FindToolbar"/>
607   
608     <statusbar class="chromeclass-status" id="status-bar"
609 #ifdef WINCE
610                hidden="true"
611 #endif
612                ondrop="contentAreaDNDObserver.onDrop(event)">
613       <statusbarpanel id="statusbar-display" label="" flex="1"/>
614       <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
615         <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
616       </statusbarpanel>
617       <statusbarpanel id="download-monitor" class="statusbarpanel-iconic-text"
618                       tooltiptext="&downloadMonitor2.tooltip;" hidden="true"
619                       command="Tools:Downloads"/>
620       <statusbarpanel id="security-button" class="statusbarpanel-iconic"
621                       hidden="true"
622                       onclick="if (event.button == 0 &amp;&amp; event.detail == 1) displaySecurityInfo();"/>
623       <statusbarpanel id="page-report-button" type="menu"
624                       class="statusbarpanel-menu-iconic"
625                       hidden="true"
626                       tooltiptext="&pageReportIcon.tooltip;">
627         <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
628           <menuitem observes="blockedPopupAllowSite"/>
629           <menuitem observes="blockedPopupEditSettings"/>
630           <menuitem observes="blockedPopupDontShowMessage"/>
631           <menuseparator observes="blockedPopupsSeparator"/>
632         </menupopup>
633       </statusbarpanel>
634     </statusbar>
635   </vbox>
636 </window>