summaryrefslogtreecommitdiff
path: root/browser/devtools/webconsole/webconsole.xul
blob: 2d5d85f6baa00dedcd36de414d50711009556138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?xml version="1.0" encoding="utf-8"?>
<!-- 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/. -->
<!DOCTYPE window [
<!ENTITY % webConsoleDTD SYSTEM "chrome://browser/locale/devtools/webConsole.dtd">
%webConsoleDTD;
]>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/devtools/common.css"
                 type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/devtools/widgets.css"
                 type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/devtools/webconsole.css"
                 type="text/css"?>
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="devtools-webconsole"
        macanimationtype="document"
        fullscreenbutton="true"
        title="&window.title;"
        browserConsoleTitle="&browserConsole.title;"
        windowtype="devtools:webconsole"
        width="900" height="350"
        persist="screenX screenY width height sizemode">

  <script type="application/javascript;version=1.8"
          src="chrome://browser/content/devtools/theme-switching.js"/>
  <script type="text/javascript" src="chrome://global/content/globalOverlay.js"/>
  <script type="text/javascript"><![CDATA[
function goUpdateConsoleCommands() {
  goUpdateCommand("consoleCmd_openURL");
  goUpdateCommand("consoleCmd_copyURL");
}
  // ]]></script>

  <commandset id="editMenuCommands"/>

  <commandset id="consoleCommands"
              commandupdater="true"
              events="focus,select"
              oncommandupdate="goUpdateConsoleCommands();">
    <command id="consoleCmd_openURL"
             oncommand="goDoCommand('consoleCmd_openURL');"/>
    <command id="consoleCmd_copyURL"
             oncommand="goDoCommand('consoleCmd_copyURL');"/>
    <command id="consoleCmd_clearOutput"
             oncommand="goDoCommand('consoleCmd_clearOutput');"/>
    <command id="cmd_find" oncommand="goDoCommand('cmd_find');"/>
    <command id="cmd_fullZoomEnlarge" oncommand="goDoCommand('cmd_fontSizeEnlarge');" disabled="true"/>
    <command id="cmd_fullZoomReduce" oncommand="goDoCommand('cmd_fontSizeReduce');" disabled="true"/>
    <command id="cmd_fullZoomReset" oncommand="goDoCommand('cmd_fontSizeReset');" disabled="true"/>
    <command id="cmd_close" oncommand="goDoCommand('cmd_close');" disabled="true"/>
  </commandset>
  <keyset id="consoleKeys">
    <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/>
    <key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/>
    <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
    <key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
    <key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
    <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/>
    <key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/>
    <key key="&findCmd.key;" command="cmd_find" modifiers="accel"/>
    <key key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
    <key key="&clearOutputCtrl.key;" command="consoleCmd_clearOutput" modifiers="control"/>
  </keyset>
  <keyset id="editMenuKeys"/>

  <popupset id="mainPopupSet">
    <menupopup id="output-contextmenu" onpopupshowing="goUpdateGlobalEditMenuItems()">
      <menuitem id="saveBodiesContextMenu" type="checkbox" label="&saveBodies.label;"
                accesskey="&saveBodies.accesskey;"/>
      <menuitem id="menu_openURL" label="&openURL.label;"
                accesskey="&openURL.accesskey;" command="consoleCmd_openURL"
                selection="network" selectionType="single"/>
      <menuitem id="menu_copyURL" label="&copyURLCmd.label;"
                accesskey="&copyURLCmd.accesskey;" command="consoleCmd_copyURL"
                selection="network" selectionType="single"/>
      <menuitem id="cMenu_copy"/>
      <menuitem id="cMenu_selectAll"/>
    </menupopup>
  </popupset>

  <tooltip id="aHTMLTooltip" page="true"/>

  <box class="hud-outer-wrapper devtools-responsive-container theme-body" flex="1">
    <vbox class="hud-console-wrapper devtools-main-content" flex="1">
      <toolbar class="hud-console-filter-toolbar devtools-toolbar" mode="full">
        <hbox class="devtools-toolbarbutton-group">
          <toolbarbutton label="&btnPageNet.label;" type="menu-button"
                         category="net" class="devtools-toolbarbutton webconsole-filter-button"
                         tooltiptext="&btnPageNet.tooltip;"
                         accesskeyMacOSX="&btnPageNet.accesskeyMacOSX;"
                         accesskey="&btnPageNet.accesskey;"
                         tabindex="3">
            <menupopup id="net-contextmenu">
              <menuitem label="&btnConsoleErrors;" type="checkbox" autocheck="false"
                        prefKey="network"/>
              <menuitem label="&btnConsoleWarnings;" type="checkbox" autocheck="false"
                        prefKey="netwarn"/>
              <menuitem label="&btnConsoleXhr;" type="checkbox" autocheck="false"
                        prefKey="netxhr"/>
              <menuitem label="&btnConsoleLog;" type="checkbox" autocheck="false"
                        prefKey="networkinfo"/>
              <menuseparator id="saveBodiesSeparator" />
              <menuitem id="saveBodies" type="checkbox" label="&saveBodies.label;"
                        accesskey="&saveBodies.accesskey;"/>
            </menupopup>
          </toolbarbutton>
          <toolbarbutton label="&btnPageCSS.label;" type="menu-button"
                         category="css" class="devtools-toolbarbutton webconsole-filter-button"
                         tooltiptext="&btnPageCSS.tooltip2;"
                         accesskey="&btnPageCSS.accesskey;"
                         tabindex="4">
            <menupopup id="css-contextmenu">
              <menuitem label="&btnConsoleErrors;" type="checkbox" autocheck="false"
                        prefKey="csserror"/>
              <menuitem label="&btnConsoleWarnings;" type="checkbox"
                        autocheck="false" prefKey="cssparser"/>
              <menuitem label="&btnConsoleReflows;" type="checkbox"
                        autocheck="false" prefKey="csslog"/>
            </menupopup>
          </toolbarbutton>
          <toolbarbutton label="&btnPageJS.label;" type="menu-button"
                         category="js" class="devtools-toolbarbutton webconsole-filter-button"
                         tooltiptext="&btnPageJS.tooltip;"
                         accesskey="&btnPageJS.accesskey;"
                         tabindex="5">
            <menupopup id="js-contextmenu">
              <menuitem label="&btnConsoleErrors;" type="checkbox"
                        autocheck="false" prefKey="exception"/>
              <menuitem label="&btnConsoleWarnings;" type="checkbox"
                        autocheck="false" prefKey="jswarn"/>
              <menuitem label="&btnConsoleLog;" type="checkbox"
                        autocheck="false" prefKey="jslog"/>
            </menupopup>
          </toolbarbutton>
          <toolbarbutton label="&btnPageSecurity.label;" type="menu-button"
                         category="security" class="devtools-toolbarbutton webconsole-filter-button"
                         tooltiptext="&btnPageSecurity.tooltip;"
                         accesskey="&btnPageSecurity.accesskey;"
                         tabindex="6">
            <menupopup id="security-contextmenu">
              <menuitem label="&btnConsoleErrors;" type="checkbox"
                        autocheck="false" prefKey="secerror"/>
              <menuitem label="&btnConsoleWarnings;" type="checkbox"
                        autocheck="false" prefKey="secwarn"/>
            </menupopup>
          </toolbarbutton>
          <toolbarbutton label="&btnPageLogging.label;" type="menu-button"
                         category="logging" class="devtools-toolbarbutton webconsole-filter-button"
                         tooltiptext="&btnPageLogging.tooltip;"
                         accesskey="&btnPageLogging.accesskey3;"
                         tabindex="7">
            <menupopup id="logging-contextmenu">
              <menuitem label="&btnConsoleErrors;" type="checkbox"
                        autocheck="false" prefKey="error"/>
              <menuitem label="&btnConsoleWarnings;" type="checkbox"
                        autocheck="false" prefKey="warn"/>
              <menuitem label="&btnConsoleInfo;" type="checkbox" autocheck="false"
                        prefKey="info"/>
              <menuitem label="&btnConsoleLog;" type="checkbox" autocheck="false"
                        prefKey="log"/>
            </menupopup>
          </toolbarbutton>
        </hbox>
        <toolbarbutton class="webconsole-clear-console-button devtools-toolbarbutton"
                       label="&btnClear.label;" tooltiptext="&btnClear.tooltip;"
                       accesskey="&btnClear.accesskey;"
                       tabindex="8"/>

        <spacer flex="1"/>

        <textbox class="compact hud-filter-box devtools-searchinput" type="search"
                 placeholder="&filterOutput.placeholder;" tabindex="2"/>
      </toolbar>

      <hbox id="output-wrapper" flex="1" context="output-contextmenu" tooltip="aHTMLTooltip">
        <div xmlns="http://www.w3.org/1999/xhtml" id="output-container"
             tabindex="0" role="document" aria-live="polite" />
      </hbox>
      <notificationbox id="webconsole-notificationbox">
        <hbox class="jsterm-input-container" style="direction:ltr">
          <stack class="jsterm-stack-node" flex="1">
            <textbox class="jsterm-complete-node devtools-monospace"
                     multiline="true" rows="1" tabindex="-1"/>
            <textbox class="jsterm-input-node devtools-monospace"
                     multiline="true" rows="1" tabindex="0"
                     aria-autocomplete="list"/>
          </stack>
        </hbox>
      </notificationbox>
    </vbox>

    <splitter class="devtools-side-splitter"/>

    <tabbox id="webconsole-sidebar" class="devtools-sidebar-tabs" hidden="true" width="300">
      <tabs/>
      <tabpanels flex="1"/>
    </tabbox>
  </box>
</window>