~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/extensions/layout-debug/ui/content/layoutdebug.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!-- vim:sw=2:ts=8:et:
 
3
   -
 
4
   -
 
5
   - The contents of this file are subject to the Mozilla Public License
 
6
   - Version 1.1 (the "License"); you may not use this file except in
 
7
   - compliance with the License. You may obtain a copy of the License at
 
8
   - http://www.mozilla.org/MPL/ 
 
9
   - 
 
10
   - Software distributed under the License is distributed on an "AS IS" basis,
 
11
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
12
   - for the specific language governing rights and limitations under the
 
13
   - License. 
 
14
   -
 
15
   - The Original Code is The JavaScript Debugger
 
16
   - 
 
17
   - The Initial Developer of the Original Code is
 
18
   - Netscape Communications Corporation
 
19
   - Portions created by Netscape are
 
20
   - Copyright (C) 1998 Netscape Communications Corporation.
 
21
   - All Rights Reserved.
 
22
   -
 
23
   - Alternatively, the contents of this file may be used under the
 
24
   - terms of the GNU Public License (the "GPL"), in which case the
 
25
   - provisions of the GPL are applicable instead of those above.
 
26
   - If you wish to allow use of your version of this file only
 
27
   - under the terms of the GPL and not to allow others to use your
 
28
   - version of this file under the MPL, indicate your decision by
 
29
   - deleting the provisions above and replace them with the notice
 
30
   - and other provisions required by the GPL.  If you do not delete
 
31
   - the provisions above, a recipient may use your version of this
 
32
   - file under either the MPL or the GPL.
 
33
   -
 
34
   - Contributor(s):
 
35
   -  Robert Ginda, <rginda@netscape.com>, original author
 
36
   -  L. David Baron, <dbaron@fas.harvard.edu>, modified for Layout Debugger
 
37
   -
 
38
   -->
 
39
 
 
40
<!DOCTYPE window [
 
41
  <!ENTITY % layoutdebugDTD
 
42
           SYSTEM "chrome://layoutdebug/locale/layoutdebug.dtd">
 
43
  %layoutdebugDTD;
 
44
 
 
45
  <!ENTITY W3C_RDFNS "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 
46
  <!ENTITY NC_RDFNS "http://home.netscape.com/NC-rdf#">
 
47
  <!ENTITY LDB_RDFNS "http://mozilla.org/newlayout/LDB-rdf#">
 
48
]>
 
49
 
 
50
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css" ?>
 
51
 
 
52
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
 
53
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
 
54
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
 
55
 
 
56
<!--
 
57
 
 
58
  NOTE:  Because this window is used for layout regression tests, the
 
59
  persist attribute should never be used on anything.  Otherwise there
 
60
  is a risk of running baseline and verify runs under different
 
61
  conditions.
 
62
 
 
63
-->
 
64
 
 
65
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
66
        xmlns:rdf="&W3C_RDFNS;"
 
67
        id="main-window"
 
68
        align="stretch"
 
69
        title="&ldb.MainWindow.title;"
 
70
        titlemodifier="&ldb.MainWindow.title;"
 
71
        contenttitlesetting="true"
 
72
        titlemenuseparator=" - "
 
73
        windowtype="mozapp:layoutdebug"
 
74
        onload="OnLDBLoad();"
 
75
        onunload="OnLDBUnload();"
 
76
        width="610" height="450"
 
77
        screenX="4" screenY="4"
 
78
        >
 
79
 
 
80
  <script src="chrome://layoutdebug/content/layoutdebug.js"/>
 
81
 
 
82
  <commandset id="tasksCommands">
 
83
    <command id="cmd_close" oncommand="window.close();"/>
 
84
    <command id="cmd_quit"/>
 
85
  </commandset>
 
86
 
 
87
  <keyset id="tasksKeys">
 
88
    <key id="openFileKb" key="&ldb.Open.commandkey;" oncommand="openFile()"  modifiers="accel"/>
 
89
    <key id="key_close"/>
 
90
    <key id="key_quit"/>
 
91
  </keyset>
 
92
 
 
93
  <vbox flex="1">
 
94
 
 
95
    <toolbox>
 
96
      <menubar id="main-menubar" grippyhidden="true">
 
97
        <menu id="menu_File">
 
98
          <menupopup id="menu_FilePopup">
 
99
            <menuitem id="menu_open" label="&ldb.Open.label;" accesskey="&ldb.Open.accesskey;" key="openFileKb" oncommand="openFile()"/>
 
