|
1 <?xml version="1.0"?> |
|
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 |
|
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" |
|
9 onload="init()"> |
|
10 <script src="chrome://global/content/test-ipcbrowser-chrome.js"/> |
|
11 |
|
12 <toolbar id="controls"> |
|
13 <toolbarbutton label="Back"/> |
|
14 <toolbarbutton label="Forward"/> |
|
15 <textbox onchange="loadURL(this.value)" flex="1"/> |
|
16 </toolbar> |
|
17 <toolbar> |
|
18 <textbox id="scbDx" flex="1" value="0"/> |
|
19 <textbox id="scbDy" flex="1" value="100"/> |
|
20 <toolbarbutton |
|
21 onclick="scrollContentBy(document.getElementById('scbDx').value, |
|
22 document.getElementById('scbDy').value);" |
|
23 label="scrollBy"/> |
|
24 <textbox id="sctX" flex="1" value="200"/> |
|
25 <textbox id="sctY" flex="1" value="300"/> |
|
26 <toolbarbutton |
|
27 onclick="scrollContentTo(document.getElementById('sctX').value, |
|
28 document.getElementById('sctY').value);" |
|
29 label="scrollTo"/> |
|
30 </toolbar> |
|
31 <toolbar> |
|
32 <textbox id="vW" flex="1" value="600"/> |
|
33 <textbox id="vH" flex="1" value="400"/> |
|
34 <toolbarbutton |
|
35 onclick="setContentViewport(document.getElementById('vW').value, |
|
36 document.getElementById('vH').value);" |
|
37 label="setViewport"/> |
|
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"/> |
|
42 <toolbarbutton |
|
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"/> |
|
50 <toolbarbutton |
|
51 onclick="setContentResolution(document.getElementById('xR').value, |
|
52 document.getElementById('yR').value);" |
|
53 label="setResolution"/> |
|
54 </toolbar> |
|
55 <toolbar> |
|
56 <textbox id="vsbX" flex="1" value="0"/> |
|
57 <textbox id="vsbY" flex="1" value="100"/> |
|
58 <toolbarbutton |
|
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"/> |
|
64 <toolbarbutton |
|
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"/> |
|
70 <toolbarbutton |
|
71 onclick="setViewportScale(document.getElementById('vsX').value, |
|
72 document.getElementById('vsY').value);" |
|
73 label="setViewportScale"/> |
|
74 </toolbar> |
|
75 |
|
76 <browser type="content" src="http://www.google.com/" flex="1" id="content" |
|
77 remote="true"/> |
|
78 </window> |