mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
741 lines
42 KiB
XML
741 lines
42 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<?xml-stylesheet href="chrome://browser/skin/platform.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/skin/forms.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/skin/cssthrobber.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
|
|
%globalDTD;
|
|
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
|
|
%browserDTD;
|
|
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
|
|
%brandDTD;
|
|
<!ENTITY % prefsDTD SYSTEM "chrome://browser/locale/preferences.dtd">
|
|
%prefsDTD;
|
|
<!ENTITY % aboutPanelDTD SYSTEM "chrome://browser/locale/aboutPanel.dtd">
|
|
%aboutPanelDTD;
|
|
#ifdef MOZ_SERVICES_SYNC
|
|
<!ENTITY % syncDTD SYSTEM "chrome://browser/locale/sync.dtd">
|
|
%syncDTD;
|
|
#endif
|
|
]>
|
|
|
|
<window id="main-window"
|
|
onload="Browser.startup();"
|
|
onunload="Browser.shutdown();"
|
|
onclose="return Browser.closing();"
|
|
windowtype="navigator:browser"
|
|
chromedir="&locale.dir;"
|
|
title="&brandShortName;"
|
|
width="1366"
|
|
height="768"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:svg="http://www.w3.org/2000/svg"
|
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
|
|
|
<script type="application/javascript" src="chrome://browser/content/browser.js"/>
|
|
<script type="application/javascript" src="chrome://browser/content/browser-scripts.js"/>
|
|
<script type="application/javascript" src="chrome://browser/content/browser-ui.js"/>
|
|
<script type="application/javascript" src="chrome://browser/content/Util.js"/>
|
|
<script type="application/javascript" src="chrome://browser/content/input.js"/>
|
|
<script type="application/javascript;version=1.8" src="chrome://browser/content/appbar.js"/>
|
|
<script type="application/javascript" src="chrome://browser/content/aboutPanel.js"/>
|
|
|
|
<broadcasterset id="broadcasterset">
|
|
<broadcaster id="bcast_contentShowing" disabled="false"/>
|
|
<broadcaster id="bcast_urlbarState" mode="view"/>
|
|
<broadcaster id="bcast_preciseInput" input="imprecise"/>
|
|
<broadcaster id="bcast_windowState" viewstate=""/>
|
|
</broadcasterset>
|
|
|
|
<observerset id="observerset">
|
|
<observes id="observe_contentShowing" element="bcast_contentShowing" attribute="disabled" onbroadcast="BrowserUI.updateUIFocus();"/>
|
|
</observerset>
|
|
|
|
<commandset id="mainCommandSet">
|
|
<!-- basic navigation -->
|
|
<command id="cmd_back" disabled="true" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_forward" disabled="true" oncommand="CommandUpdater.doCommand(this.id);" observes="bcast_urlbarState"/>
|
|
<command id="cmd_handleBackspace" oncommand="BrowserUI.handleBackspace();" />
|
|
<command id="cmd_handleShiftBackspace" oncommand="BrowserUI.handleShiftBackspace();" />
|
|
<command id="cmd_reload" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_forceReload" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_stop" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_go" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_openLocation" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_home" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_openFile" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_savePage" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<!-- tabs -->
|
|
<command id="cmd_newTab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_closeTab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_undoCloseTab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
#ifdef MOZ_SERVICES_SYNC
|
|
<command id="cmd_remoteTabs" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
#endif
|
|
|
|
<!-- misc -->
|
|
<command id="cmd_close" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_quit" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_actions" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_panel" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_flyout_back" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_addBookmark" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_bookmarks" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_history" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_sanitize" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_contextUI" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<!-- screen/display -->
|
|
<command id="cmd_zoomin" observes="bcast_contentShowing" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_zoomout" observes="bcast_contentShowing" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_lockscreen" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_volumeLeft" observes="bcast_contentShowing" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_volumeRight" observes="bcast_contentShowing" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<!-- scrolling -->
|
|
<command id="cmd_scrollPageUp" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_scrollPageDown" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<!-- editing -->
|
|
<command id="cmd_cut" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_copy" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_copylink" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_paste" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_delete" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
<command id="cmd_selectAll" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<!-- forms navigation -->
|
|
<command id="cmd_formPrevious" oncommand="FormHelperUI.goToPrevious();"/>
|
|
<command id="cmd_formNext" oncommand="FormHelperUI.goToNext();"/>
|
|
<command id="cmd_formClose" oncommand="FormHelperUI.hide();"/>
|
|
|
|
<!-- find navigation -->
|
|
<command id="cmd_findPrevious" oncommand="FindHelperUI.goToPrevious();"/>
|
|
<command id="cmd_findNext" oncommand="FindHelperUI.goToNext();"/>
|
|
<command id="cmd_findClose" oncommand="FindHelperUI.hide();"/>
|
|
<command id="cmd_find" oncommand="FindHelperUI.show();"/>
|
|
</commandset>
|
|
|
|
<keyset id="mainKeyset">
|
|
<!-- basic navigation -->
|
|
<key id="key_back" keycode="VK_LEFT" command="cmd_back" modifiers="alt"/>
|
|
<key id="key_forward" keycode="VK_RIGHT" command="cmd_forward" modifiers="alt"/>
|
|
<key id="key_backspace" keycode="VK_BACK" command="cmd_handleBackspace"/>
|
|
<key id="key_shift_backspace" keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
|
|
<key id="key_reload" keycode="VK_F5" command="cmd_reload"/>
|
|
<key id="key_reload2" key="r" modifiers="accel" command="cmd_reload"/>
|
|
<key id="key_forceReload" keycode="VK_F5" modifiers="shift" command="cmd_forceReload"/>
|
|
<key id="key_forceReload2" key="r" modifiers="accel,shift" command="cmd_forceReload"/>
|
|
<key id="key_focusURL" key="l" modifiers="accel" command="cmd_openLocation"/>
|
|
<key id="key_focusURL2" key="&urlbar.accesskey;" modifiers="alt" command="cmd_openLocation"/>
|
|
<key id="key_home" keycode="VK_HOME" modifiers="accel" command="cmd_home"/>
|
|
<key id="key_open" key="o" modifiers="accel" command="cmd_openFile"/>
|
|
<key id="key_save" key="s" modifiers="accel" command="cmd_savePage"/>
|
|
|
|
<!-- misc -->
|
|
<key id="key_zoomin" key="+" modifiers="accel" command="cmd_zoomin"/>
|
|
<key id="key_zoomout" key="-" modifiers="accel" command="cmd_zoomout"/>
|
|
<key id="key_find" key="f" modifiers="accel" command="cmd_find"/>
|
|
<key id="key_find" key="/" command="cmd_find"/>
|
|
<key id="key_findNext" keycode="VK_F3" command="cmd_findNext"/>
|
|
<key id="key_findNext2" key="g" modifiers="accel" command="cmd_findNext"/>
|
|
<key id="key_findPrevious" keycode="VK_F3" modifiers="shift" command="cmd_findPrevious"/>
|
|
<key id="key_findPrevious2" key="g" modifiers="accel,shift" command="cmd_findPrevious"/>
|
|
<key id="key_quit" key="q" modifiers="accel" command="cmd_quit"/>
|
|
<key id="key_addBoomkark" key="d" modifiers="accel" command="cmd_addBookmark"/>
|
|
<key id="key_console" key="j" modifiers="accel,shift" oncommand="PanelUI.show('console-container')"/>
|
|
<key id="key_options" key="o" modifiers="accel,shift" oncommand="Elements.prefsFlyout.show()"/>
|
|
<key id="key_options" key="s" modifiers="accel,shift" oncommand="Elements.syncFlyout.show()"/>
|
|
<key id="key_options" key="a" modifiers="accel,shift" oncommand="Elements.aboutFlyout.show()"/>
|
|
|
|
<!-- manage tabs -->
|
|
<key id="key_newTab" key="t" modifiers="accel" command="cmd_newTab"/>
|
|
<key id="key_newTab2" key="n" modifiers="accel" command="cmd_newTab"/>
|
|
<key id="key_closeTab" key="w" modifiers="accel" command="cmd_closeTab"/>
|
|
<key id="key_closeTab2" keycode="VK_F4" modifiers="accel" command="cmd_closeTab"/>
|
|
<key id="key_undoCloseTab" key="t" modifiers="accel,shift" command="cmd_undoCloseTab"/>
|
|
|
|
<!-- tab selection -->
|
|
<key id="key_nextTab" oncommand="BrowserUI.selectNextTab();" keycode="VK_TAB" modifiers="accel"/>
|
|
<key id="key_nextTab2" oncommand="BrowserUI.selectNextTab();" keycode="VK_PAGE_DOWN" modifiers="accel"/>
|
|
<key id="key_prevTab" oncommand="BrowserUI.selectPreviousTab();" keycode="VK_TAB" modifiers="accel,shift"/>
|
|
<key id="key_prevTab2" oncommand="BrowserUI.selectPreviousTab();" keycode="VK_PAGE_UP" modifiers="accel"/>
|
|
<key id="key_selectTab1" oncommand="BrowserUI.selectTabAtIndex(0);" key="1" modifiers="accel"/>
|
|
<key id="key_selectTab2" oncommand="BrowserUI.selectTabAtIndex(1);" key="2" modifiers="accel"/>
|
|
<key id="key_selectTab3" oncommand="BrowserUI.selectTabAtIndex(2);" key="3" modifiers="accel"/>
|
|
<key id="key_selectTab4" oncommand="BrowserUI.selectTabAtIndex(3);" key="4" modifiers="accel"/>
|
|
<key id="key_selectTab5" oncommand="BrowserUI.selectTabAtIndex(4);" key="5" modifiers="accel"/>
|
|
<key id="key_selectTab6" oncommand="BrowserUI.selectTabAtIndex(5);" key="6" modifiers="accel"/>
|
|
<key id="key_selectTab7" oncommand="BrowserUI.selectTabAtIndex(6);" key="7" modifiers="accel"/>
|
|
<key id="key_selectTab8" oncommand="BrowserUI.selectTabAtIndex(7);" key="8" modifiers="accel"/>
|
|
<key id="key_selectLastTab" oncommand="BrowserUI.selectTabAtIndex(-1);" key="9" modifiers="accel"/>
|
|
</keyset>
|
|
|
|
<stack id="stack" flex="1">
|
|
<!-- Page Area -->
|
|
<vbox id="page">
|
|
<vbox id="tray" class="tray-toolbar" visible="true" observes="bcast_windowState" >
|
|
<!-- Tabs -->
|
|
<hbox id="tabs-container" observes="bcast_windowState">
|
|
<box id="tabs" flex="1"
|
|
observes="bcast_preciseInput"
|
|
onselect="BrowserUI.selectTabAndDismiss(this);"
|
|
onclosetab="BrowserUI.closeTab(this);"/>
|
|
<vbox id="tabs-controls">
|
|
<toolbarbutton id="newtab-button" command="cmd_newTab" label="&newtab.label;"/>
|
|
</vbox>
|
|
</hbox>
|
|
|
|
<!-- Start UI -->
|
|
<hbox id="start-container" flex="1" observes="bcast_windowState" class="meta content-height content-width">
|
|
<!-- portrait/landscape/filled view -->
|
|
<hbox id="start" class="start-page" flex="1" observes="bcast_windowState">
|
|
<scrollbox id="start-scrollbox" orient="horizontal" flex="1">
|
|
<vbox id="start-topsites" class="meta-section">
|
|
<label class="meta-section-title" value="&startTopSitesHeader.label;"/>
|
|
<richgrid id="start-topsites-grid" rows="3" columns="3" seltype="multiple" flex="1"/>
|
|
</vbox>
|
|
<vbox id="start-bookmarks" class="meta-section">
|
|
<label class="meta-section-title" value="&startBookmarksHeader.label;"
|
|
onclick="PanelUI.show('bookmarks-container');"/>
|
|
<richgrid id="start-bookmarks-grid" seltype="multiple" flex="1"/>
|
|
</vbox>
|
|
<vbox id="start-history" class="meta-section">
|
|
<label class="meta-section-title" value="&startHistoryHeader.label;"
|
|
onclick="PanelUI.show('history-container');"/>
|
|
<richgrid id="start-history-grid" seltype="multiple" flex="1"/>
|
|
</vbox>
|
|
<vbox id="start-remotetabs" class="meta-section">
|
|
<label class="meta-section-title" value="&startRemoteTabsHeader.label;"
|
|
onclick="PanelUI.show('remotetabs-container');"/>
|
|
<richgrid id="start-remotetabs-grid" seltype="multiple" flex="1"/>
|
|
</vbox>
|
|
</scrollbox>
|
|
</hbox>
|
|
<!-- snapped view -->
|
|
<vbox id="snapped-start" class="start-page" observes="bcast_windowState">
|
|
<scrollbox id="snapped-scrollbox" orient="vertical" flex="1">
|
|
<vbox id="snapped-topsites">
|
|
<label class="meta-section-title" value="&startTopSitesHeader.label;"/>
|
|
<richgrid id="snapped-topsites-grid" class="canSnapTiles" rows="8" columns="1" flex="1"/>
|
|
</vbox>
|
|
<label class="meta-section-title" value="&startBookmarksHeader.label;"
|
|
onclick="PanelUI.show('bookmarks-container');"/>
|
|
<label class="meta-section-title" value="&startHistoryHeader.label;"
|
|
onclick="PanelUI.show('history-container');" inputProcessing="true"/>
|
|
<label id="snappedRemoteTabsLabel" class="meta-section-title" value="&snappedRemoteTabsHeader.label;"
|
|
onclick="PanelUI.show('remotetabs-container');" inputProcessing="true"/>
|
|
</scrollbox>
|
|
</vbox>
|
|
<!-- Autocompletion interface -->
|
|
<box id="start-autocomplete" observes="bcast_windowState"/>
|
|
</hbox>
|
|
</vbox> <!-- end tray -->
|
|
|
|
<!-- Content viewport -->
|
|
<stack id="content-viewport">
|
|
<deck id="browsers" flex="1"/>
|
|
<box id="vertical-scroller" class="scroller" orient="vertical" end="0" top="0"/>
|
|
<box id="horizontal-scroller" class="scroller" orient="horizontal" left="0" bottom="0"/>
|
|
</stack>
|
|
</vbox>
|
|
|
|
<!-- popup for content navigator helper -->
|
|
<vbox id="content-navigator">
|
|
<textbox id="find-helper-textbox" class="search-bar content-navigator-item" oncommand="FindHelperUI.search(this.value)" oninput="FindHelperUI.updateCommands(this.value);" type="search"/>
|
|
</vbox>
|
|
|
|
<vbox id="panel-container" hidden="true" class="window-width window-height meta" observes="bcast_windowState">
|
|
<hbox id="panel-header">
|
|
<toolbarbutton id="panel-close-button" command="cmd_panel"/>
|
|
|
|
<menulist id="panel-view-switcher" oncommand="PanelUI.switchPane(this.value);">
|
|
<menupopup>
|
|
<menuitem label="&bookmarksHeader.label;" value="bookmarks-container" id="menuitem-bookmarks"/>
|
|
<menuitem label="&startHistoryHeader.label;" value="history-container" id="menuitem-history"/>
|
|
<menuitem label="&startRemoteTabsHeader.label;" value="remotetabs-container" id="menuitem-remotetabs"/>
|
|
<menuitem label="&downloadsHeader.label;" value="downloads-container" id="menuitem-downloads"/>
|
|
<menuitem label="&consoleHeader.label;" value="console-container" id="menuitem-console"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
|
|
<deck id="panel-items" selectedIndex="0" flex="1" >
|
|
<scrollbox id="bookmarks-container" flex="1">
|
|
<richgrid id="bookmarks-list" class="canSnapTiles" seltype="multiple" flex="1"/>
|
|
</scrollbox>
|
|
<scrollbox id="history-container" flex="1">
|
|
<richgrid id="history-list" class="canSnapTiles" seltype="multiple" flex="1"/>
|
|
</scrollbox>
|
|
<scrollbox id="downloads-container" flex="1">
|
|
<richgrid id="downloads-list" class="canSnapTiles" seltype="single" flex="1"/>
|
|
</scrollbox>
|
|
<scrollbox id="remotetabs-container" flex="1">
|
|
<richgrid id="remotetabs-list" class="canSnapTiles" seltype="single" flex="1"/>
|
|
</scrollbox>
|
|
<vbox id="console-container" flex="1">
|
|
<vbox id="console-header" class="panel-list">
|
|
<label class="panel-header" value="&consoleHeader.label;"/>
|
|
<hbox align="center">
|
|
<label value="&consoleCodeEval.label;" control="console-eval-textbox"/>
|
|
<textbox id="console-eval-textbox" class="toolbar search-bar" value="" onkeypress="ConsolePanelView.onEvalKeyPress(event)" flex="1"/>
|
|
<button id="console-button-eval" class="show-text" label="&consoleEvaluate.label;" oncommand="ConsolePanelView.evaluateTypein()"/>
|
|
</hbox>
|
|
<hbox align="center" pack="end">
|
|
<radiogroup id="console-filter" oncommand="ConsolePanelView.changeMode();">
|
|
<radio id="console-filter-all" label="&consoleAll.label;" value="all" selected="true"/>
|
|
<radio id="console-filter-messages" label="&consoleMessages.label;" value="message"/>
|
|
<radio id="console-filter-warnings" label="&consoleWarnings.label;" value="warning"/>
|
|
<radio id="console-filter-errors" label="&consoleErrors.label;" value="error"/>
|
|
</radiogroup>
|
|
<button id="console-clear" class="show-text" oncommand="ConsolePanelView.clearConsole();" label="&consoleClear.label;"/>
|
|
</hbox>
|
|
</vbox>
|
|
|
|
<richlistbox id="console-box" class="panel-list console-box" flex="1" onkeypress="ConsolePanelView.onConsoleBoxKeyPress(event)" oncontextmenu="ConsolePanelView.onContextMenu(event);"/>
|
|
</vbox>
|
|
</deck>
|
|
</vbox>
|
|
|
|
<!-- Navbar -->
|
|
<appbar id="navbar" mousethrough="never" observes="bcast_windowState">
|
|
<hbox id="progress-container" layer="true">
|
|
<hbox id="progress-control" />
|
|
</hbox>
|
|
|
|
<!-- Main Toolbar -->
|
|
<toolbar id="toolbar" observes="bcast_windowState" flex="1">
|
|
<observes element="bcast_windowState" attribute="*"/>
|
|
<observes element="bcast_urlbarState" attribute="*"/>
|
|
|
|
<toolbarbutton id="back-button" command="cmd_back"/>
|
|
|
|
<hbox id="urlbar-container" flex="1" observes="bcast_urlbarState">
|
|
<toolbarbutton id="forward-button" command="cmd_forward"/>
|
|
<hbox id="urlbar" flex="1">
|
|
<box id="identity-box" role="button">
|
|
<hbox id="identity-box-inner" align="center" mousethrough="always">
|
|
<image id="identity-icon"/>
|
|
</hbox>
|
|
</box>
|
|
|
|
<textbox id="urlbar-edit"
|
|
type="url"
|
|
class="uri-element"
|
|
autocompletesearch="history"
|
|
autocompletepopup="start-autocomplete"
|
|
completeselectedindex="true"
|
|
placeholder="&urlbar.emptytext;"
|
|
flex="1"
|
|
ontextentered="BrowserUI.handleUrlbarEnter(param);"
|
|
onkeydown="BrowserUI.navEditKeyPress();"
|
|
onclick="BrowserUI._urlbarClicked(event);"
|
|
onblur="BrowserUI._urlbarBlurred();"/>
|
|
</hbox>
|
|
</hbox>
|
|
|
|
<toolbarbutton id="tool-reload" oncommand="CommandUpdater.doCommand(event.shiftKey ? 'cmd_forceReload' : 'cmd_reload');"/>
|
|
<toolbarbutton id="tool-stop" command="cmd_stop"/>
|
|
|
|
<!-- developer buttons -->
|
|
<toolbarbutton id="console-button" oncommand="Appbar.onConsoleButton()"/>
|
|
<toolbarbutton id="jsshell-button" oncommand="Appbar.onJSShellButton()"/>
|
|
|
|
<toolbarbutton id="download-button" oncommand="Appbar.onDownloadButton()"/>
|
|
<toolbarbutton id="zoomout-button" oncommand="Appbar.onZoomOutButton()"/>
|
|
<toolbarbutton id="zoomin-button" oncommand="Appbar.onZoomInButton()"/>
|
|
<toolbarbutton id="star-button" type="checkbox" oncommand="Appbar.onStarButton()"/>
|
|
<toolbarbutton id="pin-button" type="checkbox" oncommand="Appbar.onPinButton()"/>
|
|
<toolbarbutton id="more-button" onclick="Appbar.onMoreButton(event)"/>
|
|
</toolbar>
|
|
</appbar>
|
|
|
|
<!-- Context button bar -->
|
|
<appbar id="contextappbar">
|
|
<toolbar id="contextualactions-tray" flex="1">
|
|
<toolbarbutton id="delete-selected-button" hidden="true" fade="true" oncommand="Appbar.dispatchContextualAction('delete')"/>
|
|
<toolbarbutton id="restore-selected-button" hidden="true" fade="true" oncommand="Appbar.dispatchContextualAction('restore')"/>
|
|
<toolbarbutton id="pin-selected-button" hidden="true" fade="true" oncommand="Appbar.dispatchContextualAction('pin')"/>
|
|
<toolbarbutton id="unpin-selected-button" hidden="true" fade="true" oncommand="Appbar.dispatchContextualAction('unpin')"/>
|
|
<toolbarbutton id="clear-selected-button" hidden="true" fade="true" oncommand="Appbar.dispatchContextualAction('clear')"/>
|
|
</toolbar>
|
|
</appbar>
|
|
|
|
<!-- Selection overlay - this should be below any content that can have selectable text -->
|
|
<!-- onclick addresses dom bug 835175, str in bug 832957 -->
|
|
<box onclick="false" class="selection-overlay-hidden" id="selection-overlay"/>
|
|
|
|
<html:div id="overlay-back" class="overlay-button"
|
|
observes="cmd_back" onclick="CommandUpdater.doCommand('cmd_back');"></html:div>
|
|
<html:div id="overlay-plus" class="overlay-button"
|
|
observes="cmd_back" onclick="CommandUpdater.doCommand('cmd_newTab');"></html:div>
|
|
|
|
<flyoutpanel id="about-flyoutpanel" headertext="&aboutHeader.title;">
|
|
<label id="about-product-label" value="&aboutHeader.product.label;"/>
|
|
<label value="&aboutHeader.company.label;"/>
|
|
#expand <label id="about-version-label">__MOZ_APP_VERSION__</label>
|
|
<vbox id="updateBox">
|
|
#ifdef MOZ_UPDATER
|
|
<deck id="updateDeck" orient="vertical">
|
|
<hbox id="updateButtonBox" align="center">
|
|
<button id="updateButton" align="start"
|
|
oncommand="gAppUpdater.buttonOnCommand();"/>
|
|
<spacer flex="1"/>
|
|
</hbox>
|
|
<hbox id="checkingForUpdates" align="center">
|
|
<image class="update-throbber"/><label>&update.checkingForUpdates;</label>
|
|
</hbox>
|
|
<hbox id="checkingAddonCompat" align="center">
|
|
<image class="update-throbber"/><label>&update.checkingAddonCompat;</label>
|
|
</hbox>
|
|
<hbox id="downloading" align="center">
|
|
<image class="update-throbber"/><label>&update.downloading.start;</label><label id="downloadStatus"/><label>&update.downloading.end;</label>
|
|
</hbox>
|
|
<hbox id="applying" align="center">
|
|
<image class="update-throbber"/><label>&update.applying;</label>
|
|
</hbox>
|
|
<hbox id="downloadFailed" align="center">
|
|
<label>&update.failed.start;</label><label id="failedLink" class="text-link">&update.failed.linkText;</label><label>&update.failed.end;</label>
|
|
</hbox>
|
|
<hbox id="adminDisabled" align="center">
|
|
<label>&update.adminDisabled;</label>
|
|
</hbox>
|
|
<hbox id="noUpdatesFound" align="center">
|
|
<label>&update.noUpdatesFound;</label>
|
|
</hbox>
|
|
<hbox id="otherInstanceHandlingUpdates" align="center">
|
|
<label>&update.otherInstanceHandlingUpdates;</label>
|
|
</hbox>
|
|
<hbox id="manualUpdate" align="center">
|
|
<label>&update.manual.start;</label><label id="manualLink" class="text-link"/><label>&update.manual.end;</label>
|
|
</hbox>
|
|
</deck>
|
|
#endif
|
|
</vbox>
|
|
|
|
#if MOZ_UPDATE_CHANNEL != release
|
|
#ifdef MOZ_UPDATER
|
|
<description class="text-blurb" id="currentChannelText">&channel.description.start;<label id="currentChannel"/></description>
|
|
<description class="text-blurb" id="currentChannelText2">&channel.description.end;</description>
|
|
#endif
|
|
#endif
|
|
<label id="about-policy-label"
|
|
onclick="if (event.button == 0) { Browser.onAboutPolicyClick(); }"
|
|
class="text-link" value="&aboutHeader.policy.label;"/>
|
|
</flyoutpanel>
|
|
|
|
<flyoutpanel id="sync-flyoutpanel" headertext="&syncHeader.title;">
|
|
<description id="sync-description">&sync.setup.description;</description>
|
|
<description id="sync-accountinfo" collapsed="true"></description>
|
|
<description id="sync-lastsync" collapsed="true"></description>
|
|
<description id="sync-errordescription" collapsed="true"></description>
|
|
<setting id="sync-connect" type="control" collapsed="true">
|
|
<button label="&sync.setupbutton.label;" oncommand="Sync.tryConnect();" />
|
|
</setting>
|
|
<setting id="sync-connected" class="setting-group" type="control" collapsed="true">
|
|
<button id="sync-pairdevice" label="&sync.pair.button;" oncommand="SyncPairDevice.open();" />
|
|
</setting>
|
|
<setting id="sync-device" class="setting-subgroup" type="string" title="&sync.deviceName;" onchange="Sync.changeName(this);" collapsed="true"/>
|
|
<setting id="sync-disconnect" class="setting-subgroup" type="control" collapsed="true">
|
|
<button label="&sync.removebutton.label;" oncommand="Sync.onDisconnect();" />
|
|
</setting>
|
|
<vbox id="sync-disconnectwarnpanel" collapsed="true">
|
|
<description id="sync-disconnectwarntitle"></description>
|
|
<description id="sync-disconnectwarnmsg">&sync.removewarn.note;</description>
|
|
<hbox>
|
|
<spacer flex="1" />
|
|
<button label="&sync.setup.cancel;" oncommand="Sync.onCancelDisconnect();" />
|
|
<button label="&sync.setup.remove;" oncommand="Sync.disconnect();" />
|
|
</hbox>
|
|
</vbox>
|
|
<vbox id="sync-disconnectthrobber" collapsed="true">
|
|
<hbox>
|
|
<spacer flex="1" />
|
|
<cssthrobber id="syncdisconnectthrobber" />
|
|
<label>&sync.removethrobber.label;</label>
|
|
<spacer flex="1" />
|
|
</hbox>
|
|
</vbox>
|
|
</flyoutpanel>
|
|
|
|
<flyoutpanel id="prefs-flyoutpanel" headertext="&optionsHeader.title;">
|
|
<settings id="prefs-startup" label="&optionsHeader.startup.title;"> <!-- note, this element has a custom margin-top -->
|
|
<setting id="prefs-homepage" title="&optionsHeader.homepage.title;" type="menulist" pref="browser.startup.sessionRestore" class="setting-expanded">
|
|
<menulist id="prefs-homepage-options">
|
|
<menupopup id="prefs-homepage-popup" position="after_end">
|
|
<menuitem id="prefs-homepage-default" label="&optionsHeader.homepage.startPage.button;" value="false"/>
|
|
<menuitem id="prefs-homepage-session" label="&optionsHeader.homepage.sessionRestore.button;" value="true"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</setting>
|
|
</settings>
|
|
<settings id="prefs-charencoding" label="&optionsHeader.char.title;">
|
|
<setting pref="browser.menu.showCharacterEncoding" title="&optionsHeader.char.options.label;" type="bool"/>
|
|
</settings>
|
|
<settings id="prefs-privdata" label="&clearPrivateData.title;">
|
|
<description>&clearPrivateData.label;</description>
|
|
|
|
<checkbox id="prefs-privdata-history" itemName="history" label="&clearPrivateData.history;" checked="true" />
|
|
|
|
<checkbox id="prefs-privdata-other" label="&clearPrivateData.otherdata;"/>
|
|
<hbox id="prefs-privdata-subitems" >
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="downloads" label="&clearPrivateData.downloadHist;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="formdata" label="&clearPrivateData.formSearchHist;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="cookies" label="&clearPrivateData.cookies;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="passwords" label="&clearPrivateData.passwords;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="cache" label="&clearPrivateData.cache;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="offlineApps" label="&clearPrivateData.offline;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="siteSettings" label="&clearPrivateData.sitePref;"/>
|
|
<checkbox class="privdata-subitem-item" checked="true" itemName="sessions" label="&clearPrivateData.logins;"/>
|
|
</hbox>
|
|
|
|
<hbox align="center">
|
|
<button id="prefs-clear-data" label="&clearPrivateData.button;" command="cmd_sanitize" flex="1" />
|
|
<deck id="clear-notification" flex="2" selectedIndex="0" align="center">
|
|
<spacer id="clear-notification-empty"/>
|
|
<hbox id="clear-notification-clearing" align="center">
|
|
<!-- TODO: we need a more metro-y throbber. See bug 852622 -->
|
|
<image src="chrome://browser/skin/images/throbber.png" />
|
|
</hbox>
|
|
<description id="clear-notification-done">&clearPrivateData.done;</description>
|
|
</deck>
|
|
</hbox>
|
|
</settings>
|
|
<setting pref="signon.rememberSignons" title="&optionsHeader.privacy.passwords.label;" type="bool"/>
|
|
<settings id="prefs-reporting" label="&optionsHeader.reporting.title;">
|
|
<setting pref="app.reportCrashes" type="bool" title="&optionsHeader.reporting.crashes.label;" oncommand="BrowserUI.crashReportingPrefChanged(this.value);"/>
|
|
</settings>
|
|
<settings id="prefs-dnt" label="&doNotTrack.title;">
|
|
<description>&doNotTrack.desc;</description>
|
|
<setting id="prefs-dnt-value" pref="privacy.donottrackheader.value" onpreferencechanged="PreferencesPanelView.onDNTPreferenceChanged()" type="radio" >
|
|
<radiogroup id="prefs-dnt-options">
|
|
<radio id="prefs-dnt-notrack" label="&doNotTrack.options.trackingNotOkay;" value="1"/>
|
|
<radio id="prefs-dnt-nopref" label="&doNotTrack.options.noPreference;" value="-1"/>
|
|
<radio id="prefs-dnt-oktrack" label="&doNotTrack.options.trackingOkay;" value="0"/>
|
|
</radiogroup>
|
|
</setting>
|
|
</settings>
|
|
</flyoutpanel>
|
|
|
|
#ifdef MOZ_SERVICES_SYNC
|
|
<box id="syncsetup-container" class="perm-modal-block" hidden="true">
|
|
<dialog id="syncsetup-dialog" class="content-dialog" flex="1">
|
|
<vbox class="prompt-inner">
|
|
<hbox class="prompt-title">
|
|
<description>&sync.setup2.title;</description>
|
|
</hbox>
|
|
<vbox id="syncsetup-simple" class="syncsetup-page" flex="1">
|
|
<scrollbox id="sync-message" class="prompt-message" orient="vertical" flex="1">
|
|
<description class="syncsetup-desc" flex="1">&sync.setup.pair2;</description>
|
|
<description class="link" flex="1" onclick="Sync.openTutorial();">&sync.setup.tutorial;</description>
|
|
<separator/>
|
|
<vbox flex="1" pack="center" align="start">
|
|
<description id="syncsetup-code1" class="syncsetup-code">....</description>
|
|
<description id="syncsetup-code2" class="syncsetup-code">....</description>
|
|
<description id="syncsetup-code3" class="syncsetup-code">....</description>
|
|
</vbox>
|
|
<separator/>
|
|
<description class="link" flex="1" onclick="Sync.openManual();">&sync.fallback;</description>
|
|
<separator flex="1"/>
|
|
</scrollbox>
|
|
<hbox class="prompt-buttons">
|
|
<button oncommand="Sync.close();">&sync.setup.cancel;</button>
|
|
</hbox>
|
|
</vbox>
|
|
<vbox id="syncsetup-waiting" class="syncsetup-page" flex="1" hidden="true">
|
|
<progressmeter id="syncsetup-progressbar" mode="undetermined"/>
|
|
<vbox id="syncsetup-waiting-top" align="center" flex="1">
|
|
<description id="syncsetup-waiting-desc" class="syncsetup-desc" flex="1">&sync.setup.waiting2;</description>
|
|
<description id="syncsetup-waitingdownload-desc" class="syncsetup-desc" hidden="true" flex="1">&sync.setup.waitingdownload;</description>
|
|
</vbox>
|
|
<hbox class="prompt-buttons" pack="center" align="end">
|
|
<button id="syncsetup-waiting-cancel" oncommand="Sync.close();">&sync.setup.cancel;</button>
|
|
<button id="syncsetup-waiting-close" hidden="true" oncommand="Sync.close();">&sync.setup.close;</button>
|
|
</hbox>
|
|
</vbox>
|
|
<vbox id="syncsetup-fallback" class="syncsetup-page" flex="1" hidden="true">
|
|
<scrollbox class="prompt-message" orient="vertical" flex="1">
|
|
<description class="syncsetup-desc" flex="1">&sync.setup.manual;</description>
|
|
<separator/>
|
|
<textbox id="syncsetup-account" class="prompt-edit" placeholder="&sync.account;" oninput="Sync.canConnect();"/>
|
|
<textbox id="syncsetup-password" class="prompt-edit" placeholder="&sync.password;" type="password" oninput="Sync.canConnect();"/>
|
|
<textbox id="syncsetup-synckey" class="prompt-edit" placeholder="&sync.recoveryKey;" oninput="Sync.canConnect();"/>
|
|
<separator class="thin"/>
|
|
<checkbox id="syncsetup-usecustomserver" label="&sync.customServer;" oncommand="Sync.toggleCustomServer();"/>
|
|
<textbox id="syncsetup-customserver" class="prompt-edit" placeholder="&sync.serverURL;"/>
|
|
<separator flex="1"/>
|
|
</scrollbox>
|
|
<hbox class="prompt-buttons">
|
|
<button oncommand="Sync.close();">&sync.setup.cancel;</button>
|
|
<separator/>
|
|
<button id="syncsetup-button-connect" oncommand="Sync.close(); Sync.connect();">&sync.setup.connect2;</button>
|
|
</hbox>
|
|
</vbox>
|
|
</vbox>
|
|
</dialog>
|
|
</box>
|
|
|
|
<box id="syncpair-container" class="perm-modal-block" hidden="true">
|
|
<dialog id="syncpair-dialog" class="content-dialog" flex="1">
|
|
<vbox class="prompt-inner">
|
|
<hbox class="prompt-title">
|
|
<description>&sync.pair.title;</description>
|
|
</hbox>
|
|
<vbox id="syncpair-simple" class="syncsetup-page" flex="1">
|
|
<vbox id="sync-message" class="prompt-message" orient="vertical" flex="1">
|
|
<description class="syncsetup-desc" flex="1">&sync.pair.description;</description>
|
|
<description class="link" flex="1" onclick="SyncPairDevice.close(); Sync.openTutorial();">&sync.setup.tutorial;</description>
|
|
<separator/>
|
|
<vbox align="center" flex="1">
|
|
<textbox id="syncpair-code1" class="syncsetup-code" oninput="SyncPairDevice.onTextBoxInput(this);"/>
|
|
<textbox id="syncpair-code2" class="syncsetup-code" oninput="SyncPairDevice.onTextBoxInput(this);"/>
|
|
<textbox id="syncpair-code3" class="syncsetup-code" oninput="SyncPairDevice.onTextBoxInput(this);"/>
|
|
</vbox>
|
|
</vbox>
|
|
<hbox class="prompt-buttons" pack="center">
|
|
<button oncommand="SyncPairDevice.close();">&sync.setup.cancel;</button>
|
|
<button id="syncpair-connectbutton" disabled="true" oncommand="SyncPairDevice.connect();">&sync.setup.connect2;</button>
|
|
</hbox>
|
|
</vbox>
|
|
</vbox>
|
|
</dialog>
|
|
</box>
|
|
#endif
|
|
|
|
<box onclick="event.stopPropagation();" id="context-container" class="menu-container" hidden="true">
|
|
<!-- onclick is dom bug 835175 -->
|
|
<vbox id="context-popup" class="menu-popup">
|
|
<richlistbox id="context-commands" bindingType="contextmenu" flex="1">
|
|
<!-- priority="low" items are hidden by default when a context is being displayed
|
|
for two or more media types. (e.g. a linked image) -->
|
|
<!-- content types preceeded by '!' act as exclusion rules, the menu item will not
|
|
be displayed if the content type is present. -->
|
|
<!-- Note the order of richlistitem here is important as it is reflected in the
|
|
menu itself. -->
|
|
<!-- ux spec: https://bug782810.bugzilla.mozilla.org/attachment.cgi?id=714804 -->
|
|
|
|
<!-- Text related -->
|
|
<!-- for text inputs, this will cut selected text -->
|
|
<richlistitem id="context-cut" type="cut" onclick="ContextCommands.cut();">
|
|
<label value="&contextTextCut.label;"/>
|
|
</richlistitem>
|
|
<!-- for text inputs, this will copy selected text -->
|
|
<richlistitem id="context-copy" type="copy" onclick="ContextCommands.copy();">
|
|
<label value="&contextTextCopy.label;"/>
|
|
</richlistitem>
|
|
<!-- Search Bing for "(text..)", displayed on selected content text only -->
|
|
<richlistitem id="context-search" type="selected-text,!input-text" onclick="ContextCommands.searchText(this);">
|
|
<label id="context-search-label" value=""/>
|
|
</richlistitem>
|
|
<!-- only displayed in inputs with text that do not have selection -->
|
|
<richlistitem id="context-select" type="selectable" onclick="ContextCommands.select();">
|
|
<label value="&contextTextSelect.label;"/>
|
|
</richlistitem>
|
|
<!-- only displayed in inputs with text that do not have selection -->
|
|
<richlistitem id="context-select-all" type="selectable" onclick="ContextCommands.selectAll();">
|
|
<label value="&contextTextSelectAll.label;"/>
|
|
</richlistitem>
|
|
<!-- only displayed if there is text on the clipboard -->
|
|
<richlistitem id="context-paste" type="paste" onclick="ContextCommands.paste();">
|
|
<label value="&contextTextPaste.label;"/>
|
|
</richlistitem>
|
|
<!-- only display if there is text on the clipboard and the target is the urlbar -->
|
|
<richlistitem id="context-paste-n-go" type="paste-url" onclick="ContextCommands.pasteAndGo();">
|
|
<label value="&contextTextPasteAndGo.label;"/>
|
|
</richlistitem>
|
|
|
|
<!-- Image related -->
|
|
<!-- save image to user pictures library -->
|
|
<richlistitem id="context-save-image-lib" type="image" onclick="ContextCommands.saveImageToLib();">
|
|
<label value="&contextSaveImageLib.label;"/>
|
|
</richlistitem>
|
|
<!-- copy image data to clipboard -->
|
|
<richlistitem id="context-copy-image" type="image" onclick="ContextCommands.copyImage();">
|
|
<label value="&contextCopyImage.label;"/>
|
|
</richlistitem>
|
|
<!-- copy the uri of the image src -->
|
|
<richlistitem id="context-copy-image-loc" type="image" onclick="ContextCommands.copyImageSrc();">
|
|
<label value="&contextCopyImageLocation.label;"/>
|
|
</richlistitem>
|
|
<!-- open the uri of the image src in a new tab -->
|
|
<richlistitem id="context-open-image-tab" type="image" priority="low" onclick="ContextCommands.openImageInNewTab();">
|
|
<label value="&contextOpenImageTab.label;"/>
|
|
</richlistitem>
|
|
|
|
<!-- Video related -->
|
|
<!-- save video to user videos library -->
|
|
<richlistitem id="context-save-video-lib" type="video" onclick="ContextCommands.saveVideoToLib();">
|
|
<label value="&contextSaveVideoLib.label;"/>
|
|
</richlistitem>
|
|
<!-- copy the uri of the video src -->
|
|
<richlistitem id="context-copy-video-loc" type="video" onclick="ContextCommands.copyVideoSrc();">
|
|
<label value="&contextCopyVideoLocation.label;"/>
|
|
</richlistitem>
|
|
<!-- open the uri of the video src in a new tab -->
|
|
<richlistitem id="context-open-video-tab" type="video" priority="low" onclick="ContextCommands.openVideoInNewTab();">
|
|
<label value="&contextOpenVideoTab.label;"/>
|
|
</richlistitem>
|
|
|
|
<!-- Link related -->
|
|
<!-- all of these apply to underlying link href values -->
|
|
<richlistitem id="context-open-in-new-tab" type="link" onclick="ContextCommands.openLinkInNewTab();">
|
|
<label value="&contextOpenLinkTab.label;"/>
|
|
</richlistitem>
|
|
<richlistitem id="context-copy-link" type="link" onclick="ContextCommands.copyLink();">
|
|
<label value="&contextCopyLinkHref.label;"/>
|
|
</richlistitem>
|
|
<richlistitem id="context-bookmark-link" type="link" priority="low" onclick="ContextCommands.bookmarkLink();">
|
|
<label value="&contextBookmarkLinkHref.label;"/>
|
|
</richlistitem>
|
|
|
|
<!-- App bar: 'more' button context menu -->
|
|
<richlistitem id="context-findinpage" type="find-in-page" onclick="ContextCommands.findInPage();">
|
|
<label value="&appbarFindInPage2.label;"/>
|
|
</richlistitem>
|
|
<richlistitem id="context-viewondesktop" type="view-on-desktop" onclick="ContextCommands.viewOnDesktop();">
|
|
<label value="&appbarViewOnDesktop2.label;"/>
|
|
</richlistitem>
|
|
</richlistbox>
|
|
</vbox>
|
|
</box>
|
|
|
|
<vbox id="select-container" class="menu-container" hidden="true">
|
|
<vbox id="select-popup" class="select-popup">
|
|
<richlistbox id="select-commands" flex="1"/>
|
|
</vbox>
|
|
</vbox>
|
|
|
|
<box id="menucontrol-container" class="menu-container" hidden="true">
|
|
<vbox id="menucontrol-popup" class="menu-popup">
|
|
<richlistbox id="menupopup-commands" onclick="if (event.target != this) MenuControlUI.selectByIndex(this.selectedIndex);" flex="1"/>
|
|
</vbox>
|
|
</box>
|
|
|
|
<box id="autofill-container" class="menu-container" hidden="true">
|
|
<vbox id="autofill-popup" class="menu-popup">
|
|
<richlistbox id="menupopup-commands" onclick="if (event.target != this) AutofillMenuUI.selectByIndex(this.selectedIndex);" flex="1"/>
|
|
</vbox>
|
|
</box>
|
|
|
|
<!-- alerts for content -->
|
|
<hbox id="alerts-container" hidden="true" align="start" bottom="0" onclick="AlertsHelper.click(event);">
|
|
<image id="alerts-image"/>
|
|
<vbox flex="1">
|
|
<label id="alerts-title" value=""/>
|
|
<description id="alerts-text" flex="1"/>
|
|
</vbox>
|
|
</hbox>
|
|
</stack>
|
|
|
|
</window>
|