Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0" encoding="utf-8"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | <!DOCTYPE window [ |
michael@0 | 6 | <!ENTITY % webConsoleDTD SYSTEM "chrome://browser/locale/devtools/webConsole.dtd"> |
michael@0 | 7 | %webConsoleDTD; |
michael@0 | 8 | ]> |
michael@0 | 9 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 10 | <?xml-stylesheet href="chrome://browser/skin/devtools/common.css" |
michael@0 | 11 | type="text/css"?> |
michael@0 | 12 | <?xml-stylesheet href="chrome://browser/skin/devtools/webconsole.css" |
michael@0 | 13 | type="text/css"?> |
michael@0 | 14 | <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> |
michael@0 | 15 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 16 | id="devtools-webconsole" |
michael@0 | 17 | macanimationtype="document" |
michael@0 | 18 | fullscreenbutton="true" |
michael@0 | 19 | title="&window.title;" |
michael@0 | 20 | browserConsoleTitle="&browserConsole.title;" |
michael@0 | 21 | windowtype="devtools:webconsole" |
michael@0 | 22 | width="900" height="350" |
michael@0 | 23 | persist="screenX screenY width height sizemode"> |
michael@0 | 24 | |
michael@0 | 25 | <script type="application/javascript;version=1.8" |
michael@0 | 26 | src="chrome://browser/content/devtools/theme-switching.js"/> |
michael@0 | 27 | <script type="text/javascript" src="chrome://global/content/globalOverlay.js"/> |
michael@0 | 28 | <script type="text/javascript"><![CDATA[ |
michael@0 | 29 | function goUpdateConsoleCommands() { |
michael@0 | 30 | goUpdateCommand("consoleCmd_openURL"); |
michael@0 | 31 | goUpdateCommand("consoleCmd_copyURL"); |
michael@0 | 32 | } |
michael@0 | 33 | // ]]></script> |
michael@0 | 34 | |
michael@0 | 35 | <commandset id="editMenuCommands"/> |
michael@0 | 36 | |
michael@0 | 37 | <commandset id="consoleCommands" |
michael@0 | 38 | commandupdater="true" |
michael@0 | 39 | events="focus,select" |
michael@0 | 40 | oncommandupdate="goUpdateConsoleCommands();"> |
michael@0 | 41 | <command id="consoleCmd_openURL" |
michael@0 | 42 | oncommand="goDoCommand('consoleCmd_openURL');"/> |
michael@0 | 43 | <command id="consoleCmd_copyURL" |
michael@0 | 44 | oncommand="goDoCommand('consoleCmd_copyURL');"/> |
michael@0 | 45 | <command id="consoleCmd_clearOutput" |
michael@0 | 46 | oncommand="goDoCommand('consoleCmd_clearOutput');"/> |
michael@0 | 47 | <command id="cmd_find" oncommand="goDoCommand('cmd_find');"/> |
michael@0 | 48 | <command id="cmd_fullZoomEnlarge" oncommand="goDoCommand('cmd_fontSizeEnlarge');" disabled="true"/> |
michael@0 | 49 | <command id="cmd_fullZoomReduce" oncommand="goDoCommand('cmd_fontSizeReduce');" disabled="true"/> |
michael@0 | 50 | <command id="cmd_fullZoomReset" oncommand="goDoCommand('cmd_fontSizeReset');" disabled="true"/> |
michael@0 | 51 | <command id="cmd_close" oncommand="goDoCommand('cmd_close');" disabled="true"/> |
michael@0 | 52 | </commandset> |
michael@0 | 53 | <keyset id="consoleKeys"> |
michael@0 | 54 | <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/> |
michael@0 | 55 | <key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/> |
michael@0 | 56 | <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/> |
michael@0 | 57 | <key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/> |
michael@0 | 58 | <key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/> |
michael@0 | 59 | <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/> |
michael@0 | 60 | <key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/> |
michael@0 | 61 | <key key="&findCmd.key;" command="cmd_find" modifiers="accel"/> |
michael@0 | 62 | <key key="&closeCmd.key;" command="cmd_close" modifiers="accel"/> |
michael@0 | 63 | <key key="&clearOutputCtrl.key;" command="consoleCmd_clearOutput" modifiers="control"/> |
michael@0 | 64 | </keyset> |
michael@0 | 65 | <keyset id="editMenuKeys"/> |
michael@0 | 66 | |
michael@0 | 67 | <popupset id="mainPopupSet"> |
michael@0 | 68 | <menupopup id="output-contextmenu" onpopupshowing="goUpdateGlobalEditMenuItems()"> |
michael@0 | 69 | <menuitem id="saveBodiesContextMenu" type="checkbox" label="&saveBodies.label;" |
michael@0 | 70 | accesskey="&saveBodies.accesskey;"/> |
michael@0 | 71 | <menuitem id="menu_openURL" label="&openURL.label;" |
michael@0 | 72 | accesskey="&openURL.accesskey;" command="consoleCmd_openURL" |
michael@0 | 73 | selection="network" selectionType="single"/> |
michael@0 | 74 | <menuitem id="menu_copyURL" label="©URLCmd.label;" |
michael@0 | 75 | accesskey="©URLCmd.accesskey;" command="consoleCmd_copyURL" |
michael@0 | 76 | selection="network" selectionType="single"/> |
michael@0 | 77 | <menuitem id="cMenu_copy"/> |
michael@0 | 78 | <menuitem id="cMenu_selectAll"/> |
michael@0 | 79 | </menupopup> |
michael@0 | 80 | </popupset> |
michael@0 | 81 | |
michael@0 | 82 | <tooltip id="aHTMLTooltip" page="true"/> |
michael@0 | 83 | |
michael@0 | 84 | <box class="hud-outer-wrapper devtools-responsive-container theme-body" flex="1"> |
michael@0 | 85 | <vbox class="hud-console-wrapper" flex="1"> |
michael@0 | 86 | <toolbar class="hud-console-filter-toolbar devtools-toolbar" mode="full"> |
michael@0 | 87 | <toolbarbutton label="&btnPageNet.label;" type="menu-button" |
michael@0 | 88 | category="net" class="devtools-toolbarbutton webconsole-filter-button" |
michael@0 | 89 | tooltiptext="&btnPageNet.tooltip;" |
michael@0 | 90 | accesskeyMacOSX="&btnPageNet.accesskeyMacOSX;" |
michael@0 | 91 | accesskey="&btnPageNet.accesskey;" |
michael@0 | 92 | tabindex="3"> |
michael@0 | 93 | <menupopup> |
michael@0 | 94 | <menuitem label="&btnConsoleErrors;" type="checkbox" autocheck="false" |
michael@0 | 95 | prefKey="network"/> |
michael@0 | 96 | <menuitem label="&btnConsoleWarnings;" type="checkbox" autocheck="false" |
michael@0 | 97 | prefKey="netwarn"/> |
michael@0 | 98 | <menuitem label="&btnConsoleLog;" type="checkbox" autocheck="false" |
michael@0 | 99 | prefKey="networkinfo"/> |
michael@0 | 100 | <menuseparator id="saveBodiesSeparator" /> |
michael@0 | 101 | <menuitem id="saveBodies" type="checkbox" label="&saveBodies.label;" |
michael@0 | 102 | accesskey="&saveBodies.accesskey;"/> |
michael@0 | 103 | </menupopup> |
michael@0 | 104 | </toolbarbutton> |
michael@0 | 105 | <toolbarbutton label="&btnPageCSS.label;" type="menu-button" |
michael@0 | 106 | category="css" class="devtools-toolbarbutton webconsole-filter-button" |
michael@0 | 107 | tooltiptext="&btnPageCSS.tooltip;" |
michael@0 | 108 | accesskey="&btnPageCSS.accesskey;" |
michael@0 | 109 | tabindex="4"> |
michael@0 | 110 | <menupopup> |
michael@0 | 111 | <menuitem label="&btnConsoleErrors;" type="checkbox" autocheck="false" |
michael@0 | 112 | prefKey="csserror"/> |
michael@0 | 113 | <menuitem label="&btnConsoleWarnings;" type="checkbox" |
michael@0 | 114 | autocheck="false" prefKey="cssparser"/> |
michael@0 | 115 | <menuitem label="&btnConsoleReflows;" type="checkbox" |
michael@0 | 116 | autocheck="false" prefKey="csslog"/> |
michael@0 | 117 | </menupopup> |
michael@0 | 118 | </toolbarbutton> |
michael@0 | 119 | <toolbarbutton label="&btnPageJS.label;" type="menu-button" |
michael@0 | 120 | category="js" class="devtools-toolbarbutton webconsole-filter-button" |
michael@0 | 121 | tooltiptext="&btnPageJS.tooltip;" |
michael@0 | 122 | accesskey="&btnPageJS.accesskey;" |
michael@0 | 123 | tabindex="5"> |
michael@0 | 124 | <menupopup> |
michael@0 | 125 | <menuitem label="&btnConsoleErrors;" type="checkbox" |
michael@0 | 126 | autocheck="false" prefKey="exception"/> |
michael@0 | 127 | <menuitem label="&btnConsoleWarnings;" type="checkbox" |
michael@0 | 128 | autocheck="false" prefKey="jswarn"/> |
michael@0 | 129 | <menuitem label="&btnConsoleLog;" type="checkbox" |
michael@0 | 130 | autocheck="false" prefKey="jslog"/> |
michael@0 | 131 | </menupopup> |
michael@0 | 132 | </toolbarbutton> |
michael@0 | 133 | <toolbarbutton label="&btnPageSecurity.label;" type="menu-button" |
michael@0 | 134 | category="security" class="devtools-toolbarbutton webconsole-filter-button" |
michael@0 | 135 | tooltiptext="&btnPageSecurity.tooltip;" |
michael@0 | 136 | accesskey="&btnPageSecurity.accesskey;" |
michael@0 | 137 | tabindex="6"> |
michael@0 | 138 | <menupopup> |
michael@0 | 139 | <menuitem label="&btnConsoleErrors;" type="checkbox" |
michael@0 | 140 | autocheck="false" prefKey="secerror"/> |
michael@0 | 141 | <menuitem label="&btnConsoleWarnings;" type="checkbox" |
michael@0 | 142 | autocheck="false" prefKey="secwarn"/> |
michael@0 | 143 | </menupopup> |
michael@0 | 144 | </toolbarbutton> |
michael@0 | 145 | <toolbarbutton label="&btnPageLogging.label;" type="menu-button" |
michael@0 | 146 | category="logging" class="devtools-toolbarbutton webconsole-filter-button" |
michael@0 | 147 | tooltiptext="&btnPageLogging.tooltip;" |
michael@0 | 148 | accesskey="&btnPageLogging.accesskey3;" |
michael@0 | 149 | tabindex="7"> |
michael@0 | 150 | <menupopup> |
michael@0 | 151 | <menuitem label="&btnConsoleErrors;" type="checkbox" |
michael@0 | 152 | autocheck="false" prefKey="error"/> |
michael@0 | 153 | <menuitem label="&btnConsoleWarnings;" type="checkbox" |
michael@0 | 154 | autocheck="false" prefKey="warn"/> |
michael@0 | 155 | <menuitem label="&btnConsoleInfo;" type="checkbox" autocheck="false" |
michael@0 | 156 | prefKey="info"/> |
michael@0 | 157 | <menuitem label="&btnConsoleLog;" type="checkbox" autocheck="false" |
michael@0 | 158 | prefKey="log"/> |
michael@0 | 159 | </menupopup> |
michael@0 | 160 | </toolbarbutton> |
michael@0 | 161 | |
michael@0 | 162 | <toolbarbutton class="webconsole-clear-console-button devtools-toolbarbutton" |
michael@0 | 163 | label="&btnClear.label;" tooltiptext="&btnClear.tooltip;" |
michael@0 | 164 | accesskey="&btnClear.accesskey;" |
michael@0 | 165 | tabindex="8"/> |
michael@0 | 166 | |
michael@0 | 167 | <spacer flex="1"/> |
michael@0 | 168 | |
michael@0 | 169 | <textbox class="compact hud-filter-box devtools-searchinput" type="search" |
michael@0 | 170 | placeholder="&filterOutput.placeholder;" tabindex="2"/> |
michael@0 | 171 | </toolbar> |
michael@0 | 172 | |
michael@0 | 173 | <hbox id="output-wrapper" flex="1" context="output-contextmenu" tooltip="aHTMLTooltip"> |
michael@0 | 174 | <div xmlns="http://www.w3.org/1999/xhtml" id="output-container" tabindex="1" /> |
michael@0 | 175 | </hbox> |
michael@0 | 176 | |
michael@0 | 177 | <hbox class="jsterm-input-container" style="direction:ltr"> |
michael@0 | 178 | <stack class="jsterm-stack-node" flex="1"> |
michael@0 | 179 | <textbox class="jsterm-complete-node devtools-monospace" |
michael@0 | 180 | multiline="true" rows="1" tabindex="-1"/> |
michael@0 | 181 | <textbox class="jsterm-input-node devtools-monospace" |
michael@0 | 182 | multiline="true" rows="1" tabindex="0"/> |
michael@0 | 183 | </stack> |
michael@0 | 184 | </hbox> |
michael@0 | 185 | </vbox> |
michael@0 | 186 | |
michael@0 | 187 | <splitter class="devtools-side-splitter"/> |
michael@0 | 188 | |
michael@0 | 189 | <tabbox id="webconsole-sidebar" class="devtools-sidebar-tabs" hidden="true" width="300"> |
michael@0 | 190 | <tabs/> |
michael@0 | 191 | <tabpanels flex="1"/> |
michael@0 | 192 | </tabbox> |
michael@0 | 193 | </box> |
michael@0 | 194 | </window> |