1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/ipc/test-ipcbrowser.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,78 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.6 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.8 + 1.9 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.10 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.11 + width="800" height="800" orient="vertical" 1.12 + onload="init()"> 1.13 + <script src="chrome://global/content/test-ipcbrowser-chrome.js"/> 1.14 + 1.15 + <toolbar id="controls"> 1.16 + <toolbarbutton label="Back"/> 1.17 + <toolbarbutton label="Forward"/> 1.18 + <textbox onchange="loadURL(this.value)" flex="1"/> 1.19 + </toolbar> 1.20 + <toolbar> 1.21 + <textbox id="scbDx" flex="1" value="0"/> 1.22 + <textbox id="scbDy" flex="1" value="100"/> 1.23 + <toolbarbutton 1.24 + onclick="scrollContentBy(document.getElementById('scbDx').value, 1.25 + document.getElementById('scbDy').value);" 1.26 + label="scrollBy"/> 1.27 + <textbox id="sctX" flex="1" value="200"/> 1.28 + <textbox id="sctY" flex="1" value="300"/> 1.29 + <toolbarbutton 1.30 + onclick="scrollContentTo(document.getElementById('sctX').value, 1.31 + document.getElementById('sctY').value);" 1.32 + label="scrollTo"/> 1.33 + </toolbar> 1.34 + <toolbar> 1.35 + <textbox id="vW" flex="1" value="600"/> 1.36 + <textbox id="vH" flex="1" value="400"/> 1.37 + <toolbarbutton 1.38 + onclick="setContentViewport(document.getElementById('vW').value, 1.39 + document.getElementById('vH').value);" 1.40 + label="setViewport"/> 1.41 + <textbox id="dX" flex="1" value="0"/> 1.42 + <textbox id="dY" flex="1" value="0"/> 1.43 + <textbox id="dW" flex="1" value="600"/> 1.44 + <textbox id="dH" flex="1" value="600"/> 1.45 + <toolbarbutton 1.46 + onclick="setContentDisplayPort(document.getElementById('dX').value, 1.47 + document.getElementById('dY').value, 1.48 + document.getElementById('dW').value, 1.49 + document.getElementById('dH').value);" 1.50 + label="setDisplayPort"/> 1.51 + <textbox id="xR" flex="1" value="2.0"/> 1.52 + <textbox id="yR" flex="1" value="2.0"/> 1.53 + <toolbarbutton 1.54 + onclick="setContentResolution(document.getElementById('xR').value, 1.55 + document.getElementById('yR').value);" 1.56 + label="setResolution"/> 1.57 + </toolbar> 1.58 + <toolbar> 1.59 + <textbox id="vsbX" flex="1" value="0"/> 1.60 + <textbox id="vsbY" flex="1" value="100"/> 1.61 + <toolbarbutton 1.62 + onclick="scrollViewportBy(document.getElementById('vsbX').value, 1.63 + document.getElementById('vsbY').value);" 1.64 + label="scrollViewportBy"/> 1.65 + <textbox id="vstX" flex="1" value="200"/> 1.66 + <textbox id="vstY" flex="1" value="300"/> 1.67 + <toolbarbutton 1.68 + onclick="scrollViewportTo(document.getElementById('vstX').value, 1.69 + document.getElementById('vstY').value);" 1.70 + label="scrollViewportTo"/> 1.71 + <textbox id="vsX" flex="1" value="2.0"/> 1.72 + <textbox id="vsY" flex="1" value="2.0"/> 1.73 + <toolbarbutton 1.74 + onclick="setViewportScale(document.getElementById('vsX').value, 1.75 + document.getElementById('vsY').value);" 1.76 + label="setViewportScale"/> 1.77 + </toolbar> 1.78 + 1.79 + <browser type="content" src="http://www.google.com/" flex="1" id="content" 1.80 + remote="true"/> 1.81 +</window>