Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 7 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 8 | width="800" height="800" orient="vertical" |
michael@0 | 9 | onload="init()"> |
michael@0 | 10 | <script src="chrome://global/content/test-ipcbrowser-chrome.js"/> |
michael@0 | 11 | |
michael@0 | 12 | <toolbar id="controls"> |
michael@0 | 13 | <toolbarbutton label="Back"/> |
michael@0 | 14 | <toolbarbutton label="Forward"/> |
michael@0 | 15 | <textbox onchange="loadURL(this.value)" flex="1"/> |
michael@0 | 16 | </toolbar> |
michael@0 | 17 | <toolbar> |
michael@0 | 18 | <textbox id="scbDx" flex="1" value="0"/> |
michael@0 | 19 | <textbox id="scbDy" flex="1" value="100"/> |
michael@0 | 20 | <toolbarbutton |
michael@0 | 21 | onclick="scrollContentBy(document.getElementById('scbDx').value, |
michael@0 | 22 | document.getElementById('scbDy').value);" |
michael@0 | 23 | label="scrollBy"/> |
michael@0 | 24 | <textbox id="sctX" flex="1" value="200"/> |
michael@0 | 25 | <textbox id="sctY" flex="1" value="300"/> |
michael@0 | 26 | <toolbarbutton |
michael@0 | 27 | onclick="scrollContentTo(document.getElementById('sctX').value, |
michael@0 | 28 | document.getElementById('sctY').value);" |
michael@0 | 29 | label="scrollTo"/> |
michael@0 | 30 | </toolbar> |
michael@0 | 31 | <toolbar> |
michael@0 | 32 | <textbox id="vW" flex="1" value="600"/> |
michael@0 | 33 | <textbox id="vH" flex="1" value="400"/> |
michael@0 | 34 | <toolbarbutton |
michael@0 | 35 | onclick="setContentViewport(document.getElementById('vW').value, |
michael@0 | 36 | document.getElementById('vH').value);" |
michael@0 | 37 | label="setViewport"/> |
michael@0 | 38 | <textbox id="dX" flex="1" value="0"/> |
michael@0 | 39 | <textbox id="dY" flex="1" value="0"/> |
michael@0 | 40 | <textbox id="dW" flex="1" value="600"/> |
michael@0 | 41 | <textbox id="dH" flex="1" value="600"/> |
michael@0 | 42 | <toolbarbutton |
michael@0 | 43 | onclick="setContentDisplayPort(document.getElementById('dX').value, |
michael@0 | 44 | document.getElementById('dY').value, |
michael@0 | 45 | document.getElementById('dW').value, |
michael@0 | 46 | document.getElementById('dH').value);" |
michael@0 | 47 | label="setDisplayPort"/> |
michael@0 | 48 | <textbox id="xR" flex="1" value="2.0"/> |
michael@0 | 49 | <textbox id="yR" flex="1" value="2.0"/> |
michael@0 | 50 | <toolbarbutton |
michael@0 | 51 | onclick="setContentResolution(document.getElementById('xR').value, |
michael@0 | 52 | document.getElementById('yR').value);" |
michael@0 | 53 | label="setResolution"/> |
michael@0 | 54 | </toolbar> |
michael@0 | 55 | <toolbar> |
michael@0 | 56 | <textbox id="vsbX" flex="1" value="0"/> |
michael@0 | 57 | <textbox id="vsbY" flex="1" value="100"/> |
michael@0 | 58 | <toolbarbutton |
michael@0 | 59 | onclick="scrollViewportBy(document.getElementById('vsbX').value, |
michael@0 | 60 | document.getElementById('vsbY').value);" |
michael@0 | 61 | label="scrollViewportBy"/> |
michael@0 | 62 | <textbox id="vstX" flex="1" value="200"/> |
michael@0 | 63 | <textbox id="vstY" flex="1" value="300"/> |
michael@0 | 64 | <toolbarbutton |
michael@0 | 65 | onclick="scrollViewportTo(document.getElementById('vstX').value, |
michael@0 | 66 | document.getElementById('vstY').value);" |
michael@0 | 67 | label="scrollViewportTo"/> |
michael@0 | 68 | <textbox id="vsX" flex="1" value="2.0"/> |
michael@0 | 69 | <textbox id="vsY" flex="1" value="2.0"/> |
michael@0 | 70 | <toolbarbutton |
michael@0 | 71 | onclick="setViewportScale(document.getElementById('vsX').value, |
michael@0 | 72 | document.getElementById('vsY').value);" |
michael@0 | 73 | label="setViewportScale"/> |
michael@0 | 74 | </toolbar> |
michael@0 | 75 | |
michael@0 | 76 | <browser type="content" src="http://www.google.com/" flex="1" id="content" |
michael@0 | 77 | remote="true"/> |
michael@0 | 78 | </window> |