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