100
            <menuitem id="menu_close"/>
 
101
          </menupopup>
 
102
        </menu>
 
103
        <menu id="menu_Edit">
 
104
          <menupopup>
 
105
            <menuitem id="menu_cut" />
 
106
            <menuitem id="menu_copy" />
 
107
            <menuitem id="menu_paste" />
 
108
            <menuitem id="menu_delete" />
 
109
            <menuitem id="menu_selectAll" />
 
110
          </menupopup>
 
111
        </menu>
 
112
        <menu label="&ldb.RegressionTestMenu.label;"
 
113
              accesskey="&ldb.RegressionTestMenu.accesskey;">
 
114
          <menupopup>
 
115
            <menu label="&ldb.RunBaselineMenu.label;"
 
116
                  accesskey="&ldb.RunBaselineMenu.accesskey;"
 
117
                  id="menu_RTest_baseline"
 
118
                  datasources="rdf:null"
 
119
                  containment="&NC_RDFNS;child"
 
120
                  ref="&LDB_RDFNS;Root">
 
121
              <template>
 
122
                <menupopup>
 
123
                  <menuitem uri="rdf:*"
 
124
                            label="rdf:&NC_RDFNS;name"
 
125
                            name="rdf:&NC_RDFNS;name"
 
126
                            oncommand="RunRTest(this.getAttribute('name'), true);" />
 
127
                </menupopup>
 
128
              </template>
 
129
            </menu>
 
130
            <menu label="&ldb.RunVerifyMenu.label;"
 
131
                  accesskey="&ldb.RunVerifyMenu.accesskey;"
 
132
                  id="menu_RTest_verify"
 
133
                  datasources="rdf:null"
 
134
                  containment="&NC_RDFNS;child"
 
135
                  ref="&LDB_RDFNS;Root">
 
136
              <template>
 
137
                <menupopup>
 
138
                  <menuitem uri="rdf:*"
 
139
                            label="rdf:&NC_RDFNS;name"
 
140
                            name="rdf:&NC_RDFNS;name"
 
141
                            oncommand="RunRTest(this.getAttribute('name'), false);" />
 
142
                </menupopup>
 
143
              </template>
 
144
            </menu>
 
145
            <menuseparator />
 
146
            <menuitem id="menu_AddNewList" label="&ldb.AddNewList.label;" accesskey="&ldb.AddNewList.accesskey;" oncommand="gRTestIndexList.add();" />
 
147
            <menu label="&ldb.RemoveListMenu.label;"
 
148
                  accesskey="&ldb.RemoveListMenu.accesskey;"
 
149
                  id="menu_RTest_remove"
 
150
                  datasources="rdf:null"
 
151
                  containment="&NC_RDFNS;child"
 
152
                  ref="&LDB_RDFNS;Root">
 
153
              <template>
 
154
                <menupopup>
 
155
                  <menuitem uri="rdf:*"
 
156
                            label="rdf:&NC_RDFNS;name"
 
157
                            name="rdf:&NC_RDFNS;name"
 
158
                            oncommand="gRTestIndexList.remove(this.getAttribute('name'));" />
 
159
                </menupopup>
 
160
              </template>
 
161
            </menu>
 
162
          </menupopup>
 
163
        </menu>
 
164
        <menu label="&ldb.ToggleMenu.label;"
 
165
              accesskey="&ldb.ToggleMenu.accesskey;">
 
166
          <menupopup>
 
167
            <menuitem type="checkbox" id="menu_visualDebugging" label="&ldb.visualDebugging.label;" accesskey="&ldb.visualDebugging.accesskey;" oncommand="toggle(this);" />
 
168
            <menuitem type="checkbox" id="menu_visualEventDebugging" label="&ldb.visualEventDebugging.label;" accesskey="&ldb.visualEventDebugging.accesskey;" oncommand="toggle(this);" />
 
169
            <menuseparator />
 
170
            <menuitem type="checkbox" id="menu_paintFlashing" label="&ldb.paintFlashing.label;" accesskey="&ldb.paintFlashing.accesskey;" oncommand="toggle(this);" />
 
171
            <menuitem type="checkbox" id="menu_paintDumping" label="&ldb.paintDumping.label;" accesskey="&ldb.paintDumping.accesskey;" oncommand="toggle(this);" />
 
172
            <menuitem type="checkbox" id="menu_invalidateDumping" label="&ldb.invalidateDumping.label;" accesskey="&ldb.invalidateDumping.accesskey;" oncommand="toggle(this);" />
 
