409 +#endif |
468 +#endif |
410 + </tooltip> |
469 + </tooltip> |
411 + |
470 + |
412 +#include popup-notifications.inc |
471 +#include popup-notifications.inc |
413 + |
472 + |
|
473 +#include ../../components/customizableui/content/panelUI.inc.xul |
|
474 + |
414 + <hbox id="downloads-animation-container" mousethrough="always"> |
475 + <hbox id="downloads-animation-container" mousethrough="always"> |
415 + <vbox id="downloads-notification-anchor"> |
476 + <vbox id="downloads-notification-anchor"> |
416 + <vbox id="downloads-indicator-notification"/> |
477 + <vbox id="downloads-indicator-notification"/> |
417 + </vbox> |
478 + </vbox> |
418 + </hbox> |
479 + </hbox> |
|
480 + |
|
481 + <hbox id="bookmarked-notification-container" mousethrough="always"> |
|
482 + <vbox id="bookmarked-notification-anchor"> |
|
483 + <vbox id="bookmarked-notification"/> |
|
484 + </vbox> |
|
485 + <vbox id="bookmarked-notification-dropmarker-anchor"> |
|
486 + <image id="bookmarked-notification-dropmarker-icon"/> |
|
487 + </vbox> |
|
488 + </hbox> |
|
489 + |
|
490 + <tooltip id="dynamic-shortcut-tooltip" |
|
491 + onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/> |
419 + </popupset> |
492 + </popupset> |
420 + |
493 + |
421 +#ifdef CAN_DRAW_IN_TITLEBAR |
494 +#ifdef CAN_DRAW_IN_TITLEBAR |
422 +<vbox id="titlebar"> |
495 +<vbox id="titlebar"> |
423 + <hbox id="titlebar-content"> |
496 + <hbox id="titlebar-content"> |
424 +#ifdef MENUBAR_CAN_AUTOHIDE |
|
425 + <hbox id="appmenu-button-container"> |
|
426 + <button id="appmenu-button" |
|
427 + type="menu" |
|
428 + label="&brandShortName;" |
|
429 + style="-moz-user-focus: ignore;"> |
|
430 +#include browser-appmenu.inc |
|
431 + </button> |
|
432 + </hbox> |
|
433 +#endif |
|
434 + <spacer id="titlebar-spacer" flex="1"/> |
497 + <spacer id="titlebar-spacer" flex="1"/> |
435 + <hbox id="titlebar-buttonbox-container" align="start"> |
498 + <hbox id="titlebar-buttonbox-container"> |
|
499 +#ifdef XP_WIN |
|
500 + <hbox id="private-browsing-indicator-titlebar"> |
|
501 + <hbox class="private-browsing-indicator"/> |
|
502 + </hbox> |
|
503 +#endif |
436 + <hbox id="titlebar-buttonbox"> |
504 + <hbox id="titlebar-buttonbox"> |
437 + <toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/> |
505 + <toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/> |
438 + <toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/> |
506 + <toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/> |
439 + <toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/> |
507 + <toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/> |
440 + </hbox> |
508 + </hbox> |
441 + </hbox> |
509 + </hbox> |
|
510 +#ifdef XP_MACOSX |
|
511 + <hbox id="titlebar-fullscreen-button"/> |
|
512 +#endif |
442 + </hbox> |
513 + </hbox> |
443 +</vbox> |
514 +</vbox> |
444 +#endif |
515 +#endif |
445 + |
516 + |
446 +<deck flex="1" id="tab-view-deck"> |
517 +<deck flex="1" id="tab-view-deck"> |
447 +<vbox flex="1" id="browser-panel"> |
518 +<vbox flex="1" id="browser-panel"> |
448 + |
519 + |
449 + <toolbox id="navigator-toolbox" |
520 + <toolbox id="navigator-toolbox" mode="icons"> |
450 + defaultmode="icons" mode="icons" |
|
451 + iconsize="large"> |
|
452 + <!-- Menu --> |
521 + <!-- Menu --> |
453 + <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true" |
522 + <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true" |
454 + defaultset="menubar-items" |
523 + defaultset="menubar-items" |
455 + mode="icons" iconsize="small" defaulticonsize="small" |
524 + mode="icons" iconsize="small" |
456 + lockiconsize="true" |
|
457 +#ifdef MENUBAR_CAN_AUTOHIDE |
525 +#ifdef MENUBAR_CAN_AUTOHIDE |
458 + toolbarname="&menubarCmd.label;" |
526 + toolbarname="&menubarCmd.label;" |
459 + accesskey="&menubarCmd.accesskey;" |
527 + accesskey="&menubarCmd.accesskey;" |
|
528 +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT) |
|
529 + autohide="true" |
|
530 +#endif |
460 +#endif |
531 +#endif |
461 + context="toolbar-context-menu"> |
532 + context="toolbar-context-menu"> |
462 + <toolbaritem id="menubar-items" align="center"> |
533 + <toolbaritem id="menubar-items" align="center" |
|
534 + cui-areatype="toolbar"> |
463 +# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by |
535 +# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by |
464 +# hiddenWindow.xul. |
536 +# hiddenWindow.xul. |
465 +#include browser-menubar.inc |
537 +#include browser-menubar.inc |
466 + </toolbaritem> |
538 + </toolbaritem> |
467 + |
539 + |
468 +#ifdef CAN_DRAW_IN_TITLEBAR |
540 +#ifdef CAN_DRAW_IN_TITLEBAR |
469 + <hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/> |
541 +#ifndef XP_MACOSX |
470 + <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"/> |
542 + <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000" |
|
543 + id="titlebar-placeholder-on-menubar-for-caption-buttons" persist="width" |
|
544 + skipintoolbarset="true"/> |
|
545 +#endif |
471 +#endif |
546 +#endif |
472 + </toolbar> |
547 + </toolbar> |
473 + |
548 + |
474 + <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar" |
549 + <toolbar id="TabsToolbar" |
475 + toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;" |
550 + class="toolbar-primary" |
476 + fullscreentoolbar="true" mode="icons" customizable="true" |
551 + fullscreentoolbar="true" |
477 + iconsize="large" |
552 + customizable="true" |
478 + defaultset="unified-back-forward-button,urlbar-container,reload-button,stop-button,search-container,webrtc-status-button,bookmarks-menu-button,downloads-button,home-button,window-controls" |
553 + mode="icons" |
479 + context="toolbar-context-menu"> |
554 + iconsize="small" |
480 + |
555 + aria-label="&tabsToolbar.label;" |
481 + <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional" |
556 + context="toolbar-context-menu" |
482 + context="backForwardMenu" removable="true" |
557 + defaultset="tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton" |
483 + forwarddisabled="true" |
558 + collapsed="true"> |
484 + title="&backForwardItem.title;"> |
559 + |
485 + <toolbarbutton id="back-button" class="toolbarbutton-1" |
560 +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT) |
486 + label="&backCmd.label;" |
561 + <hbox id="private-browsing-indicator" |
487 + command="Browser:BackOrBackDuplicate" |
562 + skipintoolbarset="true"/> |
488 + onclick="checkForMiddleClick(this, event);" |
563 +#endif |
489 + tooltip="back-button-tooltip"/> |
564 + |
490 + <toolbarbutton id="forward-button" class="toolbarbutton-1" |
565 + <tabs id="tabbrowser-tabs" |
491 + label="&forwardCmd.label;" |
566 + class="tabbrowser-tabs" |
492 + command="Browser:ForwardOrForwardDuplicate" |
567 + tabbrowser="content" |
493 + onclick="checkForMiddleClick(this, event);" |
568 + flex="1" |
494 + tooltip="forward-button-tooltip"/> |
569 + setfocus="false" |
495 + <dummyobservertarget hidden="true" |
570 + tooltip="tabbrowser-tab-tooltip" |
496 + onbroadcast="if (this.getAttribute('disabled') == 'true') |
571 + cui-areatype="toolbar" |
497 + this.parentNode.setAttribute('forwarddisabled', 'true'); |
572 + stopwatchid="FX_TAB_CLICK_MS"> |
498 + else |
573 + <tab class="tabbrowser-tab" selected="true" fadein="true"/> |
499 + this.parentNode.removeAttribute('forwarddisabled');"> |
574 + </tabs> |
500 + <observes element="Browser:ForwardOrForwardDuplicate" attribute="disabled"/> |
575 + |
501 + </dummyobservertarget> |
576 + <toolbarbutton id="new-tab-button" |
502 + </toolbaritem> |
577 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
503 + |
578 + label="&tabCmd.label;" |
504 + <toolbaritem id="urlbar-container" align="center" flex="400" persist="width" combined="true" |
579 + command="cmd_newNavigatorTab" |
505 + title="&locationItem.title;" class="chromeclass-location" removable="true"> |
|
506 + <textbox id="urlbar" flex="1" |
|
507 + placeholder="&urlbar.placeholder2;" |
|
508 + type="autocomplete" |
|
509 + autocompletesearch="urlinline history" |
|
510 + autocompletesearchparam="enable-actions" |
|
511 + autocompletepopup="PopupAutoCompleteRichResult" |
|
512 + completeselectedindex="true" |
|
513 + tabscrolling="true" |
|
514 + showcommentcolumn="true" |
|
515 + showimagecolumn="true" |
|
516 + enablehistory="true" |
|
517 + maxrows="6" |
|
518 + newlines="stripsurroundingwhitespace" |
|
519 + oninput="gBrowser.userTypedValue = this.value;" |
|
520 + ontextentered="this.handleCommand(param);" |
|
521 + ontextreverted="return this.handleRevert();" |
|
522 + pageproxystate="invalid" |
|
523 + onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'" |
|
524 + onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);"> |
|
525 + <box id="notification-popup-box" hidden="true" align="center"> |
|
526 + <image id="default-notification-icon" class="notification-anchor-icon" role="button"/> |
|
527 + <image id="identity-notification-icon" class="notification-anchor-icon" role="button"/> |
|
528 + <image id="geo-notification-icon" class="notification-anchor-icon" role="button"/> |
|
529 + <image id="addons-notification-icon" class="notification-anchor-icon" role="button"/> |
|
530 + <image id="indexedDB-notification-icon" class="notification-anchor-icon" role="button"/> |
|
531 + <image id="password-notification-icon" class="notification-anchor-icon" role="button"/> |
|
532 + <image id="webapps-notification-icon" class="notification-anchor-icon" role="button"/> |
|
533 + <image id="plugins-notification-icon" class="notification-anchor-icon" role="button"/> |
|
534 + <image id="web-notifications-notification-icon" class="notification-anchor-icon" role="button"/> |
|
535 + <image id="plugin-install-notification-icon" class="notification-anchor-icon" role="button"/> |
|
536 + <image id="mixed-content-blocked-notification-icon" class="notification-anchor-icon" role="button"/> |
|
537 + <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon" role="button"/> |
|
538 + <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon" role="button"/> |
|
539 + <image id="pointerLock-notification-icon" class="notification-anchor-icon" role="button"/> |
|
540 + <image id="servicesInstall-notification-icon" class="notification-anchor-icon" role="button"/> |
|
541 + </box> |
|
542 + <!-- Use onclick instead of normal popup= syntax since the popup |
|
543 + code fires onmousedown, and hence eats our favicon drag events. |
|
544 + We only add the identity-box button to the tab order when the location bar |
|
545 + has focus, otherwise pressing F6 focuses it instead of the location bar --> |
|
546 + <box id="identity-box" role="button" |
|
547 + align="center" |
|
548 + onclick="gIdentityHandler.handleIdentityButtonEvent(event);" |
|
549 + onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);" |
|
550 + ondragstart="gIdentityHandler.onDragStart(event);"> |
|
551 + <image id="page-proxy-favicon" |
|
552 + onclick="PageProxyClickHandler(event);" |
|
553 + pageproxystate="invalid"/> |
|
554 + <hbox id="identity-icon-labels"> |
|
555 + <label id="identity-icon-label" class="plain" flex="1"/> |
|
556 + <label id="identity-icon-country-label" class="plain"/> |
|
557 + </hbox> |
|
558 + </box> |
|
559 + <box id="urlbar-display-box" align="center"> |
|
560 + <label id="urlbar-display" value="&urlbar.switchToTab.label;"/> |
|
561 + </box> |
|
562 + <hbox id="urlbar-icons"> |
|
563 + <image id="page-report-button" |
|
564 + class="urlbar-icon" |
|
565 + hidden="true" |
|
566 + tooltiptext="&pageReportIcon.tooltip;" |
|
567 + onclick="gPopupBlockerObserver.onReportButtonClick(event);"/> |
|
568 + <image id="star-button" |
|
569 + class="urlbar-icon" |
|
570 + onclick="if (event.button === 0) BookmarkingUI.onCommand(event);"/> |
|
571 + <image id="go-button" |
|
572 + class="urlbar-icon" |
|
573 + tooltiptext="&goEndCap.tooltip;" |
|
574 + onclick="gURLBar.handleCommand(event);"/> |
|
575 + </hbox> |
|
576 + <toolbarbutton id="urlbar-go-button" |
|
577 + class="chromeclass-toolbar-additional" |
|
578 + onclick="gURLBar.handleCommand(event);" |
|
579 + tooltiptext="&goEndCap.tooltip;"/> |
|
580 + <toolbarbutton id="urlbar-reload-button" |
|
581 + class="chromeclass-toolbar-additional" |
|
582 + command="Browser:ReloadOrDuplicate" |
|
583 + onclick="checkForMiddleClick(this, event);" |
|
584 + tooltiptext="&reloadButton.tooltip;"/> |
|
585 + <toolbarbutton id="urlbar-stop-button" |
|
586 + class="chromeclass-toolbar-additional" |
|
587 + command="Browser:Stop" |
|
588 + tooltiptext="&stopButton.tooltip;"/> |
|
589 + </textbox> |
|
590 + </toolbaritem> |
|
591 + |
|
592 + <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
593 + label="&reloadCmd.label;" removable="true" |
|
594 + command="Browser:ReloadOrDuplicate" |
|
595 + onclick="checkForMiddleClick(this, event);" |
580 + onclick="checkForMiddleClick(this, event);" |
596 + tooltiptext="&reloadButton.tooltip;"/> |
581 + tooltiptext="&newTabButton.tooltip;" |
597 + |
582 + ondrop="newTabButtonObserver.onDrop(event)" |
598 + <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
583 + ondragover="newTabButtonObserver.onDragOver(event)" |
599 + label="&stopCmd.label;" removable="true" |
584 + ondragenter="newTabButtonObserver.onDragOver(event)" |
600 + command="Browser:Stop" |
585 + ondragexit="newTabButtonObserver.onDragExit(event)" |
601 + tooltiptext="&stopButton.tooltip;"/> |
586 + cui-areatype="toolbar" |
602 + |
587 + removable="true"/> |
603 + <toolbaritem id="search-container" title="&searchItem.title;" |
588 + |
604 + align="center" class="chromeclass-toolbar-additional" |
589 + <toolbarbutton id="alltabs-button" |
605 + flex="100" persist="width" removable="true"> |
590 + class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button" |
606 + <searchbar id="searchbar" flex="1"/> |
|
607 + </toolbaritem> |
|
608 + |
|
609 + <toolbarbutton id="webrtc-status-button" |
|
610 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
611 + type="menu" |
591 + type="menu" |
612 + hidden="true" |
592 + label="&listAllTabs.label;" |
613 + orient="horizontal" |
593 + tooltiptext="&listAllTabs.label;" |
614 + label="&webrtcIndicatorButton.label;" |
594 + removable="false"> |
615 + tooltiptext="&webrtcIndicatorButton.tooltip;"> |
595 + <menupopup id="alltabs-popup" |
616 + <menupopup onpopupshowing="WebrtcIndicator.fillPopup(this);" |
596 + position="after_end"> |
617 + onpopuphiding="WebrtcIndicator.clearPopup(this);" |
597 + <menuitem id="menu_tabview" |
618 + oncommand="WebrtcIndicator.menuCommand(event.target);"/> |
|
619 + </toolbarbutton> |
|
620 + |
|
621 + <toolbarbutton id="bookmarks-menu-button" |
|
622 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
623 + persist="class" |
|
624 + removable="true" |
|
625 + type="menu" |
|
626 + label="&bookmarksMenuButton.label;" |
|
627 + tooltiptext="&bookmarksMenuButton.tooltip;" |
|
628 + ondragenter="PlacesMenuDNDHandler.onDragEnter(event);" |
|
629 + ondragover="PlacesMenuDNDHandler.onDragOver(event);" |
|
630 + ondragleave="PlacesMenuDNDHandler.onDragLeave(event);" |
|
631 + ondrop="PlacesMenuDNDHandler.onDrop(event);"> |
|
632 + <menupopup id="BMB_bookmarksPopup" |
|
633 + placespopup="true" |
|
634 + context="placesContext" |
|
635 + openInTabs="children" |
|
636 + oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);" |
|
637 + onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);" |
|
638 + onpopupshowing="BookmarkingUI.onPopupShowing(event); |
|
639 + if (!this.parentNode._placesView) |
|
640 + new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');" |
|
641 + tooltip="bhTooltip" popupsinherittooltip="true"> |
|
642 + <menuitem id="BMB_viewBookmarksToolbar" |
|
643 + placesanonid="view-toolbar" |
|
644 + toolbarId="PersonalToolbar" |
|
645 + type="checkbox" |
|
646 + oncommand="onViewToolbarCommand(event)" |
|
647 + label="&viewBookmarksToolbar.label;"/> |
|
648 + <menuseparator/> |
|
649 + <menuitem id="BMB_bookmarksShowAll" |
|
650 + label="&showAllBookmarks2.label;" |
|
651 + command="Browser:ShowAllBookmarks" |
|
652 + key="manBookmarkKb"/> |
|
653 + <menuseparator/> |
|
654 + <menuitem id="BMB_bookmarkThisPage" |
|
655 +#ifndef XP_MACOSX |
|
656 + class="menuitem-iconic" |
598 + class="menuitem-iconic" |
657 +#endif |
599 + key="key_tabview" |
658 + label="&bookmarkThisPageCmd.label;" |
600 + label="&viewTabGroups.label;" |
659 + command="Browser:AddBookmarkAs" |
601 + command="Browser:ToggleTabView" |
660 + key="addBookmarkAsKb"/> |
602 + cui-areatype="toolbar" |
661 + <menuitem id="BMB_subscribeToPageMenuitem" |
603 + observes="tabviewGroupsNumber"/> |
662 +#ifndef XP_MACOSX |
604 + <menuseparator id="alltabs-popup-separator"/> |
663 + class="menuitem-iconic" |
|
664 +#endif |
|
665 + label="&subscribeToPageMenuitem.label;" |
|
666 + oncommand="return FeedHandler.subscribeToFeed(null, event);" |
|
667 + onclick="checkForMiddleClick(this, event);" |
|
668 + observes="singleFeedMenuitemState"/> |
|
669 + <menu id="BMB_subscribeToPageMenupopup" |
|
670 +#ifndef XP_MACOSX |
|
671 + class="menu-iconic" |
|
672 +#endif |
|
673 + label="&subscribeToPageMenupopup.label;" |
|
674 + observes="multipleFeedsMenuState"> |
|
675 + <menupopup id="BMB_subscribeToPageSubmenuMenupopup" |
|
676 + onpopupshowing="return FeedHandler.buildFeedList(event.target);" |
|
677 + oncommand="return FeedHandler.subscribeToFeed(null, event);" |
|
678 + onclick="checkForMiddleClick(this, event);"/> |
|
679 + </menu> |
|
680 + <menuseparator/> |
|
681 + <menu id="BMB_bookmarksToolbar" |
|
682 + placesanonid="toolbar-autohide" |
|
683 + class="menu-iconic bookmark-item" |
|
684 + label="&personalbarCmd.label;" |
|
685 + container="true"> |
|
686 + <menupopup id="BMB_bookmarksToolbarPopup" |
|
687 + placespopup="true" |
|
688 + context="placesContext" |
|
689 + onpopupshowing="if (!this.parentNode._placesView) |
|
690 + new PlacesMenu(event, 'place:folder=TOOLBAR');"/> |
|
691 + </menu> |
|
692 + <menuseparator/> |
|
693 + <!-- Bookmarks menu items --> |
|
694 + <menuseparator builder="end" |
|
695 + class="hide-if-empty-places-result"/> |
|
696 + <menuitem id="BMB_unsortedBookmarks" |
|
697 + label="&bookmarksMenuButton.unsorted.label;" |
|
698 + oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');" |
|
699 + class="menuitem-iconic"/> |
|
700 + </menupopup> |
605 + </menupopup> |
701 + </toolbarbutton> |
606 + </toolbarbutton> |
702 + |
607 + |
703 + <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
608 + <toolbarbutton id="tabs-closebutton" |
704 + persist="class" removable="true" |
609 + class="close-button tabs-closebutton close-icon" |
705 + label="&homeButton.label;" |
610 + command="cmd_close" |
706 + ondragover="homeButtonObserver.onDragOver(event)" |
611 + label="&closeTab.label;" |
707 + ondragenter="homeButtonObserver.onDragOver(event)" |
612 + cui-areatype="toolbar" |
708 + ondrop="homeButtonObserver.onDrop(event)" |
613 + tooltiptext="&closeTab.label;"/> |
709 + ondragexit="homeButtonObserver.onDragExit(event)" |
614 + |
710 + onclick="BrowserGoHome(event);" |
615 +#ifdef XP_WIN |
711 + aboutHomeOverrideTooltip="&abouthome.pageTitle;"/> |
616 + <hbox class="private-browsing-indicator" skipintoolbarset="true" ordinal="1000"/> |
712 + |
617 +#endif |
713 + <toolbarbutton id="social-share-button" |
618 +#ifdef CAN_DRAW_IN_TITLEBAR |
714 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
619 + <hbox class="titlebar-placeholder" type="caption-buttons" |
715 + hidden="true" |
620 + id="titlebar-placeholder-on-TabsToolbar-for-captions-buttons" persist="width" |
716 + label="&sharePageCmd.label;" |
621 +#ifndef XP_MACOSX |
717 + tooltiptext="&sharePageCmd.label;" |
622 + ordinal="1000" |
718 + command="Social:SharePage"/> |
623 +#endif |
719 + |
624 + skipintoolbarset="true"/> |
720 + <toolbaritem id="social-toolbar-item" |
625 + |
721 + class="chromeclass-toolbar-additional" |
626 +#ifdef XP_MACOSX |
722 + removable="false" |
627 + <hbox class="titlebar-placeholder" type="fullscreen-button" |
723 + title="&socialToolbar.title;" |
628 + id="titlebar-placeholder-on-TabsToolbar-for-fullscreen-button" persist="width" |
724 + hidden="true" |
629 + skipintoolbarset="true"/> |
725 + skipintoolbarset="true" |
630 +#endif |
726 + observes="socialActiveBroadcaster"> |
631 +#endif |
727 + <toolbarbutton id="social-notification-icon" class="default-notification-icon toolbarbutton-1 notification-anchor-icon" |
632 + </toolbar> |
728 + oncommand="PopupNotifications._reshowNotifications(this, |
633 + |
729 + document.getElementById('social-sidebar-browser'));"/> |
634 + <!-- |
730 + <toolbarbutton id="social-provider-button" |
635 + CAVEAT EMPTOR |
731 + class="toolbarbutton-1" |
636 + Should you need to add items to the toolbar here, make sure to also add them |
732 + type="menu"> |
637 + to the default placements of buttons in CustomizableUI.jsm, so the |
733 + <menupopup id="social-statusarea-popup"> |
638 + customization code doesn't get confused. |
734 + <menuitem class="social-statusarea-user menuitem-iconic" pack="start" align="center" |
639 + --> |
735 + observes="socialBroadcaster_userDetails" |
640 + <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar" |
736 + oncommand="SocialUI.showProfile(); document.getElementById('social-statusarea-popup').hidePopup();"> |
641 + aria-label="&navbarCmd.label;" |
737 + <image class="social-statusarea-user-portrait" |
642 + fullscreentoolbar="true" mode="icons" customizable="true" |
738 + observes="socialBroadcaster_userDetails"/> |
643 + iconsize="small" |
739 + <vbox> |
644 + defaultset="urlbar-container,search-container,webrtc-status-button,bookmarks-menu-button,downloads-button,home-button,social-share-button,social-toolbar-item" |
740 + <label class="social-statusarea-loggedInStatus" |
645 + customizationtarget="nav-bar-customization-target" |
741 + observes="socialBroadcaster_userDetails"/> |
646 + overflowable="true" |
742 + </vbox> |
647 + overflowbutton="nav-bar-overflow-button" |
|
648 + overflowtarget="widget-overflow-list" |
|
649 + overflowpanel="widget-overflow" |
|
650 + context="toolbar-context-menu"> |
|
651 + |
|
652 + <hbox id="nav-bar-customization-target" flex="1"> |
|
653 + <toolbaritem id="urlbar-container" flex="400" persist="width" |
|
654 + forwarddisabled="true" title="&locationItem.title;" removable="false" |
|
655 + cui-areatype="toolbar" |
|
656 + class="chromeclass-location" overflows="false"> |
|
657 + <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
658 + label="&backCmd.label;" |
|
659 + command="Browser:BackOrBackDuplicate" |
|
660 + cui-areatype="toolbar" |
|
661 + onclick="checkForMiddleClick(this, event);" |
|
662 + tooltip="back-button-tooltip" |
|
663 + context="backForwardMenu"/> |
|
664 + <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
665 + label="&forwardCmd.label;" |
|
666 + command="Browser:ForwardOrForwardDuplicate" |
|
667 + cui-areatype="toolbar" |
|
668 + onclick="checkForMiddleClick(this, event);" |
|
669 + tooltip="forward-button-tooltip" |
|
670 + context="backForwardMenu"/> |
|
671 + <dummyobservertarget hidden="true" |
|
672 + onbroadcast="if (this.getAttribute('disabled') == 'true') |
|
673 + this.parentNode.setAttribute('forwarddisabled', 'true'); |
|
674 + else |
|
675 + this.parentNode.removeAttribute('forwarddisabled');"> |
|
676 + <observes element="Browser:ForwardOrForwardDuplicate" attribute="disabled"/> |
|
677 + </dummyobservertarget> |
|
678 + <hbox id="urlbar-wrapper" flex="1" align="center"> |
|
679 + <textbox id="urlbar" flex="1" |
|
680 + placeholder="&urlbar.placeholder2;" |
|
681 + type="autocomplete" |
|
682 + autocompletesearch="urlinline history" |
|
683 + autocompletesearchparam="enable-actions" |
|
684 + autocompletepopup="PopupAutoCompleteRichResult" |
|
685 + completeselectedindex="true" |
|
686 + tabscrolling="true" |
|
687 + showcommentcolumn="true" |
|
688 + showimagecolumn="true" |
|
689 + enablehistory="true" |
|
690 + maxrows="6" |
|
691 + newlines="stripsurroundingwhitespace" |
|
692 + oninput="gBrowser.userTypedValue = this.value;" |
|
693 + ontextentered="this.handleCommand(param);" |
|
694 + ontextreverted="return this.handleRevert();" |
|
695 + pageproxystate="invalid" |
|
696 + onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'" |
|
697 + onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);"> |
|
698 + <box id="notification-popup-box" hidden="true" align="center"> |
|
699 + <image id="default-notification-icon" class="notification-anchor-icon" role="button"/> |
|
700 + <image id="identity-notification-icon" class="notification-anchor-icon" role="button"/> |
|
701 + <image id="geo-notification-icon" class="notification-anchor-icon" role="button"/> |
|
702 + <image id="addons-notification-icon" class="notification-anchor-icon" role="button"/> |
|
703 + <image id="indexedDB-notification-icon" class="notification-anchor-icon" role="button"/> |
|
704 + <image id="password-notification-icon" class="notification-anchor-icon" role="button"/> |
|
705 + <image id="webapps-notification-icon" class="notification-anchor-icon" role="button"/> |
|
706 + <image id="plugins-notification-icon" class="notification-anchor-icon" role="button"/> |
|
707 + <image id="web-notifications-notification-icon" class="notification-anchor-icon" role="button"/> |
|
708 + <image id="plugin-install-notification-icon" class="notification-anchor-icon" role="button"/> |
|
709 + <image id="mixed-content-blocked-notification-icon" class="notification-anchor-icon" role="button"/> |
|
710 + <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon" role="button"/> |
|
711 + <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon" role="button"/> |
|
712 + <image id="pointerLock-notification-icon" class="notification-anchor-icon" role="button"/> |
|
713 + <image id="servicesInstall-notification-icon" class="notification-anchor-icon" role="button"/> |
|
714 + </box> |
|
715 + <!-- Use onclick instead of normal popup= syntax since the popup |
|
716 + code fires onmousedown, and hence eats our favicon drag events. |
|
717 + We only add the identity-box button to the tab order when the location bar |
|
718 + has focus, otherwise pressing F6 focuses it instead of the location bar --> |
|
719 + <box id="identity-box" role="button" |
|
720 + align="center" |
|
721 + onclick="gIdentityHandler.handleIdentityButtonEvent(event);" |
|
722 + onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);" |
|
723 + ondragstart="gIdentityHandler.onDragStart(event);"> |
|
724 + <image id="page-proxy-favicon" |
|
725 + onclick="PageProxyClickHandler(event);" |
|
726 + pageproxystate="invalid"/> |
|
727 + <hbox id="identity-icon-labels"> |
|
728 + <label id="identity-icon-label" class="plain" flex="1"/> |
|
729 + <label id="identity-icon-country-label" class="plain"/> |
|
730 + </hbox> |
|
731 + </box> |
|
732 + <box id="urlbar-display-box" align="center"> |
|
733 + <label id="urlbar-display" value="&urlbar.switchToTab.label;"/> |
|
734 + </box> |
|
735 + <hbox id="urlbar-icons"> |
|
736 + <image id="page-report-button" |
|
737 + class="urlbar-icon" |
|
738 + hidden="true" |
|
739 + tooltiptext="&pageReportIcon.tooltip;" |
|
740 + onclick="gPopupBlockerObserver.onReportButtonClick(event);"/> |
|
741 + </hbox> |
|
742 + <toolbarbutton id="urlbar-go-button" |
|
743 + class="chromeclass-toolbar-additional" |
|
744 + onclick="gURLBar.handleCommand(event);" |
|
745 + tooltiptext="&goEndCap.tooltip;"/> |
|
746 + <toolbarbutton id="urlbar-reload-button" |
|
747 + class="chromeclass-toolbar-additional" |
|
748 + command="Browser:ReloadOrDuplicate" |
|
749 + onclick="checkForMiddleClick(this, event);" |
|
750 + tooltiptext="&reloadButton.tooltip;"/> |
|
751 + <toolbarbutton id="urlbar-stop-button" |
|
752 + class="chromeclass-toolbar-additional" |
|
753 + command="Browser:Stop" |
|
754 + tooltiptext="&stopButton.tooltip;"/> |
|
755 + </textbox> |
|
756 + </hbox> |
|
757 + </toolbaritem> |
|
758 + |
|
759 + <toolbaritem id="search-container" title="&searchItem.title;" |
|
760 + align="center" class="chromeclass-toolbar-additional panel-wide-item" |
|
761 + cui-areatype="toolbar" |
|
762 + flex="100" persist="width" removable="true"> |
|
763 + <searchbar id="searchbar" flex="1"/> |
|
764 + </toolbaritem> |
|
765 + |
|
766 + <toolbarbutton id="webrtc-status-button" |
|
767 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
768 + type="menu" |
|
769 + hidden="true" |
|
770 + orient="horizontal" |
|
771 + label="&webrtcIndicatorButton.label;" |
|
772 + tooltiptext="&webrtcIndicatorButton.tooltip;" |
|
773 + cui-areatype="toolbar" |
|
774 + overflows="false"> |
|
775 + <menupopup onpopupshowing="WebrtcIndicator.fillPopup(this);" |
|
776 + onpopuphiding="WebrtcIndicator.clearPopup(this);" |
|
777 + oncommand="WebrtcIndicator.menuCommand(event.target);"/> |
|
778 + </toolbarbutton> |
|
779 + |
|
780 + <toolbarbutton id="bookmarks-menu-button" |
|
781 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
782 + persist="class" |
|
783 + removable="true" |
|
784 + type="menu-button" |
|
785 + label="&bookmarksMenuButton.label;" |
|
786 + tooltip="dynamic-shortcut-tooltip" |
|
787 + anchor="dropmarker" |
|
788 + ondragenter="PlacesMenuDNDHandler.onDragEnter(event);" |
|
789 + ondragover="PlacesMenuDNDHandler.onDragOver(event);" |
|
790 + ondragleave="PlacesMenuDNDHandler.onDragLeave(event);" |
|
791 + ondrop="PlacesMenuDNDHandler.onDrop(event);" |
|
792 + cui-areatype="toolbar" |
|
793 + oncommand="BookmarkingUI.onCommand(event);"> |
|
794 + <menupopup id="BMB_bookmarksPopup" |
|
795 + class="cui-widget-panel cui-widget-panelview cui-widget-panelWithFooter PanelUI-subView" |
|
796 + placespopup="true" |
|
797 + context="placesContext" |
|
798 + openInTabs="children" |
|
799 + oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);" |
|
800 + onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);" |
|
801 + onpopupshowing="BookmarkingUI.onPopupShowing(event); |
|
802 + BookmarkingUI.attachPlacesView(event, this);" |
|
803 + tooltip="bhTooltip" popupsinherittooltip="true"> |
|
804 + <menuitem id="BMB_viewBookmarksSidebar" |
|
805 + class="subviewbutton" |
|
806 + label="&viewBookmarksSidebar2.label;" |
|
807 + type="checkbox" |
|
808 + oncommand="toggleSidebar('viewBookmarksSidebar');"> |
|
809 + <observes element="viewBookmarksSidebar" attribute="checked"/> |
743 + </menuitem> |
810 + </menuitem> |
744 +#ifndef XP_WIN |
|
745 + <menuseparator class="social-statusarea-separator"/> |
|
746 +#endif |
|
747 + <menuitem class="social-toggle-sidebar-menuitem" |
|
748 + type="checkbox" |
|
749 + autocheck="false" |
|
750 + command="Social:ToggleSidebar" |
|
751 + label="&social.toggleSidebar.label;" |
|
752 + accesskey="&social.toggleSidebar.accesskey;"/> |
|
753 + <menuitem class="social-toggle-notifications-menuitem" |
|
754 + type="checkbox" |
|
755 + autocheck="false" |
|
756 + command="Social:ToggleNotifications" |
|
757 + label="&social.toggleNotifications.label;" |
|
758 + accesskey="&social.toggleNotifications.accesskey;"/> |
|
759 + <menuitem class="social-toggle-menuitem" command="Social:Toggle"/> |
|
760 + <menuseparator/> |
811 + <menuseparator/> |
761 + <menuseparator class="social-provider-menu" hidden="true"/> |
812 + <menuitem id="BMB_subscribeToPageMenuitem" |
762 + <menuitem class="social-addons-menuitem" command="Social:Addons" |
813 +#ifndef XP_MACOSX |
763 + label="&social.addons.label;"/> |
814 + class="menuitem-iconic subviewbutton" |
764 + <menuitem label="&social.learnMore.label;" |
815 +#else |
765 + accesskey="&social.learnMore.accesskey;" |
816 + class="subviewbutton" |
766 + oncommand="SocialUI.showLearnMore();"/> |
817 +#endif |
|
818 + label="&subscribeToPageMenuitem.label;" |
|
819 + oncommand="return FeedHandler.subscribeToFeed(null, event);" |
|
820 + onclick="checkForMiddleClick(this, event);" |
|
821 + observes="singleFeedMenuitemState"/> |
|
822 + <menu id="BMB_subscribeToPageMenupopup" |
|
823 +#ifndef XP_MACOSX |
|
824 + class="menu-iconic subviewbutton" |
|
825 +#else |
|
826 + class="subviewbutton" |
|
827 +#endif |
|
828 + label="&subscribeToPageMenupopup.label;" |
|
829 + observes="multipleFeedsMenuState"> |
|
830 + <menupopup id="BMB_subscribeToPageSubmenuMenupopup" |
|
831 + onpopupshowing="return FeedHandler.buildFeedList(event.target);" |
|
832 + oncommand="return FeedHandler.subscribeToFeed(null, event);" |
|
833 + onclick="checkForMiddleClick(this, event);"/> |
|
834 + </menu> |
|
835 + <menuseparator/> |
|
836 + <menu id="BMB_bookmarksToolbar" |
|
837 + class="menu-iconic bookmark-item subviewbutton" |
|
838 + label="&personalbarCmd.label;" |
|
839 + container="true"> |
|
840 + <menupopup id="BMB_bookmarksToolbarPopup" |
|
841 + placespopup="true" |
|
842 + context="placesContext" |
|
843 + onpopupshowing="if (!this.parentNode._placesView) |
|
844 + new PlacesMenu(event, 'place:folder=TOOLBAR', |
|
845 + PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"> |
|
846 + <menuitem id="BMB_viewBookmarksToolbar" |
|
847 + placesanonid="view-toolbar" |
|
848 + toolbarId="PersonalToolbar" |
|
849 + type="checkbox" |
|
850 + oncommand="onViewToolbarCommand(event)" |
|
851 + label="&viewBookmarksToolbar.label;"/> |
|
852 + <menuseparator/> |
|
853 + <!-- Bookmarks toolbar items --> |
|
854 + </menupopup> |
|
855 + </menu> |
|
856 + <menu id="BMB_unsortedBookmarks" |
|
857 + class="menu-iconic bookmark-item subviewbutton" |
|
858 + label="&bookmarksMenuButton.unsorted.label;" |
|
859 + container="true"> |
|
860 + <menupopup id="BMB_unsortedBookmarksPopup" |
|
861 + placespopup="true" |
|
862 + context="placesContext" |
|
863 + onpopupshowing="if (!this.parentNode._placesView) |
|
864 + new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS', |
|
865 + PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"/> |
|
866 + </menu> |
|
867 + <menuseparator/> |
|
868 + <!-- Bookmarks menu items will go here --> |
|
869 + <menuitem id="BMB_bookmarksShowAll" |
|
870 + class="subviewbutton panel-subview-footer" |
|
871 + label="&showAllBookmarks2.label;" |
|
872 + command="Browser:ShowAllBookmarks" |
|
873 + key="manBookmarkKb"/> |
767 + </menupopup> |
874 + </menupopup> |
768 + </toolbarbutton> |
875 + </toolbarbutton> |
|
876 + |
|
877 + <!-- This is a placeholder for the Downloads Indicator. It is visible |
|
878 + during the customization of the toolbar, in the palette, and before |
|
879 + the Downloads Indicator overlay is loaded. --> |
|
880 + <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
881 + oncommand="DownloadsIndicatorView.onCommand(event);" |
|
882 + ondrop="DownloadsIndicatorView.onDrop(event);" |
|
883 + ondragover="DownloadsIndicatorView.onDragOver(event);" |
|
884 + ondragenter="DownloadsIndicatorView.onDragOver(event);" |
|
885 + label="&downloads.label;" |
|
886 + removable="true" |
|
887 + cui-areatype="toolbar" |
|
888 + tooltiptext="&downloads.tooltip;"/> |
|
889 + |
|
890 + <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
891 + persist="class" removable="true" |
|
892 + label="&homeButton.label;" |
|
893 + ondragover="homeButtonObserver.onDragOver(event)" |
|
894 + ondragenter="homeButtonObserver.onDragOver(event)" |
|
895 + ondrop="homeButtonObserver.onDrop(event)" |
|
896 + ondragexit="homeButtonObserver.onDragExit(event)" |
|
897 + onclick="BrowserGoHome(event);" |
|
898 + cui-areatype="toolbar" |
|
899 + aboutHomeOverrideTooltip="&abouthome.pageTitle;"/> |
|
900 + |
|
901 + |
|
902 + <toolbarbutton id="social-share-button" |
|
903 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
904 + hidden="true" |
|
905 + overflows="false" |
|
906 + label="&sharePageCmd.label;" |
|
907 + tooltiptext="&sharePageCmd.label;" |
|
908 + cui-areatype="toolbar" |
|
909 + command="Social:SharePage"/> |
|
910 + </hbox> |
|
911 + |
|
912 + <toolbarbutton id="nav-bar-overflow-button" |
|
913 + class="toolbarbutton-1 chromeclass-toolbar-additional overflow-button" |
|
914 + cui-areatype="toolbar" |
|
915 + skipintoolbarset="true" |
|
916 + tooltiptext="&navbarOverflow.label;"/> |
|
917 + |
|
918 + <toolbaritem id="PanelUI-button" |
|
919 + class="chromeclass-toolbar-additional" |
|
920 + cui-areatype="toolbar" |
|
921 + removable="false"> |
|
922 + <toolbarbutton id="PanelUI-menu-button" |
|
923 + class="toolbarbutton-1" |
|
924 + cui-areatype="toolbar" |
|
925 + label="&brandShortName;" |
|
926 + tooltiptext="&appmenu.tooltip;"/> |
769 + </toolbaritem> |
927 + </toolbaritem> |
770 + |
928 + |
771 + <hbox id="window-controls" hidden="true" pack="end"> |
929 + <hbox id="window-controls" hidden="true" pack="end" skipintoolbarset="true" |
|
930 + ordinal="1000"> |
772 + <toolbarbutton id="minimize-button" |
931 + <toolbarbutton id="minimize-button" |
773 + tooltiptext="&fullScreenMinimize.tooltip;" |
932 + tooltiptext="&fullScreenMinimize.tooltip;" |
774 + oncommand="window.minimize();"/> |
933 + oncommand="window.minimize();"/> |
775 + |
934 + |
776 + <toolbarbutton id="restore-button" |
935 + <toolbarbutton id="restore-button" |
|
936 +#ifdef XP_MACOSX |
|
937 +# Prior to 10.7 there wasn't a native fullscreen button so we use #restore-button |
|
938 +# to exit fullscreen and want it to behave like other toolbar buttons. |
|
939 + class="toolbarbutton-1" |
|
940 + cui-areatype="toolbar" |
|
941 +#endif |
777 + tooltiptext="&fullScreenRestore.tooltip;" |
942 + tooltiptext="&fullScreenRestore.tooltip;" |
778 + oncommand="BrowserFullScreen();"/> |
943 + oncommand="BrowserFullScreen();"/> |
779 + |
944 + |
780 + <toolbarbutton id="close-button" |
945 + <toolbarbutton id="close-button" |
781 + tooltiptext="&fullScreenClose.tooltip;" |
946 + tooltiptext="&fullScreenClose.tooltip;" |
831 + </hbox> |
1000 + </hbox> |
832 + </hbox> |
1001 + </hbox> |
833 + </toolbaritem> |
1002 + </toolbaritem> |
834 + </toolbar> |
1003 + </toolbar> |
835 + |
1004 + |
836 +#ifdef MENUBAR_CAN_AUTOHIDE |
1005 + <!-- This is a shim which will go away ASAP. See bug 749804 for details --> |
837 +#ifndef CAN_DRAW_IN_TITLEBAR |
1006 + <toolbar id="addon-bar" toolbar-delegate="nav-bar" mode="icons" iconsize="small" |
838 +#define APPMENU_ON_TABBAR |
1007 + customizable="true"> |
839 +#endif |
1008 + <hbox id="addonbar-closebutton"/> |
840 +#endif |
1009 + <statusbar id="status-bar"/> |
841 + |
|
842 + |
|
843 + <toolbar id="TabsToolbar" |
|
844 + class="toolbar-primary" |
|
845 + fullscreentoolbar="true" |
|
846 + customizable="true" |
|
847 + mode="icons" lockmode="true" |
|
848 + iconsize="small" defaulticonsize="small" lockiconsize="true" |
|
849 + aria-label="&tabsToolbar.label;" |
|
850 + context="toolbar-context-menu" |
|
851 +#ifdef APPMENU_ON_TABBAR |
|
852 + defaultset="appmenu-toolbar-button,tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton" |
|
853 +#else |
|
854 + defaultset="tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton" |
|
855 +#endif |
|
856 + collapsed="true"> |
|
857 + |
|
858 +#ifdef APPMENU_ON_TABBAR |
|
859 + <toolbarbutton id="appmenu-toolbar-button" |
|
860 + class="chromeclass-toolbar-additional" |
|
861 + type="menu" |
|
862 + label="&brandShortName;" |
|
863 + tooltiptext="&appMenuButton.tooltip;"> |
|
864 +#include browser-appmenu.inc |
|
865 + </toolbarbutton> |
|
866 +#endif |
|
867 + |
|
868 + <tabs id="tabbrowser-tabs" |
|
869 + class="tabbrowser-tabs" |
|
870 + tabbrowser="content" |
|
871 + flex="1" |
|
872 + setfocus="false" |
|
873 + tooltip="tabbrowser-tab-tooltip" |
|
874 + stopwatchid="FX_TAB_CLICK_MS"> |
|
875 + <tab class="tabbrowser-tab" selected="true" fadein="true"/> |
|
876 + </tabs> |
|
877 + |
|
878 + <toolbarbutton id="new-tab-button" |
|
879 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
880 + label="&tabCmd.label;" |
|
881 + command="cmd_newNavigatorTab" |
|
882 + onclick="checkForMiddleClick(this, event);" |
|
883 + tooltiptext="&newTabButton.tooltip;" |
|
884 + ondrop="newTabButtonObserver.onDrop(event)" |
|
885 + ondragover="newTabButtonObserver.onDragOver(event)" |
|
886 + ondragenter="newTabButtonObserver.onDragOver(event)" |
|
887 + ondragexit="newTabButtonObserver.onDragExit(event)" |
|
888 + removable="true"/> |
|
889 + |
|
890 + <toolbarbutton id="alltabs-button" |
|
891 + class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button" |
|
892 + type="menu" |
|
893 + label="&listAllTabs.label;" |
|
894 + tooltiptext="&listAllTabs.label;" |
|
895 + removable="true"> |
|
896 + <menupopup id="alltabs-popup" |
|
897 + position="after_end"> |
|
898 + <menuitem id="menu_tabview" |
|
899 + class="menuitem-iconic" |
|
900 + key="key_tabview" |
|
901 + label="&viewTabGroups.label;" |
|
902 + command="Browser:ToggleTabView" |
|
903 + observes="tabviewGroupsNumber"/> |
|
904 + <menuseparator id="alltabs-popup-separator"/> |
|
905 + </menupopup> |
|
906 + </toolbarbutton> |
|
907 + |
|
908 + <toolbarbutton id="tabs-closebutton" |
|
909 + class="close-button tabs-closebutton" |
|
910 + command="cmd_close" |
|
911 + label="&closeTab.label;" |
|
912 + tooltiptext="&closeTab.label;"/> |
|
913 + |
|
914 +#ifdef CAN_DRAW_IN_TITLEBAR |
|
915 + <hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/> |
|
916 + <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"/> |
|
917 +#endif |
|
918 + </toolbar> |
1010 + </toolbar> |
919 + |
1011 + |
920 + <toolbarpalette id="BrowserToolbarPalette"> |
1012 + <toolbarpalette id="BrowserToolbarPalette"> |
921 + |
1013 + |
922 +# Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding |
1014 +# Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding |
923 +# or removing default items with the toolbarbutton-1 class. |
1015 +# or removing default items with the toolbarbutton-1 class. |
924 + |
1016 + |
925 + <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
1017 + <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
926 + label="&printButton.label;" command="cmd_print" |
1018 +#ifdef XP_MACOSX |
927 + tooltiptext="&printButton.tooltip;"/> |
1019 + command="cmd_print" tooltip="dynamic-shortcut-tooltip" |
928 + |
1020 +#else |
929 + <!-- This is a placeholder for the Downloads Indicator. It is visible |
1021 + command="cmd_printPreview" tooltiptext="&printButton.tooltip;" |
930 + during the customization of the toolbar, in the palette, and before |
1022 +#endif |
931 + the Downloads Indicator overlay is loaded. --> |
1023 + label="&printButton.label;"/> |
932 + <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
1024 + |
933 + oncommand="DownloadsIndicatorView.onCommand(event);" |
|
934 + ondrop="DownloadsIndicatorView.onDrop(event);" |
|
935 + ondragover="DownloadsIndicatorView.onDragOver(event);" |
|
936 + ondragenter="DownloadsIndicatorView.onDragOver(event);" |
|
937 + label="&downloads.label;" |
|
938 + tooltiptext="&downloads.tooltip;"/> |
|
939 + |
|
940 + <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
941 + observes="viewHistorySidebar" label="&historyButton.label;" |
|
942 + tooltiptext="&historyButton.tooltip;"/> |
|
943 + |
|
944 + <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
945 + observes="viewBookmarksSidebar" |
|
946 + tooltiptext="&bookmarksButton.tooltip;" |
|
947 + ondrop="bookmarksButtonObserver.onDrop(event)" |
|
948 + ondragover="bookmarksButtonObserver.onDragOver(event)" |
|
949 + ondragenter="bookmarksButtonObserver.onDragOver(event)" |
|
950 + ondragexit="bookmarksButtonObserver.onDragExit(event)"/> |
|
951 + |
1025 + |
952 + <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
1026 + <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
953 + label="&newNavigatorCmd.label;" |
1027 + label="&newNavigatorCmd.label;" |
954 + command="key_newNavigator" |
1028 + command="key_newNavigator" |
955 + tooltiptext="&newWindowButton.tooltip;" |
1029 + tooltip="dynamic-shortcut-tooltip" |
956 + ondrop="newWindowButtonObserver.onDrop(event)" |
1030 + ondrop="newWindowButtonObserver.onDrop(event)" |
957 + ondragover="newWindowButtonObserver.onDragOver(event)" |
1031 + ondragover="newWindowButtonObserver.onDragOver(event)" |
958 + ondragenter="newWindowButtonObserver.onDragOver(event)" |
1032 + ondragenter="newWindowButtonObserver.onDragOver(event)" |
959 + ondragexit="newWindowButtonObserver.onDragExit(event)"/> |
1033 + ondragexit="newWindowButtonObserver.onDragExit(event)"/> |
960 + |
1034 + |
961 + <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
1035 + <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
962 + observes="View:FullScreen" |
1036 + observes="View:FullScreen" |
963 + type="checkbox" |
1037 + type="checkbox" |
964 + label="&fullScreenCmd.label;" |
1038 + label="&fullScreenCmd.label;" |
965 + tooltiptext="&fullScreenButton.tooltip;"/> |
1039 + tooltip="dynamic-shortcut-tooltip"/> |
966 + |
|
967 + <toolbaritem id="zoom-controls" class="chromeclass-toolbar-additional" |
|
968 + title="&zoomControls.label;"> |
|
969 + <toolbarbutton id="zoom-out-button" class="toolbarbutton-1" |
|
970 + label="&fullZoomReduceCmd.label;" |
|
971 + command="cmd_fullZoomReduce" |
|
972 + tooltiptext="&zoomOutButton.tooltip;"/> |
|
973 + <toolbarbutton id="zoom-in-button" class="toolbarbutton-1" |
|
974 + label="&fullZoomEnlargeCmd.label;" |
|
975 + command="cmd_fullZoomEnlarge" |
|
976 + tooltiptext="&zoomInButton.tooltip;"/> |
|
977 + </toolbaritem> |
|
978 + |
|
979 + <toolbarbutton id="feed-button" |
|
980 + type="menu" |
|
981 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
982 + disabled="true" |
|
983 + label="&feedButton.label;" |
|
984 + tooltiptext="&feedButton.tooltip;" |
|
985 + onclick="return FeedHandler.onFeedButtonClick(event);"> |
|
986 + <menupopup position="after_end" |
|
987 + id="feed-menu" |
|
988 + onpopupshowing="return FeedHandler.buildFeedList(this);" |
|
989 + oncommand="return FeedHandler.subscribeToFeed(null, event);" |
|
990 + onclick="checkForMiddleClick(this, event);"/> |
|
991 + </toolbarbutton> |
|
992 + |
|
993 + <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
994 + label="&cutCmd.label;" |
|
995 + command="cmd_cut" |
|
996 + tooltiptext="&cutButton.tooltip;"/> |
|
997 + |
|
998 + <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
999 + label="©Cmd.label;" |
|
1000 + command="cmd_copy" |
|
1001 + tooltiptext="©Button.tooltip;"/> |
|
1002 + |
|
1003 + <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
|
1004 + label="&pasteCmd.label;" |
|
1005 + command="cmd_paste" |
|
1006 + tooltiptext="&pasteButton.tooltip;"/> |
|
1007 + |
1040 + |
1008 +#ifdef MOZ_SERVICES_SYNC |
1041 +#ifdef MOZ_SERVICES_SYNC |
1009 + <toolbarbutton id="sync-button" |
1042 + <toolbarbutton id="sync-button" |
1010 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
1043 + class="toolbarbutton-1 chromeclass-toolbar-additional" |
1011 + label="&syncToolbarButton.label;" |
1044 + label="&syncToolbarButton.label;" |
1012 + oncommand="gSyncUI.handleToolbarButton()"/> |
1045 + oncommand="gSyncUI.handleToolbarButton()"/> |
1013 +#endif |
1046 +#endif |
1014 + |
1047 + |
1015 + <toolbaritem id="navigator-throbber" title="&throbberItem.title;" align="center" pack="center" |
|
1016 + mousethrough="always"> |
|
1017 + <image/> |
|
1018 + </toolbaritem> |
|
1019 + |
|
1020 + <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
1048 + <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional" |
1021 + label="&tabGroupsButton.label;" |
1049 + label="&tabGroupsButton.label;" |
1022 + command="Browser:ToggleTabView" |
1050 + command="Browser:ToggleTabView" |
1023 + tooltiptext="&tabGroupsButton.tooltip;" |
1051 + tooltip="dynamic-shortcut-tooltip" |
1024 + observes="tabviewGroupsNumber"/> |
1052 + observes="tabviewGroupsNumber"/> |
1025 + </toolbarpalette> |
1053 + </toolbarpalette> |
1026 + </toolbox> |
1054 + </toolbox> |
1027 + |
1055 + |
1028 + <hbox id="fullscr-toggler" collapsed="true"/> |
1056 + <hbox id="fullscr-toggler" collapsed="true"/> |
1029 + |
1057 + |
1030 + <hbox flex="1" id="browser"> |
1058 + <deck id="content-deck" flex="1"> |
1031 + <vbox id="browser-border-start" hidden="true" layer="true"/> |
1059 + <hbox flex="1" id="browser"> |
1032 + <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome"> |
1060 + <vbox id="browser-border-start" hidden="true" layer="true"/> |
1033 + <sidebarheader id="sidebar-header" align="center"> |
1061 + <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome"> |
1034 + <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/> |
1062 + <sidebarheader id="sidebar-header" align="center"> |
1035 + <image id="sidebar-throbber"/> |
1063 + <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/> |
1036 + <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/> |
1064 + <image id="sidebar-throbber"/> |
1037 + </sidebarheader> |
1065 + <toolbarbutton class="tabs-closebutton close-icon" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/> |
1038 + <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true" |
1066 + </sidebarheader> |
1039 + style="min-width: 14em; width: 18em; max-width: 36em;"/> |
1067 + <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true" |
1040 + </vbox> |
1068 + style="min-width: 14em; width: 18em; max-width: 36em;"/> |
1041 + |
1069 + </vbox> |
1042 + <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/> |
1070 + |
1043 + <vbox id="appcontent" flex="1"> |
1071 + <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/> |
1044 + <tabbrowser id="content" |
1072 + <vbox id="appcontent" flex="1"> |
1045 + flex="1" contenttooltip="aHTMLTooltip" |
1073 + <tabbrowser id="content" |
1046 + tabcontainer="tabbrowser-tabs" |
1074 + flex="1" contenttooltip="aHTMLTooltip" |
1047 + contentcontextmenu="contentAreaContextMenu" |
1075 + tabcontainer="tabbrowser-tabs" |
1048 + autocompletepopup="PopupAutoComplete" |
1076 + contentcontextmenu="contentAreaContextMenu" |
1049 + selectpopup="ContentSelectDropdown"/> |
1077 + autocompletepopup="PopupAutoComplete" |
1050 + <chatbar id="pinnedchats" layer="true" mousethrough="always" hidden="true"/> |
1078 + selectpopup="ContentSelectDropdown" |
1051 + </vbox> |
1079 + onclick="contentAreaClick(event, false);"/> |
1052 + <splitter id="social-sidebar-splitter" |
1080 + <chatbar id="pinnedchats" layer="true" mousethrough="always" hidden="true"/> |
1053 + class="chromeclass-extrachrome sidebar-splitter" |
1081 + </vbox> |
1054 + observes="socialSidebarBroadcaster"/> |
1082 + <splitter id="social-sidebar-splitter" |
1055 + <vbox id="social-sidebar-box" |
1083 + class="chromeclass-extrachrome sidebar-splitter" |
1056 + class="chromeclass-extrachrome" |
1084 + observes="socialSidebarBroadcaster"/> |
1057 + observes="socialSidebarBroadcaster" |
1085 + <vbox id="social-sidebar-box" |
1058 + persist="width"> |
1086 + class="chromeclass-extrachrome" |
1059 + <browser id="social-sidebar-browser" |
1087 + observes="socialSidebarBroadcaster" |
1060 + type="content" |
1088 + persist="width"> |
1061 + context="contentAreaContextMenu" |
1089 + |
1062 + disableglobalhistory="true" |
1090 + <sidebarheader id="social-sidebar-header" class="sidebar-header" align="center"> |
1063 + tooltip="aHTMLTooltip" |
1091 + <image id="social-sidebar-favico"/> |
1064 + popupnotificationanchor="social-notification-icon" |
1092 + <label id="social-sidebar-title" class="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/> |
1065 + flex="1" |
1093 + <toolbarbutton id="social-sidebar-button" |
1066 + style="min-width: 14em; width: 18em; max-width: 36em;"/> |
1094 + class="toolbarbutton-1" |
1067 + </vbox> |
1095 + type="menu"> |
1068 + <vbox id="browser-border-end" hidden="true" layer="true"/> |
1096 + <menupopup id="social-statusarea-popup" position="after_end"> |
1069 + </hbox> |
1097 + <menuitem class="social-toggle-sidebar-menuitem" |
|
1098 + type="checkbox" |
|
1099 + autocheck="false" |
|
1100 + command="Social:ToggleSidebar" |
|
1101 + label="&social.toggleSidebar.label;" |
|
1102 + accesskey="&social.toggleSidebar.accesskey;"/> |
|
1103 + <menuitem class="social-toggle-notifications-menuitem" |
|
1104 + type="checkbox" |
|
1105 + autocheck="false" |
|
1106 + command="Social:ToggleNotifications" |
|
1107 + label="&social.toggleNotifications.label;" |
|
1108 + accesskey="&social.toggleNotifications.accesskey;"/> |
|
1109 + <menuitem class="social-toggle-menuitem" command="Social:Toggle"/> |
|
1110 + <menuseparator/> |
|
1111 + <menuseparator class="social-provider-menu" hidden="true"/> |
|
1112 + <menuitem class="social-addons-menuitem" command="Social:Addons" |
|
1113 + label="&social.addons.label;"/> |
|
1114 + <menuitem label="&social.learnMore.label;" |
|
1115 + accesskey="&social.learnMore.accesskey;" |
|
1116 + oncommand="SocialUI.showLearnMore();"/> |
|
1117 + </menupopup> |
|
1118 + </toolbarbutton> |
|
1119 + </sidebarheader> |
|
1120 + |
|
1121 + <browser id="social-sidebar-browser" |
|
1122 + type="content" |
|
1123 + context="contentAreaContextMenu" |
|
1124 + disableglobalhistory="true" |
|
1125 + tooltip="aHTMLTooltip" |
|
1126 + popupnotificationanchor="social-sidebar-favico" |
|
1127 + flex="1" |
|
1128 + style="min-width: 14em; width: 18em; max-width: 36em;"/> |
|
1129 + </vbox> |
|
1130 + <vbox id="browser-border-end" hidden="true" layer="true"/> |
|
1131 + </hbox> |
|
1132 +#include ../../components/customizableui/content/customizeMode.inc.xul |
|
1133 + </deck> |
1070 + |
1134 + |
1071 + <hbox id="full-screen-warning-container" hidden="true" fadeout="true"> |
1135 + <hbox id="full-screen-warning-container" hidden="true" fadeout="true"> |
1072 + <hbox style="width: 100%;" pack="center"> <!-- Inner hbox needed due to bug 579776. --> |
1136 + <hbox style="width: 100%;" pack="center"> <!-- Inner hbox needed due to bug 579776. --> |
1073 + <vbox id="full-screen-warning-message" align="center"> |
1137 + <vbox id="full-screen-warning-message" align="center"> |
1074 + <description id="full-screen-domain-text"/> |
1138 + <description id="full-screen-domain-text"/> |