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