173
            <menuseparator />
 
174
            <menuitem type="checkbox" id="menu_eventDumping" label="&ldb.eventDumping.label;" accesskey="&ldb.eventDumping.accesskey;" oncommand="toggle(this);" />
 
175
            <menuitem type="checkbox" id="menu_motionEventDumping" label="&ldb.motionEventDumping.label;" accesskey="&ldb.motionEventDumping.accesskey;" oncommand="toggle(this);" />
 
176
            <menuitem type="checkbox" id="menu_crossingEventDumping" label="&ldb.crossingEventDumping.label;" accesskey="&ldb.crossingEventDumping.accesskey;" oncommand="toggle(this);" />
 
177
            <menuseparator />
 
178
            <menuitem type="checkbox" id="menu_reflowCounts" label="&ldb.reflowCounts.label;" accesskey="&ldb.reflowCounts.accesskey;" oncommand="toggle(this);" />
 
179
          </menupopup>
 
180
        </menu>
 
181
        <menu label="&ldb.DumpMenu.label;"
 
182
              accesskey="&ldb.DumpMenu.accesskey;">
 
183
          <menupopup>
 
184
            <menuitem id="menu_dumpWebShells" label="&ldb.dumpWebShells.label;" accesskey="&ldb.dumpWebShells.accesskey;" oncommand="gDebugger.dumpWebShells();" />
 
185
            <menuitem id="menu_dumpContent" label="&ldb.dumpContent.label;" accesskey="&ldb.dumpContent.accesskey;" oncommand="gDebugger.dumpContent();" />
 
186
            <menuitem id="menu_dumpFrames" label="&ldb.dumpFrames.label;" accesskey="&ldb.dumpFrames.accesskey;" oncommand="gDebugger.dumpFrames();" />
 
187
            <menuitem id="menu_dumpViews" label="&ldb.dumpViews.label;" accesskey="&ldb.dumpViews.accesskey;" oncommand="gDebugger.dumpViews();" />
 
188
            <menuseparator />
 
189
            <menuitem id="menu_dumpStyleSheets" label="&ldb.dumpStyleSheets.label;" accesskey="&ldb.dumpStyleSheets.accesskey;" oncommand="gDebugger.dumpStyleSheets();" />
 
190
            <menuitem id="menu_dumpStyleContexts" label="&ldb.dumpStyleContexts.label;" accesskey="&ldb.dumpStyleContexts.accesskey;" oncommand="gDebugger.dumpStyleContexts();" />
 
191
            <menuseparator />
 
192
            <menuitem id="menu_dumpReflowStats" label="&ldb.dumpReflowStats.label;" accesskey="&ldb.dumpReflowStats.accesskey;" oncommand="gDebugger.dumpReflowStats();" />
 
193
          </menupopup>
 
194
        </menu>
 
195
        <menu id="tasksMenu"/>
 
196
        <menu id="windowMenu"/>
 
197
        <menu id="menu_Help"/>
 
198
      </menubar>
 
199
 
 
200
      <toolbar grippyhidden="true">
 
201
        <toolbarbutton id="back-button" class="toolbarbutton-1"
 
202
                       label="&ldb.BackButton.label;"
 
203
                       oncommand="gBrowser.goBack();" />
 
204
        <toolbarbutton id="forward-button" class="toolbarbutton-1"
 
205
                       label="&ldb.ForwardButton.label;"
 
206
                       oncommand="gBrowser.goForward();" />
 
207
        <toolbarbutton id="reload-button" class="toolbarbutton-1"
 
208
                       label="&ldb.ReloadButton.label;"
 
209
                       oncommand="gBrowser.reload();" />
 
210
        <toolbarbutton id="stop-button" class="toolbarbutton-1"
 
211
                       label="&ldb.StopButton.label;"
 
212
                       oncommand="gBrowser.stop();" />
 
213
 
 
214
        <textbox id="urlbar" class="chromeclass-location" flex="1"
 
215
                 onkeypress="if (event.keyCode == 13)
 
216
                               gBrowser.loadURI(this.value);" />
 
217
      </toolbar>
 
218
    </toolbox>
 
219
 
 
220
    <browser flex="1" id="browser" type="content-primary"
 
221
             homepage="resource:///res/samples/test0.html" />
 
222
 
 
223
    <hbox>
 
224
      <description id="status-text" value="" />
 
225
    </hbox>
 
226
  </vbox>
 
227
</window>