|
1 <?xml version="1.0"?> |
|
2 <!-- vim: set shiftwidth=2 tabstop=8 expandtab : |
|
3 - |
|
4 - |
|
5 - This Source Code Form is subject to the terms of the Mozilla Public |
|
6 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
7 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
8 |
|
9 <!DOCTYPE window [ |
|
10 <!ENTITY % layoutdebugDTD |
|
11 SYSTEM "chrome://layoutdebug/locale/layoutdebug.dtd"> |
|
12 %layoutdebugDTD; |
|
13 |
|
14 <!ENTITY W3C_RDFNS "http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
|
15 <!ENTITY NC_RDFNS "http://home.netscape.com/NC-rdf#"> |
|
16 <!ENTITY LDB_RDFNS "http://mozilla.org/newlayout/LDB-rdf#"> |
|
17 ]> |
|
18 |
|
19 <?xml-stylesheet href="chrome://communicator/skin/" type="text/css" ?> |
|
20 |
|
21 <?xul-overlay href="chrome://global/content/globalOverlay.xul"?> |
|
22 <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?> |
|
23 |
|
24 <!-- |
|
25 |
|
26 NOTE: Because this window is used for layout regression tests, the |
|
27 persist attribute should never be used on anything. Otherwise there |
|
28 is a risk of running baseline and verify runs under different |
|
29 conditions. |
|
30 |
|
31 --> |
|
32 |
|
33 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
34 xmlns:rdf="&W3C_RDFNS;" |
|
35 id="main-window" |
|
36 align="stretch" |
|
37 title="&ldb.MainWindow.title;" |
|
38 titlemodifier="&ldb.MainWindow.title;" |
|
39 contenttitlesetting="true" |
|
40 titlemenuseparator=" - " |
|
41 windowtype="mozapp:layoutdebug" |
|
42 onload="OnLDBLoad();" |
|
43 onunload="OnLDBUnload();" |
|
44 width="610" height="450" |
|
45 screenX="4" screenY="4" |
|
46 > |
|
47 |
|
48 <script src="chrome://layoutdebug/content/layoutdebug.js"/> |
|
49 |
|
50 <commandset id="tasksCommands"> |
|
51 <command id="cmd_close" oncommand="window.close();"/> |
|
52 <command id="cmd_quit"/> |
|
53 </commandset> |
|
54 |
|
55 <keyset id="tasksKeys"> |
|
56 <key id="openFileKb" key="&ldb.Open.commandkey;" oncommand="openFile()" modifiers="accel"/> |
|
57 <key id="key_close"/> |
|
58 <key id="key_quit"/> |
|
59 </keyset> |
|
60 |
|
61 <vbox flex="1"> |
|
62 |
|
63 <toolbox> |
|
64 <menubar id="main-menubar" grippyhidden="true"> |
|
65 <menu id="menu_file" label="File" accesskey="F"> |
|
66 <menupopup id="menu_FilePopup"> |
|
67 <menuitem id="menu_open" label="&ldb.Open.label;" accesskey="&ldb.Open.accesskey;" key="openFileKb" oncommand="openFile()"/> |
|
68 <menuitem id="menu_close" label="Close" accesskey="C" oncommand="window.close();"/> |
|
69 </menupopup> |
|
70 </menu> |
|
71 <menu label="&ldb.RegressionTestMenu.label;" |
|
72 accesskey="&ldb.RegressionTestMenu.accesskey;"> |
|
73 <menupopup> |
|
74 <menuitem type="checkbox" id="menu_RTestPrintMode" label="&ldb.RegressionPrintMode.label;" accesskey="&ldb.RegressionPrintMode.accesskey;"/> |
|
75 <menu label="&ldb.RunBaselineMenu.label;" |
|
76 accesskey="&ldb.RunBaselineMenu.accesskey;" |
|
77 id="menu_RTest_baseline" |
|
78 datasources="rdf:null" |
|
79 containment="&NC_RDFNS;child" |
|
80 ref="&LDB_RDFNS;Root"> |
|
81 <template> |
|
82 <menupopup> |
|
83 <menuitem uri="rdf:*" |
|
84 label="rdf:&NC_RDFNS;name" |
|
85 name="rdf:&NC_RDFNS;name" |
|
86 oncommand="RunRTest(this.getAttribute('name'), true, document.getElementById('menu_RTestPrintMode').getAttribute('checked'));" /> |
|
87 </menupopup> |
|
88 </template> |
|
89 </menu> |
|
90 <menu label="&ldb.RunVerifyMenu.label;" |
|
91 accesskey="&ldb.RunVerifyMenu.accesskey;" |
|
92 id="menu_RTest_verify" |
|
93 datasources="rdf:null" |
|
94 containment="&NC_RDFNS;child" |
|
95 ref="&LDB_RDFNS;Root"> |
|
96 <template> |
|
97 <menupopup> |
|
98 <menuitem uri="rdf:*" |
|
99 label="rdf:&NC_RDFNS;name" |
|
100 name="rdf:&NC_RDFNS;name" |
|
101 oncommand="RunRTest(this.getAttribute('name'), false, document.getElementById('menu_RTestPrintMode').getAttribute('checked'));" /> |
|
102 </menupopup> |
|
103 </template> |
|
104 </menu> |
|
105 <menuseparator /> |
|
106 <menuitem id="menu_AddNewList" label="&ldb.AddNewList.label;" accesskey="&ldb.AddNewList.accesskey;" oncommand="gRTestIndexList.add();" /> |
|
107 <menu label="&ldb.RemoveListMenu.label;" |
|
108 accesskey="&ldb.RemoveListMenu.accesskey;" |
|
109 id="menu_RTest_remove" |
|
110 datasources="rdf:null" |
|
111 containment="&NC_RDFNS;child" |
|
112 ref="&LDB_RDFNS;Root"> |
|
113 <template> |
|
114 <menupopup> |
|
115 <menuitem uri="rdf:*" |
|
116 label="rdf:&NC_RDFNS;name" |
|
117 name="rdf:&NC_RDFNS;name" |
|
118 oncommand="gRTestIndexList.remove(this.getAttribute('name'));" /> |
|
119 </menupopup> |
|
120 </template> |
|
121 </menu> |
|
122 </menupopup> |
|
123 </menu> |
|
124 <menu label="&ldb.ToggleMenu.label;" |
|
125 accesskey="&ldb.ToggleMenu.accesskey;"> |
|
126 <menupopup> |
|
127 <menuitem type="checkbox" id="menu_visualDebugging" label="&ldb.visualDebugging.label;" accesskey="&ldb.visualDebugging.accesskey;" oncommand="toggle(this);" /> |
|
128 <menuitem type="checkbox" id="menu_visualEventDebugging" label="&ldb.visualEventDebugging.label;" accesskey="&ldb.visualEventDebugging.accesskey;" oncommand="toggle(this);" /> |
|
129 <menuseparator /> |
|
130 <menuitem type="checkbox" id="menu_paintFlashing" label="&ldb.paintFlashing.label;" accesskey="&ldb.paintFlashing.accesskey;" oncommand="toggle(this);" /> |
|
131 <menuitem type="checkbox" id="menu_paintDumping" label="&ldb.paintDumping.label;" accesskey="&ldb.paintDumping.accesskey;" oncommand="toggle(this);" /> |
|
132 <menuitem type="checkbox" id="menu_invalidateDumping" label="&ldb.invalidateDumping.label;" accesskey="&ldb.invalidateDumping.accesskey;" oncommand="toggle(this);" /> |
|
133 <menuseparator /> |
|
134 <menuitem type="checkbox" id="menu_eventDumping" label="&ldb.eventDumping.label;" accesskey="&ldb.eventDumping.accesskey;" oncommand="toggle(this);" /> |
|
135 <menuitem type="checkbox" id="menu_motionEventDumping" label="&ldb.motionEventDumping.label;" accesskey="&ldb.motionEventDumping.accesskey;" oncommand="toggle(this);" /> |
|
136 <menuitem type="checkbox" id="menu_crossingEventDumping" label="&ldb.crossingEventDumping.label;" accesskey="&ldb.crossingEventDumping.accesskey;" oncommand="toggle(this);" /> |
|
137 <menuseparator /> |
|
138 <menuitem type="checkbox" id="menu_reflowCounts" label="&ldb.reflowCounts.label;" accesskey="&ldb.reflowCounts.accesskey;" oncommand="toggle(this);" /> |
|
139 </menupopup> |
|
140 </menu> |
|
141 <menu label="&ldb.DumpMenu.label;" |
|
142 accesskey="&ldb.DumpMenu.accesskey;"> |
|
143 <menupopup> |
|
144 <menuitem id="menu_dumpWebShells" label="&ldb.dumpWebShells.label;" accesskey="&ldb.dumpWebShells.accesskey;" oncommand="gDebugger.dumpWebShells();" /> |
|
145 <menuitem id="menu_dumpContent" label="&ldb.dumpContent.label;" accesskey="&ldb.dumpContent.accesskey;" oncommand="gDebugger.dumpContent();" /> |
|
146 <menuitem id="menu_dumpFrames" label="&ldb.dumpFrames.label;" accesskey="&ldb.dumpFrames.accesskey;" oncommand="gDebugger.dumpFrames();" /> |
|
147 <menuitem id="menu_dumpViews" label="&ldb.dumpViews.label;" accesskey="&ldb.dumpViews.accesskey;" oncommand="gDebugger.dumpViews();" /> |
|
148 <menuseparator /> |
|
149 <menuitem id="menu_dumpStyleSheets" label="&ldb.dumpStyleSheets.label;" accesskey="&ldb.dumpStyleSheets.accesskey;" oncommand="gDebugger.dumpStyleSheets();" /> |
|
150 <menuitem id="menu_dumpStyleContexts" label="&ldb.dumpStyleContexts.label;" accesskey="&ldb.dumpStyleContexts.accesskey;" oncommand="gDebugger.dumpStyleContexts();" /> |
|
151 <menuseparator /> |
|
152 <menuitem id="menu_dumpReflowStats" label="&ldb.dumpReflowStats.label;" accesskey="&ldb.dumpReflowStats.accesskey;" oncommand="gDebugger.dumpReflowStats();" /> |
|
153 </menupopup> |
|
154 </menu> |
|
155 <menu id="tasksMenu"/> |
|
156 <menu id="windowMenu"/> |
|
157 <menu id="menu_Help"/> |
|
158 </menubar> |
|
159 |
|
160 <toolbar grippyhidden="true"> |
|
161 <toolbarbutton id="back-button" class="toolbarbutton-1" |
|
162 label="&ldb.BackButton.label;" |
|
163 oncommand="gBrowser.goBack();" /> |
|
164 <toolbarbutton id="forward-button" class="toolbarbutton-1" |
|
165 label="&ldb.ForwardButton.label;" |
|
166 oncommand="gBrowser.goForward();" /> |
|
167 <toolbarbutton id="reload-button" class="toolbarbutton-1" |
|
168 label="&ldb.ReloadButton.label;" |
|
169 oncommand="gBrowser.reload();" /> |
|
170 <toolbarbutton id="stop-button" class="toolbarbutton-1" |
|
171 label="&ldb.StopButton.label;" |
|
172 oncommand="gBrowser.stop();" /> |
|
173 |
|
174 <textbox id="urlbar" flex="1" |
|
175 onkeypress="if (event.keyCode == 13) |
|
176 gBrowser.loadURI(this.value);" /> |
|
177 </toolbar> |
|
178 </toolbox> |
|
179 |
|
180 <browser flex="1" id="browser" type="content-primary" |
|
181 homepage="about:blank" /> |
|
182 |
|
183 <hbox> |
|
184 <description id="status-text" value="" /> |
|
185 </hbox> |
|
186 </vbox> |
|
187 </window> |