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/. -->
6 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
7 <window xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
8 width=
"800" height=
"800" orient=
"vertical"
10 <script src=
"chrome://global/content/test-ipcbrowser-chrome.js"/>
12 <toolbar id=
"controls">
13 <toolbarbutton label=
"Back"/>
14 <toolbarbutton label=
"Forward"/>
15 <textbox onchange=
"loadURL(this.value)" flex=
"1"/>
18 <textbox id=
"scbDx" flex=
"1" value=
"0"/>
19 <textbox id=
"scbDy" flex=
"1" value=
"100"/>
21 onclick=
"scrollContentBy(document.getElementById('scbDx').value,
22 document.getElementById('scbDy').value);"
24 <textbox id=
"sctX" flex=
"1" value=
"200"/>
25 <textbox id=
"sctY" flex=
"1" value=
"300"/>
27 onclick=
"scrollContentTo(document.getElementById('sctX').value,
28 document.getElementById('sctY').value);"
32 <textbox id=
"vW" flex=
"1" value=
"600"/>
33 <textbox id=
"vH" flex=
"1" value=
"400"/>
35 onclick=
"setContentViewport(document.getElementById('vW').value,
36 document.getElementById('vH').value);"
38 <textbox id=
"dX" flex=
"1" value=
"0"/>
39 <textbox id=
"dY" flex=
"1" value=
"0"/>
40 <textbox id=
"dW" flex=
"1" value=
"600"/>
41 <textbox id=
"dH" flex=
"1" value=
"600"/>
43 onclick=
"setContentDisplayPort(document.getElementById('dX').value,
44 document.getElementById('dY').value,
45 document.getElementById('dW').value,
46 document.getElementById('dH').value);"
47 label=
"setDisplayPort"/>
48 <textbox id=
"xR" flex=
"1" value=
"2.0"/>
49 <textbox id=
"yR" flex=
"1" value=
"2.0"/>
51 onclick=
"setContentResolution(document.getElementById('xR').value,
52 document.getElementById('yR').value);"
53 label=
"setResolution"/>
56 <textbox id=
"vsbX" flex=
"1" value=
"0"/>
57 <textbox id=
"vsbY" flex=
"1" value=
"100"/>
59 onclick=
"scrollViewportBy(document.getElementById('vsbX').value,
60 document.getElementById('vsbY').value);"
61 label=
"scrollViewportBy"/>
62 <textbox id=
"vstX" flex=
"1" value=
"200"/>
63 <textbox id=
"vstY" flex=
"1" value=
"300"/>
65 onclick=
"scrollViewportTo(document.getElementById('vstX').value,
66 document.getElementById('vstY').value);"
67 label=
"scrollViewportTo"/>
68 <textbox id=
"vsX" flex=
"1" value=
"2.0"/>
69 <textbox id=
"vsY" flex=
"1" value=
"2.0"/>
71 onclick=
"setViewportScale(document.getElementById('vsX').value,
72 document.getElementById('vsY').value);"
73 label=
"setViewportScale"/>
76 <browser type=
"content" src=
"http://www.google.com/" flex=
"1" id=
"content"