Wed, 31 Dec 2014 06:55:46 +0100
Added tag TORBROWSER_REPLICA for changeset 6474c204b198
1 #filter substitution
2 <?xml version="1.0"?>
3 # -*- Mode: HTML -*-
4 #
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
10 <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
11 <?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
12 <?xml-stylesheet href="chrome://browser/skin/customizableui/panelUIOverlay.css" type="text/css"?>
13 <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
14 <?xml-stylesheet href="chrome://browser/skin/browser-lightweightTheme.css" type="text/css"?>
16 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
17 <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
18 <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
20 # All DTD information is stored in a separate file so that it can be shared by
21 # hiddenWindow.xul.
22 #include browser-doctype.inc
24 <window id="main-window"
25 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
26 xmlns:svg="http://www.w3.org/2000/svg"
27 xmlns:html="http://www.w3.org/1999/xhtml"
28 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
29 onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
30 title="&mainWindow.title;"
31 title_normal="&mainWindow.title;"
32 #ifdef XP_MACOSX
33 title_privatebrowsing="&mainWindow.title;&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
34 titledefault="&mainWindow.title;"
35 titlemodifier=""
36 titlemodifier_normal=""
37 titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
38 #else
39 title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
40 titlemodifier="&mainWindow.titlemodifier;"
41 titlemodifier_normal="&mainWindow.titlemodifier;"
42 titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
43 #endif
44 #ifdef CAN_DRAW_IN_TITLEBAR
45 #ifdef XP_WIN
46 chromemargin="0,2,2,2"
47 #else
48 chromemargin="0,-1,-1,-1"
49 #endif
50 tabsintitlebar="true"
51 #endif
52 titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
53 lightweightthemes="true"
54 lightweightthemesfooter="browser-bottombox"
55 windowtype="navigator:browser"
56 macanimationtype="document"
57 screenX="4" screenY="4"
58 fullscreenbutton="true"
59 sizemode="normal"
60 persist="screenX screenY width height sizemode">
62 # All JS files which are not content (only) dependent that browser.xul
63 # wishes to include *must* go into the global-scripts.inc file
64 # so that they can be shared by macBrowserOverlay.xul.
65 #include global-scripts.inc
66 <script type="application/javascript" src="chrome://browser/content/nsContextMenu.js"/>
68 <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
70 <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
72 # All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
73 # browser-sets.inc file for sharing with hiddenWindow.xul.
74 #define FULL_BROWSER_WINDOW
75 #include browser-sets.inc
76 #undef FULL_BROWSER_WINDOW
78 <popupset id="mainPopupSet">
79 <menupopup id="tabContextMenu"
80 onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
81 onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
82 <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
83 oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
84 <menuseparator/>
85 <menuitem id="context_pinTab" label="&pinTab.label;"
86 accesskey="&pinTab.accesskey;"
87 oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
88 <menuitem id="context_unpinTab" label="&unpinTab.label;" hidden="true"
89 accesskey="&unpinTab.accesskey;"
90 oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/>
91 <menu id="context_tabViewMenu" label="&moveToGroup.label;"
92 accesskey="&moveToGroup.accesskey;">
93 <menupopup id="context_tabViewMenuPopup"
94 onpopupshowing="if (event.target == this) TabView.moveToGroupPopupShowing(event);">
95 <menuseparator id="context_tabViewNamedGroups" hidden="true"/>
96 <menuitem id="context_tabViewNewGroup" label="&moveToNewGroup.label;"
97 oncommand="TabView.moveTabTo(TabContextMenu.contextTab, null);"/>
98 </menupopup>
99 </menu>
100 <menuitem id="context_openTabInWindow" label="&moveToNewWindow.label;"
101 accesskey="&moveToNewWindow.accesskey;"
102 tbattr="tabbrowser-multiple"
103 oncommand="gBrowser.replaceTabWithWindow(TabContextMenu.contextTab);"/>
104 <menuseparator/>
105 <menuitem id="context_reloadAllTabs" label="&reloadAllTabs.label;" accesskey="&reloadAllTabs.accesskey;"
106 tbattr="tabbrowser-multiple-visible"
107 oncommand="gBrowser.reloadAllTabs();"/>
108 <menuitem id="context_bookmarkAllTabs"
109 label="&bookmarkAllTabs.label;"
110 accesskey="&bookmarkAllTabs.accesskey;"
111 command="Browser:BookmarkAllTabs"/>
112 <menuitem id="context_closeTabsToTheEnd" label="&closeTabsToTheEnd.label;" accesskey="&closeTabsToTheEnd.accesskey;"
113 oncommand="gBrowser.removeTabsToTheEndFrom(TabContextMenu.contextTab);"/>
114 <menuitem id="context_closeOtherTabs" label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;"
115 oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/>
116 <menuseparator/>
117 <menuitem id="context_undoCloseTab"
118 label="&undoCloseTab.label;"
119 accesskey="&undoCloseTab.accesskey;"
120 observes="History:UndoCloseTab"/>
121 <menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;"
122 oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/>
123 </menupopup>
125 <!-- bug 415444/582485: event.stopPropagation is here for the cloned version
126 of this menupopup -->
127 <menupopup id="backForwardMenu"
128 onpopupshowing="return FillHistoryMenu(event.target);"
129 oncommand="gotoHistoryIndex(event); event.stopPropagation();"
130 onclick="checkForMiddleClick(this, event);"/>
131 <tooltip id="aHTMLTooltip" page="true"/>
132 <tooltip id="remoteBrowserTooltip"/>
134 <!-- for search and content formfill/pw manager -->
135 <panel type="autocomplete" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
137 <!-- for url bar autocomplete -->
138 <panel type="autocomplete-richlistbox" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
140 <!-- for select dropdowns -->
141 <menupopup id="ContentSelectDropdown" rolluponmousewheel="true" hidden="true"/>
143 <!-- for invalid form error message -->
144 <panel id="invalid-form-popup" type="arrow" orient="vertical" noautofocus="true" hidden="true" level="parent">
145 <description/>
146 </panel>
148 <panel id="editBookmarkPanel"
149 type="arrow"
150 footertype="promobox"
151 orient="vertical"
152 ignorekeys="true"
153 hidden="true"
154 onpopupshown="StarUI.panelShown(event);"
155 aria-labelledby="editBookmarkPanelTitle">
156 <row id="editBookmarkPanelHeader" align="center" hidden="true">
157 <vbox align="center">
158 <image id="editBookmarkPanelStarIcon"/>
159 </vbox>
160 <vbox>
161 <label id="editBookmarkPanelTitle"/>
162 <description id="editBookmarkPanelDescription"/>
163 <hbox>
164 <button id="editBookmarkPanelRemoveButton"
165 class="editBookmarkPanelHeaderButton"
166 oncommand="StarUI.removeBookmarkButtonCommand();"
167 accesskey="&editBookmark.removeBookmark.accessKey;"/>
168 </hbox>
169 </vbox>
170 </row>
171 <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
172 <hbox id="editBookmarkPanelBottomButtons" pack="end">
173 #ifndef XP_UNIX
174 <button id="editBookmarkPanelDoneButton"
175 class="editBookmarkPanelBottomButton"
176 label="&editBookmark.done.label;"
177 default="true"
178 oncommand="StarUI.panel.hidePopup();"/>
179 <button id="editBookmarkPanelDeleteButton"
180 class="editBookmarkPanelBottomButton"
181 label="&editBookmark.cancel.label;"
182 oncommand="StarUI.cancelButtonOnCommand();"/>
183 #else
184 <button id="editBookmarkPanelDeleteButton"
185 class="editBookmarkPanelBottomButton"
186 label="&editBookmark.cancel.label;"
187 oncommand="StarUI.cancelButtonOnCommand();"/>
188 <button id="editBookmarkPanelDoneButton"
189 class="editBookmarkPanelBottomButton"
190 label="&editBookmark.done.label;"
191 default="true"
192 oncommand="StarUI.panel.hidePopup();"/>
193 #endif
194 </hbox>
195 </panel>
197 <!-- UI tour experience -->
198 <panel id="UITourTooltip"
199 type="arrow"
200 hidden="true"
201 noautofocus="true"
202 noautohide="true"
203 align="start"
204 orient="vertical"
205 role="alert">
206 <vbox>
207 <hbox pack="end">
208 <toolbarbutton id="UITourTooltipClose" class="close-icon"
209 tooltiptext="&uiTour.infoPanel.close;"/>
210 </hbox>
211 <hbox id="UITourTooltipBody">
212 <vbox id="UITourTooltipIconContainer">
213 <image id="UITourTooltipIcon"/>
214 </vbox>
215 <vbox flex="1">
216 <label id="UITourTooltipTitle" flex="1"/>
217 <description id="UITourTooltipDescription" flex="1"/>
218 </vbox>
219 </hbox>
220 <hbox id="UITourTooltipButtons" flex="1" align="center"/>
221 </vbox>
222 </panel>
223 <!-- type="default" forces frames to be created so that the panel's size can be determined -->
224 <panel id="UITourHighlightContainer"
225 type="default"
226 hidden="true"
227 noautofocus="true"
228 noautohide="true"
229 flip="none"
230 consumeoutsideclicks="false"
231 mousethrough="always">
232 <box id="UITourHighlight"></box>
233 </panel>
235 <panel id="social-share-panel"
236 class="social-panel"
237 type="arrow"
238 orient="horizontal"
239 onpopupshowing="SocialShare.onShowing()"
240 onpopuphidden="SocialShare.onHidden()"
241 hidden="true">
242 <vbox class="social-share-toolbar">
243 <vbox id="social-share-provider-buttons" flex="1"/>
244 </vbox>
245 </panel>
247 <panel id="social-notification-panel"
248 class="social-panel"
249 type="arrow"
250 hidden="true"
251 noautofocus="true"/>
252 <panel id="social-flyout-panel"
253 class="social-panel"
254 onpopupshown="SocialFlyout.onShown()"
255 onpopuphidden="SocialFlyout.onHidden()"
256 side="right"
257 type="arrow"
258 hidden="true"
259 flip="slide"
260 rolluponmousewheel="true"
261 noautofocus="true"
262 position="topcenter topright"/>
264 <menupopup id="toolbar-context-menu"
265 onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator'));">
266 <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)"
267 accesskey="&customizeMenu.moveToPanel.accesskey;"
268 label="&customizeMenu.moveToPanel.label;"
269 class="customize-context-moveToPanel"/>
270 <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode)"
271 accesskey="&customizeMenu.removeFromToolbar.accesskey;"
272 label="&customizeMenu.removeFromToolbar.label;"
273 class="customize-context-removeFromToolbar"/>
274 <menuseparator/>
275 <menuseparator id="viewToolbarsMenuSeparator"/>
276 <!-- XXXgijs: we're using oncommand handler here to avoid the event being
277 redirected to the command element, thus preventing
278 listeners on the menupopup or further up the tree from
279 seeing the command event pass by. The observes attribute is
280 here so that the menuitem is still disabled and re-enabled
281 correctly. -->
282 <menuitem oncommand="BrowserCustomizeToolbar()"
283 observes="cmd_CustomizeToolbars"
284 class="viewCustomizeToolbar"
285 label="&viewCustomizeToolbar.label;"
286 accesskey="&viewCustomizeToolbar.accesskey;"/>
287 </menupopup>
289 <menupopup id="blockedPopupOptions"
290 onpopupshowing="gPopupBlockerObserver.fillPopupList(event);"
291 onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);">
292 <menuitem observes="blockedPopupAllowSite"/>
293 <menuitem observes="blockedPopupEditSettings"/>
294 <menuitem observes="blockedPopupDontShowMessage"/>
295 <menuseparator observes="blockedPopupsSeparator"/>
296 </menupopup>
298 <menupopup id="autohide-context"
299 onpopupshowing="FullScreen.getAutohide(this.firstChild);">
300 <menuitem type="checkbox" label="&fullScreenAutohide.label;"
301 accesskey="&fullScreenAutohide.accesskey;"
302 oncommand="FullScreen.setAutohide();"/>
303 <menuseparator/>
304 <menuitem label="&fullScreenExit.label;"
305 accesskey="&fullScreenExit.accesskey;"
306 oncommand="BrowserFullScreen();"/>
307 </menupopup>
309 <menupopup id="contentAreaContextMenu" pagemenu="start"
310 onpopupshowing="if (event.target != this)
311 return true;
312 gContextMenu = new nsContextMenu(this, event.shiftKey);
313 if (gContextMenu.shouldDisplay)
314 updateEditUIVisibility();
315 return gContextMenu.shouldDisplay;"
316 onpopuphiding="if (event.target != this)
317 return;
318 gContextMenu.hiding();
319 gContextMenu = null;
320 updateEditUIVisibility();">
321 #include browser-context.inc
322 </menupopup>
324 <menupopup id="placesContext"/>
326 <!-- Popup for site identity information -->
327 <panel id="identity-popup"
328 type="arrow"
329 hidden="true"
330 noautofocus="true"
331 onpopupshown="if (event.target == this)
332 gIdentityHandler.onPopupShown(event);"
333 orient="vertical"
334 level="top">
335 <hbox id="identity-popup-container" align="top">
336 <image id="identity-popup-icon"/>
337 <vbox id="identity-popup-content-box">
338 <label id="identity-popup-brandName"
339 class="identity-popup-label"
340 value="&brandFullName;"/>
341 <label id="identity-popup-chromeLabel"
342 class="identity-popup-label"/>
343 <label id="identity-popup-connectedToLabel"
344 class="identity-popup-label"
345 value="&identity.connectedTo;"/>
346 <label id="identity-popup-connectedToLabel2"
347 class="identity-popup-label"
348 value="&identity.unverifiedsite2;"/>
349 <description id="identity-popup-content-host"
350 class="identity-popup-description"/>
351 <label id="identity-popup-runByLabel"
352 class="identity-popup-label"
353 value="&identity.runBy;"/>
354 <description id="identity-popup-content-owner"
355 class="identity-popup-description"/>
356 <description id="identity-popup-content-supplemental"
357 class="identity-popup-description"/>
358 <description id="identity-popup-content-verifier"
359 class="identity-popup-description"/>
360 <hbox id="identity-popup-encryption" flex="1">
361 <vbox>
362 <image id="identity-popup-encryption-icon"/>
363 </vbox>
364 <description id="identity-popup-encryption-label" flex="1"
365 class="identity-popup-description"/>
366 </hbox>
367 <vbox id="identity-popup-permissions">
368 <separator class="thin"/>
369 <label class="identity-popup-label header"
370 value="&identity.permissions;"/>
371 <vbox id="identity-popup-permission-list" class="indent"/>
372 </vbox>
373 </vbox>
374 </hbox>
375 <!-- Footer button to open security page info -->
376 <hbox id="identity-popup-button-container" align="center">
377 <button id="identity-popup-help-icon"
378 oncommand="gIdentityHandler.handleHelpCommand(event);"
379 tooltiptext="&identity.help.tooltip;"/>
380 <spacer flex="1"/>
381 <button id="identity-popup-more-info-button"
382 label="&identity.moreInfoLinkText;"
383 oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
384 </hbox>
385 </panel>
387 <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
388 <hbox>
389 <button class="ctrlTab-preview" flex="1"/>
390 <button class="ctrlTab-preview" flex="1"/>
391 <button class="ctrlTab-preview" flex="1"/>
392 <button class="ctrlTab-preview" flex="1"/>
393 <button class="ctrlTab-preview" flex="1"/>
394 <button class="ctrlTab-preview" flex="1"/>
395 </hbox>
396 <hbox pack="center">
397 <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
398 </hbox>
399 </panel>
401 <!-- Sync Panel -->
402 <panel id="sync-start-panel" class="sync-panel" type="arrow" hidden="true"
403 noautofocus="true" onclick="this.hidePopup();"
404 flip="slide">
405 <hbox class="sync-panel-outer">
406 <image class="sync-panel-icon"/>
407 <vbox class="sync-panel-inner">
408 <description id="sync-start-panel-title"
409 value="&syncStartPanel2.heading;"/>
410 <description id="sync-start-panel-subtitle"
411 value="&syncStartPanel2.subTitle;"/>
412 </vbox>
413 </hbox>
414 </panel>
416 <!-- Sync Error Panel -->
417 <panel id="sync-error-panel" class="sync-panel" type="arrow" hidden="true"
418 noautofocus="true" onclick="this.hidePopup();"
419 flip="slide">
420 <hbox class="sync-panel-outer">
421 <image class="sync-panel-icon"/>
422 <vbox class="sync-panel-inner">
423 <description id="sync-error-panel-title"
424 value="&syncErrorPanel.heading;"/>
425 <description id="sync-error-panel-subtitle"
426 value="&syncErrorPanel.subTitle;"/>
427 <hbox class="sync-panel-button-box">
428 <spacer flex="1"/>
429 <button class="sync-panel-button"
430 label="&syncErrorPanel.signInButton.label;"
431 accesskey="&syncErrorPanel.signInButton.accesskey;"
432 onclick="gFxAccounts.openSignInAgainPage();"/>
433 </hbox>
434 </vbox>
435 </hbox>
436 </panel>
438 <!-- Bookmarks and history tooltip -->
439 <tooltip id="bhTooltip"/>
441 <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
443 <tooltip id="back-button-tooltip">
444 <label class="tooltip-label" value="&backButton.tooltip;"/>
445 #ifdef XP_MACOSX
446 <label class="tooltip-label" value="&backForwardButtonMenuMac.tooltip;"/>
447 #else
448 <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/>
449 #endif
450 </tooltip>
452 <tooltip id="forward-button-tooltip">
453 <label class="tooltip-label" value="&forwardButton.tooltip;"/>
454 #ifdef XP_MACOSX
455 <label class="tooltip-label" value="&backForwardButtonMenuMac.tooltip;"/>
456 #else
457 <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/>
458 #endif
459 </tooltip>
461 #include popup-notifications.inc
463 #include ../../components/customizableui/content/panelUI.inc.xul
465 <hbox id="downloads-animation-container" mousethrough="always">
466 <vbox id="downloads-notification-anchor">
467 <vbox id="downloads-indicator-notification"/>
468 </vbox>
469 </hbox>
471 <hbox id="bookmarked-notification-container" mousethrough="always">
472 <vbox id="bookmarked-notification-anchor">
473 <vbox id="bookmarked-notification"/>
474 </vbox>
475 <vbox id="bookmarked-notification-dropmarker-anchor">
476 <image id="bookmarked-notification-dropmarker-icon"/>
477 </vbox>
478 </hbox>
480 <tooltip id="dynamic-shortcut-tooltip"
481 onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>
482 </popupset>
484 #ifdef CAN_DRAW_IN_TITLEBAR
485 <vbox id="titlebar">
486 <hbox id="titlebar-content">
487 <spacer id="titlebar-spacer" flex="1"/>
488 <hbox id="titlebar-buttonbox-container">
489 #ifdef XP_WIN
490 <hbox id="private-browsing-indicator-titlebar">
491 <hbox class="private-browsing-indicator"/>
492 </hbox>
493 #endif
494 <hbox id="titlebar-buttonbox">
495 <toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/>
496 <toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/>
497 <toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/>
498 </hbox>
499 </hbox>
500 #ifdef XP_MACOSX
501 <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
502 buttonbox from reversing order in RTL by forcing an LTR direction. -->
503 <hbox id="titlebar-secondary-buttonbox" dir="ltr">
504 <hbox class="private-browsing-indicator"/>
505 <hbox id="titlebar-fullscreen-button"/>
506 </hbox>
507 #endif
508 </hbox>
509 </vbox>
510 #endif
512 <deck flex="1" id="tab-view-deck">
513 <vbox flex="1" id="browser-panel">
515 <toolbox id="navigator-toolbox" mode="icons">
516 <!-- Menu -->
517 <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
518 defaultset="menubar-items"
519 mode="icons" iconsize="small"
520 #ifdef MENUBAR_CAN_AUTOHIDE
521 toolbarname="&menubarCmd.label;"
522 accesskey="&menubarCmd.accesskey;"
523 #if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT)
524 autohide="true"
525 #endif
526 #endif
527 context="toolbar-context-menu">
528 <toolbaritem id="menubar-items" align="center"
529 cui-areatype="toolbar">
530 # The entire main menubar is placed into browser-menubar.inc, so that it can be shared by
531 # hiddenWindow.xul.
532 #include browser-menubar.inc
533 </toolbaritem>
535 #ifdef CAN_DRAW_IN_TITLEBAR
536 #ifndef XP_MACOSX
537 <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"
538 id="titlebar-placeholder-on-menubar-for-caption-buttons" persist="width"
539 skipintoolbarset="true"/>
540 #endif
541 #endif
542 </toolbar>
544 <toolbar id="TabsToolbar"
545 class="toolbar-primary"
546 fullscreentoolbar="true"
547 customizable="true"
548 mode="icons"
549 iconsize="small"
550 aria-label="&tabsToolbar.label;"
551 context="toolbar-context-menu"
552 defaultset="tabbrowser-tabs,new-tab-button,alltabs-button"
553 collapsed="true">
555 #if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT)
556 <hbox id="private-browsing-indicator"
557 skipintoolbarset="true"/>
558 #endif
560 <tabs id="tabbrowser-tabs"
561 class="tabbrowser-tabs"
562 tabbrowser="content"
563 flex="1"
564 setfocus="false"
565 tooltip="tabbrowser-tab-tooltip"
566 cui-areatype="toolbar"
567 stopwatchid="FX_TAB_CLICK_MS">
568 <tab class="tabbrowser-tab" selected="true" fadein="true"/>
569 </tabs>
571 <toolbarbutton id="new-tab-button"
572 class="toolbarbutton-1 chromeclass-toolbar-additional"
573 label="&tabCmd.label;"
574 command="cmd_newNavigatorTab"
575 onclick="checkForMiddleClick(this, event);"
576 tooltiptext="&newTabButton.tooltip;"
577 ondrop="newTabButtonObserver.onDrop(event)"
578 ondragover="newTabButtonObserver.onDragOver(event)"
579 ondragenter="newTabButtonObserver.onDragOver(event)"
580 ondragexit="newTabButtonObserver.onDragExit(event)"
581 cui-areatype="toolbar"
582 removable="true"/>
584 <toolbarbutton id="alltabs-button"
585 class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
586 type="menu"
587 label="&listAllTabs.label;"
588 tooltiptext="&listAllTabs.label;"
589 removable="false">
590 <menupopup id="alltabs-popup"
591 position="after_end">
592 <menuitem id="menu_tabview"
593 class="menuitem-iconic"
594 key="key_tabview"
595 label="&viewTabGroups.label;"
596 command="Browser:ToggleTabView"
597 cui-areatype="toolbar"
598 observes="tabviewGroupsNumber"/>
599 <menuseparator id="alltabs-popup-separator"/>
600 </menupopup>
601 </toolbarbutton>
603 #if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
604 <hbox class="private-browsing-indicator" skipintoolbarset="true"/>
605 #endif
606 #ifdef CAN_DRAW_IN_TITLEBAR
607 <hbox class="titlebar-placeholder" type="caption-buttons"
608 id="titlebar-placeholder-on-TabsToolbar-for-captions-buttons" persist="width"
609 #ifndef XP_MACOSX
610 ordinal="1000"
611 #endif
612 skipintoolbarset="true"/>
614 #ifdef XP_MACOSX
615 <hbox class="titlebar-placeholder" type="fullscreen-button"
616 id="titlebar-placeholder-on-TabsToolbar-for-fullscreen-button" persist="width"
617 skipintoolbarset="true"/>
618 #endif
619 #endif
620 </toolbar>
622 <!--
623 CAVEAT EMPTOR
624 Should you need to add items to the toolbar here, make sure to also add them
625 to the default placements of buttons in CustomizableUI.jsm, so the
626 customization code doesn't get confused.
627 -->
628 <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
629 aria-label="&navbarCmd.label;"
630 fullscreentoolbar="true" mode="icons" customizable="true"
631 iconsize="small"
632 defaultset="urlbar-container,search-container,webrtc-status-button,bookmarks-menu-button,downloads-button,home-button,social-share-button,social-toolbar-item"
633 customizationtarget="nav-bar-customization-target"
634 overflowable="true"
635 overflowbutton="nav-bar-overflow-button"
636 overflowtarget="widget-overflow-list"
637 overflowpanel="widget-overflow"
638 context="toolbar-context-menu">
640 <hbox id="nav-bar-customization-target" flex="1">
641 <toolbaritem id="urlbar-container" flex="400" persist="width"
642 title="&locationItem.title;" removable="false"
643 cui-areatype="toolbar"
644 class="chromeclass-location" overflows="false">
645 <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
646 label="&backCmd.label;"
647 command="Browser:BackOrBackDuplicate"
648 cui-areatype="toolbar"
649 onclick="checkForMiddleClick(this, event);"
650 tooltip="back-button-tooltip"
651 context="backForwardMenu"/>
652 <hbox id="urlbar-wrapper" flex="1">
653 <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
654 label="&forwardCmd.label;"
655 command="Browser:ForwardOrForwardDuplicate"
656 cui-areatype="toolbar"
657 onclick="checkForMiddleClick(this, event);"
658 tooltip="forward-button-tooltip"
659 context="backForwardMenu"/>
660 <textbox id="urlbar" flex="1"
661 placeholder="&urlbar.placeholder2;"
662 type="autocomplete"
663 autocompletesearch="urlinline history"
664 autocompletesearchparam="enable-actions"
665 autocompletepopup="PopupAutoCompleteRichResult"
666 completeselectedindex="true"
667 tabscrolling="true"
668 showcommentcolumn="true"
669 showimagecolumn="true"
670 enablehistory="true"
671 maxrows="6"
672 newlines="stripsurroundingwhitespace"
673 oninput="gBrowser.userTypedValue = this.value;"
674 ontextentered="this.handleCommand(param);"
675 ontextreverted="return this.handleRevert();"
676 pageproxystate="invalid"
677 onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
678 onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);">
679 <box id="notification-popup-box" hidden="true" align="center">
680 <image id="default-notification-icon" class="notification-anchor-icon" role="button"/>
681 <image id="identity-notification-icon" class="notification-anchor-icon" role="button"/>
682 <image id="geo-notification-icon" class="notification-anchor-icon" role="button"/>
683 <image id="addons-notification-icon" class="notification-anchor-icon" role="button"/>
684 <image id="canvas-notification-icon" class="notification-anchor-icon" role="button"/>
685 <image id="indexedDB-notification-icon" class="notification-anchor-icon" role="button"/>
686 <image id="password-notification-icon" class="notification-anchor-icon" role="button"/>
687 <image id="webapps-notification-icon" class="notification-anchor-icon" role="button"/>
688 <image id="plugins-notification-icon" class="notification-anchor-icon" role="button"/>
689 <image id="web-notifications-notification-icon" class="notification-anchor-icon" role="button"/>
690 <image id="plugin-install-notification-icon" class="notification-anchor-icon" role="button"/>
691 <image id="mixed-content-blocked-notification-icon" class="notification-anchor-icon" role="button"/>
692 <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon" role="button"/>
693 <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon" role="button"/>
694 <image id="webRTC-shareMicrophone-notification-icon" class="notification-anchor-icon" role="button"/>
695 <image id="webRTC-sharingMicrophone-notification-icon" class="notification-anchor-icon" role="button"/>
696 <image id="pointerLock-notification-icon" class="notification-anchor-icon" role="button"/>
697 <image id="servicesInstall-notification-icon" class="notification-anchor-icon" role="button"/>
698 <image id="translate-notification-icon" class="notification-anchor-icon" role="button"/>
699 <image id="translated-notification-icon" class="notification-anchor-icon" role="button"/>
700 </box>
701 <!-- Use onclick instead of normal popup= syntax since the popup
702 code fires onmousedown, and hence eats our favicon drag events.
703 We only add the identity-box button to the tab order when the location bar
704 has focus, otherwise pressing F6 focuses it instead of the location bar -->
705 <box id="identity-box" role="button"
706 align="center"
707 onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
708 onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
709 ondragstart="gIdentityHandler.onDragStart(event);">
710 <image id="page-proxy-favicon"
711 onclick="PageProxyClickHandler(event);"
712 pageproxystate="invalid"/>
713 <hbox id="identity-icon-labels">
714 <label id="identity-icon-label" class="plain" flex="1"/>
715 <label id="identity-icon-country-label" class="plain"/>
716 </hbox>
717 </box>
718 <box id="urlbar-display-box" align="center">
719 <label id="urlbar-display" value="&urlbar.switchToTab.label;"/>
720 </box>
721 <hbox id="urlbar-icons">
722 <image id="page-report-button"
723 class="urlbar-icon"
724 hidden="true"
725 tooltiptext="&pageReportIcon.tooltip;"
726 onclick="gPopupBlockerObserver.onReportButtonClick(event);"/>
727 </hbox>
728 <toolbarbutton id="urlbar-go-button"
729 class="chromeclass-toolbar-additional"
730 onclick="gURLBar.handleCommand(event);"
731 tooltiptext="&goEndCap.tooltip;"/>
732 <toolbarbutton id="urlbar-reload-button"
733 class="chromeclass-toolbar-additional"
734 command="Browser:ReloadOrDuplicate"
735 onclick="checkForMiddleClick(this, event);"
736 tooltiptext="&reloadButton.tooltip;"/>
737 <toolbarbutton id="urlbar-stop-button"
738 class="chromeclass-toolbar-additional"
739 command="Browser:Stop"
740 tooltiptext="&stopButton.tooltip;"/>
741 </textbox>
742 </hbox>
743 </toolbaritem>
745 <toolbaritem id="search-container" title="&searchItem.title;"
746 align="center" class="chromeclass-toolbar-additional panel-wide-item"
747 cui-areatype="toolbar"
748 flex="100" persist="width" removable="true">
749 <searchbar id="searchbar" flex="1"/>
750 </toolbaritem>
752 <toolbarbutton id="webrtc-status-button"
753 class="toolbarbutton-1 chromeclass-toolbar-additional"
754 type="menu"
755 hidden="true"
756 orient="horizontal"
757 label="&webrtcIndicatorButton.label;"
758 tooltiptext="&webrtcIndicatorButton.tooltip;"
759 cui-areatype="toolbar"
760 overflows="false">
761 <menupopup onpopupshowing="WebrtcIndicator.fillPopup(this);"
762 onpopuphiding="WebrtcIndicator.clearPopup(this);"
763 oncommand="WebrtcIndicator.menuCommand(event.target);"/>
764 </toolbarbutton>
766 <toolbarbutton id="bookmarks-menu-button"
767 class="toolbarbutton-1 chromeclass-toolbar-additional"
768 persist="class"
769 removable="true"
770 type="menu-button"
771 label="&bookmarksMenuButton.label;"
772 tooltip="dynamic-shortcut-tooltip"
773 anchor="dropmarker"
774 ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
775 ondragover="PlacesMenuDNDHandler.onDragOver(event);"
776 ondragleave="PlacesMenuDNDHandler.onDragLeave(event);"
777 ondrop="PlacesMenuDNDHandler.onDrop(event);"
778 cui-areatype="toolbar"
779 oncommand="BookmarkingUI.onCommand(event);">
780 <menupopup id="BMB_bookmarksPopup"
781 class="cui-widget-panel cui-widget-panelview cui-widget-panelWithFooter PanelUI-subView"
782 placespopup="true"
783 context="placesContext"
784 openInTabs="children"
785 oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);"
786 onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
787 onpopupshowing="BookmarkingUI.onPopupShowing(event);
788 BookmarkingUI.attachPlacesView(event, this);"
789 tooltip="bhTooltip" popupsinherittooltip="true">
790 <menuitem id="BMB_viewBookmarksSidebar"
791 class="subviewbutton"
792 label="&viewBookmarksSidebar2.label;"
793 type="checkbox"
794 oncommand="toggleSidebar('viewBookmarksSidebar');">
795 <observes element="viewBookmarksSidebar" attribute="checked"/>
796 </menuitem>
797 <!-- NB: temporary solution for bug 985024, this should go away soon. -->
798 <menuitem id="BMB_bookmarksShowAllTop"
799 class="menuitem-iconic subviewbutton"
800 label="&showAllBookmarks2.label;"
801 command="Browser:ShowAllBookmarks"
802 key="manBookmarkKb"/>
803 <menuseparator/>
804 <menuitem id="BMB_subscribeToPageMenuitem"
805 #ifndef XP_MACOSX
806 class="menuitem-iconic subviewbutton"
807 #else
808 class="subviewbutton"
809 #endif
810 label="&subscribeToPageMenuitem.label;"
811 oncommand="return FeedHandler.subscribeToFeed(null, event);"
812 onclick="checkForMiddleClick(this, event);"
813 observes="singleFeedMenuitemState"/>
814 <menu id="BMB_subscribeToPageMenupopup"
815 #ifndef XP_MACOSX
816 class="menu-iconic subviewbutton"
817 #else
818 class="subviewbutton"
819 #endif
820 label="&subscribeToPageMenupopup.label;"
821 observes="multipleFeedsMenuState">
822 <menupopup id="BMB_subscribeToPageSubmenuMenupopup"
823 onpopupshowing="return FeedHandler.buildFeedList(event.target);"
824 oncommand="return FeedHandler.subscribeToFeed(null, event);"
825 onclick="checkForMiddleClick(this, event);"/>
826 </menu>
827 <menuseparator/>
828 <menu id="BMB_bookmarksToolbar"
829 class="menu-iconic bookmark-item subviewbutton"
830 label="&personalbarCmd.label;"
831 container="true">
832 <menupopup id="BMB_bookmarksToolbarPopup"
833 placespopup="true"
834 context="placesContext"
835 onpopupshowing="if (!this.parentNode._placesView)
836 new PlacesMenu(event, 'place:folder=TOOLBAR',
837 PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);">
838 <menuitem id="BMB_viewBookmarksToolbar"
839 placesanonid="view-toolbar"
840 toolbarId="PersonalToolbar"
841 type="checkbox"
842 oncommand="onViewToolbarCommand(event)"
843 label="&viewBookmarksToolbar.label;"/>
844 <menuseparator/>
845 <!-- Bookmarks toolbar items -->
846 </menupopup>
847 </menu>
848 <menu id="BMB_unsortedBookmarks"
849 class="menu-iconic bookmark-item subviewbutton"
850 label="&bookmarksMenuButton.unsorted.label;"
851 container="true">
852 <menupopup id="BMB_unsortedBookmarksPopup"
853 placespopup="true"
854 context="placesContext"
855 onpopupshowing="if (!this.parentNode._placesView)
856 new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS',
857 PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"/>
858 </menu>
859 <menuseparator/>
860 <!-- Bookmarks menu items will go here -->
861 <menuitem id="BMB_bookmarksShowAll"
862 class="subviewbutton panel-subview-footer"
863 label="&showAllBookmarks2.label;"
864 command="Browser:ShowAllBookmarks"
865 key="manBookmarkKb"/>
866 </menupopup>
867 </toolbarbutton>
869 <!-- This is a placeholder for the Downloads Indicator. It is visible
870 during the customization of the toolbar, in the palette, and before
871 the Downloads Indicator overlay is loaded. -->
872 <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
873 oncommand="DownloadsIndicatorView.onCommand(event);"
874 ondrop="DownloadsIndicatorView.onDrop(event);"
875 ondragover="DownloadsIndicatorView.onDragOver(event);"
876 ondragenter="DownloadsIndicatorView.onDragOver(event);"
877 label="&downloads.label;"
878 removable="true"
879 cui-areatype="toolbar"
880 tooltiptext="&downloads.tooltip;"/>
882 <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
883 persist="class" removable="true"
884 label="&homeButton.label;"
885 ondragover="homeButtonObserver.onDragOver(event)"
886 ondragenter="homeButtonObserver.onDragOver(event)"
887 ondrop="homeButtonObserver.onDrop(event)"
888 ondragexit="homeButtonObserver.onDragExit(event)"
889 onclick="BrowserGoHome(event);"
890 cui-areatype="toolbar"
891 aboutHomeOverrideTooltip="&abouthome.pageTitle;"/>
894 <toolbarbutton id="social-share-button"
895 class="toolbarbutton-1 chromeclass-toolbar-additional"
896 hidden="true"
897 overflows="false"
898 label="&sharePageCmd.label;"
899 tooltiptext="&sharePageCmd.label;"
900 cui-areatype="toolbar"
901 command="Social:SharePage"/>
902 </hbox>
904 <toolbarbutton id="nav-bar-overflow-button"
905 class="toolbarbutton-1 chromeclass-toolbar-additional overflow-button"
906 cui-areatype="toolbar"
907 skipintoolbarset="true"
908 tooltiptext="&navbarOverflow.label;"/>
910 <toolbaritem id="PanelUI-button"
911 class="chromeclass-toolbar-additional"
912 cui-areatype="toolbar"
913 removable="false">
914 <toolbarbutton id="PanelUI-menu-button"
915 class="toolbarbutton-1"
916 cui-areatype="toolbar"
917 label="&brandShortName;"
918 tooltiptext="&appmenu.tooltip;"/>
919 </toolbaritem>
921 <hbox id="window-controls" hidden="true" pack="end" skipintoolbarset="true"
922 ordinal="1000">
923 <toolbarbutton id="minimize-button"
924 tooltiptext="&fullScreenMinimize.tooltip;"
925 oncommand="window.minimize();"/>
927 <toolbarbutton id="restore-button"
928 #ifdef XP_MACOSX
929 # Prior to 10.7 there wasn't a native fullscreen button so we use #restore-button
930 # to exit fullscreen and want it to behave like other toolbar buttons.
931 class="toolbarbutton-1"
932 cui-areatype="toolbar"
933 #endif
934 tooltiptext="&fullScreenRestore.tooltip;"
935 oncommand="BrowserFullScreen();"/>
937 <toolbarbutton id="close-button"
938 tooltiptext="&fullScreenClose.tooltip;"
939 oncommand="BrowserTryToCloseWindow();"/>
940 </hbox>
941 </toolbar>
943 <toolbarset id="customToolbars" context="toolbar-context-menu"/>
945 <toolbar id="PersonalToolbar"
946 mode="icons" iconsize="small"
947 class="chromeclass-directories"
948 context="toolbar-context-menu"
949 defaultset="personal-bookmarks"
950 toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
951 collapsed="true"
952 customizable="true">
953 <toolbaritem id="personal-bookmarks"
954 title="&bookmarksToolbarItem.label;"
955 cui-areatype="toolbar"
956 removable="true">
957 <toolbarbutton id="bookmarks-toolbar-placeholder"
958 class="toolbarbutton-1"
959 mousethrough="never"
960 label="&bookmarksToolbarItem.label;"
961 oncommand="PlacesToolbarHelper.onPlaceholderCommand();"/>
962 <hbox flex="1"
963 id="PlacesToolbar"
964 context="placesContext"
965 onclick="BookmarksEventHandler.onClick(event, this._placesView);"
966 oncommand="BookmarksEventHandler.onCommand(event, this._placesView);"
967 tooltip="bhTooltip"
968 popupsinherittooltip="true">
969 <hbox flex="1">
970 <hbox id="PlacesToolbarDropIndicatorHolder" align="center" collapsed="true">
971 <image id="PlacesToolbarDropIndicator"
972 mousethrough="always"
973 collapsed="true"/>
974 </hbox>
975 <scrollbox orient="horizontal"
976 id="PlacesToolbarItems"
977 flex="1"/>
978 <toolbarbutton type="menu"
979 id="PlacesChevron"
980 class="chevron"
981 mousethrough="never"
982 collapsed="true"
983 tooltiptext="&bookmarksToolbarChevron.tooltip;"
984 onpopupshowing="document.getElementById('PlacesToolbar')
985 ._placesView._onChevronPopupShowing(event);">
986 <menupopup id="PlacesChevronPopup"
987 placespopup="true"
988 tooltip="bhTooltip" popupsinherittooltip="true"
989 context="placesContext"/>
990 </toolbarbutton>
991 </hbox>
992 </hbox>
993 </toolbaritem>
994 </toolbar>
996 <!-- This is a shim which will go away ASAP. See bug 749804 for details -->
997 <toolbar id="addon-bar" toolbar-delegate="nav-bar" mode="icons" iconsize="small"
998 customizable="true">
999 <hbox id="addonbar-closebutton"/>
1000 <statusbar id="status-bar"/>
1001 </toolbar>
1003 <toolbarpalette id="BrowserToolbarPalette">
1005 # Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding
1006 # or removing default items with the toolbarbutton-1 class.
1008 <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1009 #ifdef XP_MACOSX
1010 command="cmd_print" tooltip="dynamic-shortcut-tooltip"
1011 #else
1012 command="cmd_printPreview" tooltiptext="&printButton.tooltip;"
1013 #endif
1014 label="&printButton.label;"/>
1017 <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1018 label="&newNavigatorCmd.label;"
1019 command="key_newNavigator"
1020 tooltip="dynamic-shortcut-tooltip"
1021 ondrop="newWindowButtonObserver.onDrop(event)"
1022 ondragover="newWindowButtonObserver.onDragOver(event)"
1023 ondragenter="newWindowButtonObserver.onDragOver(event)"
1024 ondragexit="newWindowButtonObserver.onDragExit(event)"/>
1026 <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1027 observes="View:FullScreen"
1028 type="checkbox"
1029 label="&fullScreenCmd.label;"
1030 tooltip="dynamic-shortcut-tooltip"/>
1032 #ifdef MOZ_SERVICES_SYNC
1033 <toolbarbutton id="sync-button"
1034 class="toolbarbutton-1 chromeclass-toolbar-additional"
1035 label="&syncToolbarButton.label;"
1036 oncommand="gSyncUI.handleToolbarButton()"/>
1037 #endif
1039 <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1040 label="&tabGroupsButton.label;"
1041 command="Browser:ToggleTabView"
1042 tooltip="dynamic-shortcut-tooltip"
1043 observes="tabviewGroupsNumber"/>
1044 </toolbarpalette>
1045 </toolbox>
1047 <hbox id="fullscr-toggler" collapsed="true"/>
1049 <deck id="content-deck" flex="1">
1050 <hbox flex="1" id="browser">
1051 <vbox id="browser-border-start" hidden="true" layer="true"/>
1052 <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
1053 <sidebarheader id="sidebar-header" align="center">
1054 <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
1055 <image id="sidebar-throbber"/>
1056 <toolbarbutton class="close-icon tabbable" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
1057 </sidebarheader>
1058 <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
1059 style="min-width: 14em; width: 18em; max-width: 36em;"/>
1060 </vbox>
1062 <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/>
1063 <vbox id="appcontent" flex="1">
1064 <tabbrowser id="content"
1065 flex="1" contenttooltip="aHTMLTooltip"
1066 tabcontainer="tabbrowser-tabs"
1067 contentcontextmenu="contentAreaContextMenu"
1068 autocompletepopup="PopupAutoComplete"
1069 selectpopup="ContentSelectDropdown"
1070 onclick="contentAreaClick(event, false);"/>
1071 <chatbar id="pinnedchats" layer="true" mousethrough="always" hidden="true"/>
1072 </vbox>
1073 <splitter id="social-sidebar-splitter"
1074 class="chromeclass-extrachrome sidebar-splitter"
1075 observes="socialSidebarBroadcaster"/>
1076 <vbox id="social-sidebar-box"
1077 class="chromeclass-extrachrome"
1078 observes="socialSidebarBroadcaster"
1079 persist="width">
1081 <sidebarheader id="social-sidebar-header" class="sidebar-header" align="center">
1082 <image id="social-sidebar-favico"/>
1083 <label id="social-sidebar-title" class="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
1084 <toolbarbutton id="social-sidebar-button"
1085 class="toolbarbutton-1"
1086 type="menu">
1087 <menupopup id="social-statusarea-popup" position="after_end">
1088 <menuitem class="social-toggle-sidebar-menuitem"
1089 type="checkbox"
1090 autocheck="false"
1091 command="Social:ToggleSidebar"
1092 label="&social.toggleSidebar.label;"
1093 accesskey="&social.toggleSidebar.accesskey;"/>
1094 <menuitem class="social-toggle-notifications-menuitem"
1095 type="checkbox"
1096 autocheck="false"
1097 command="Social:ToggleNotifications"
1098 label="&social.toggleNotifications.label;"
1099 accesskey="&social.toggleNotifications.accesskey;"/>
1100 <menuseparator/>
1101 <menuseparator class="social-provider-menu" hidden="true"/>
1102 <menuitem class="social-addons-menuitem" command="Social:Addons"
1103 label="&social.addons.label;"/>
1104 <menuitem label="&social.learnMore.label;"
1105 accesskey="&social.learnMore.accesskey;"
1106 oncommand="SocialUI.showLearnMore();"/>
1107 </menupopup>
1108 </toolbarbutton>
1109 </sidebarheader>
1111 <browser id="social-sidebar-browser"
1112 type="content"
1113 context="contentAreaContextMenu"
1114 disableglobalhistory="true"
1115 tooltip="aHTMLTooltip"
1116 popupnotificationanchor="social-sidebar-favico"
1117 flex="1"
1118 style="min-width: 14em; width: 18em; max-width: 36em;"/>
1119 </vbox>
1120 <vbox id="browser-border-end" hidden="true" layer="true"/>
1121 </hbox>
1122 #include ../../components/customizableui/content/customizeMode.inc.xul
1123 </deck>
1125 <hbox id="full-screen-warning-container" hidden="true" fadeout="true">
1126 <hbox style="width: 100%;" pack="center"> <!-- Inner hbox needed due to bug 579776. -->
1127 <vbox id="full-screen-warning-message" align="center">
1128 <description id="full-screen-domain-text"/>
1129 <description class="full-screen-description" value="&fullscreenExitHint2.value;"/>
1130 <vbox id="full-screen-approval-pane" align="center">
1131 <hbox>
1132 #ifdef XP_UNIX
1133 <button label="&fullscreenExitButton.label;"
1134 oncommand="FullScreen.setFullscreenAllowed(false);"
1135 class="full-screen-approval-button"/>
1136 <button label="&fullscreenAllowButton.label;"
1137 oncommand="FullScreen.setFullscreenAllowed(true);"
1138 class="full-screen-approval-button"/>
1139 #else
1140 <button label="&fullscreenAllowButton.label;"
1141 oncommand="FullScreen.setFullscreenAllowed(true);"
1142 class="full-screen-approval-button"/>
1143 <button label="&fullscreenExitButton.label;"
1144 oncommand="FullScreen.setFullscreenAllowed(false);"
1145 class="full-screen-approval-button"/>
1146 #endif
1147 </hbox>
1148 <checkbox id="full-screen-remember-decision"/>
1149 </vbox>
1150 </vbox>
1151 </hbox>
1152 </hbox>
1154 <vbox id="browser-bottombox" layer="true">
1155 <notificationbox id="global-notificationbox"/>
1156 <toolbar id="developer-toolbar"
1157 hidden="true">
1158 #ifdef XP_MACOSX
1159 <toolbarbutton id="developer-toolbar-closebutton"
1160 class="devtools-closebutton"
1161 oncommand="DeveloperToolbar.hide();"
1162 tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
1163 #endif
1164 <stack class="gclitoolbar-stack-node" flex="1">
1165 <textbox class="gclitoolbar-input-node" rows="1"/>
1166 <hbox class="gclitoolbar-complete-node"/>
1167 </stack>
1168 <toolbarbutton id="developer-toolbar-toolbox-button"
1169 class="developer-toolbar-button"
1170 observes="devtoolsMenuBroadcaster_DevToolbox"
1171 tooltiptext="&devToolbarToolsButton.tooltip;"/>
1172 #ifndef XP_MACOSX
1173 <toolbarbutton id="developer-toolbar-closebutton"
1174 class="devtools-closebutton"
1175 oncommand="DeveloperToolbar.hide();"
1176 tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
1177 #endif
1178 </toolbar>
1179 </vbox>
1181 <svg:svg height="0">
1182 #include tab-shape.inc.svg
1183 <svg:clipPath id="urlbar-back-button-clip-path" clipPathUnits="userSpaceOnUse">
1184 #ifndef XP_MACOSX
1185 <svg:path d="m 1,-5 l 0,7.8 c 2.5,3.2 4,6.2 4,10.2 c 0,4 -1.5,7 -4,10 l 0,22l10000,0 l 0,-50 l -10000,0 z"/>
1186 #else
1187 <svg:path d="M -11,-5 a 16 16 0 0 1 0,34 l 10000,0 l 0,-34 l -10000,0 z"/>
1188 #endif
1189 </svg:clipPath>
1190 </svg:svg>
1192 </vbox>
1193 # <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
1194 # Introducing the iframe dynamically, as needed, was found to be better than
1195 # starting with an empty iframe here in browser.xul from a Ts standpoint.
1196 </deck>
1198 </window>