1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/sync/addDevice.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,129 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.7 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.9 + 1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 1.11 +<?xml-stylesheet href="chrome://browser/skin/syncSetup.css" type="text/css"?> 1.12 +<?xml-stylesheet href="chrome://browser/skin/syncCommon.css" type="text/css"?> 1.13 + 1.14 +<!DOCTYPE window [ 1.15 +<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> 1.16 +<!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd"> 1.17 +<!ENTITY % syncSetupDTD SYSTEM "chrome://browser/locale/syncSetup.dtd"> 1.18 +%brandDTD; 1.19 +%syncBrandDTD; 1.20 +%syncSetupDTD; 1.21 +]> 1.22 +<wizard xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.23 + xmlns:html="http://www.w3.org/1999/xhtml" 1.24 + id="wizard" 1.25 + title="&pairDevice.title.label;" 1.26 + windowtype="Sync:AddDevice" 1.27 + persist="screenX screenY" 1.28 + onwizardnext="return gSyncAddDevice.onWizardAdvance();" 1.29 + onwizardback="return gSyncAddDevice.onWizardBack();" 1.30 + onwizardcancel="gSyncAddDevice.onWizardCancel();" 1.31 + onload="gSyncAddDevice.init();"> 1.32 + 1.33 + <script type="application/javascript" 1.34 + src="chrome://browser/content/sync/addDevice.js"/> 1.35 + <script type="application/javascript" 1.36 + src="chrome://browser/content/sync/utils.js"/> 1.37 + <script type="application/javascript" 1.38 + src="chrome://browser/content/utilityOverlay.js"/> 1.39 + <script type="application/javascript" 1.40 + src="chrome://global/content/printUtils.js"/> 1.41 + 1.42 + <wizardpage id="addDevicePage" 1.43 + label="&pairDevice.title.label;" 1.44 + onpageshow="gSyncAddDevice.onPageShow();"> 1.45 + <description> 1.46 + &pairDevice.dialog.description.label; 1.47 + <label class="text-link" 1.48 + value="&addDevice.showMeHow.label;" 1.49 + href="https://services.mozilla.com/sync/help/add-device"/> 1.50 + </description> 1.51 + <separator class="groove-thin"/> 1.52 + <description> 1.53 + &addDevice.dialog.enterCode.label; 1.54 + </description> 1.55 + <separator class="groove-thin"/> 1.56 + <vbox align="center"> 1.57 + <textbox id="pin1" 1.58 + class="pin" 1.59 + oninput="gSyncAddDevice.onTextBoxInput(this);" 1.60 + onfocus="this.select();" 1.61 + /> 1.62 + <textbox id="pin2" 1.63 + class="pin" 1.64 + oninput="gSyncAddDevice.onTextBoxInput(this);" 1.65 + onfocus="this.select();" 1.66 + /> 1.67 + <textbox id="pin3" 1.68 + class="pin" 1.69 + oninput="gSyncAddDevice.onTextBoxInput(this);" 1.70 + onfocus="this.select();" 1.71 + /> 1.72 + </vbox> 1.73 + <separator class="groove-thin"/> 1.74 + <vbox id="pairDeviceThrobber" align="center" hidden="true"> 1.75 + <image/> 1.76 + </vbox> 1.77 + <hbox id="errorRow" pack="center" hidden="true"> 1.78 + <image class="statusIcon" status="error"/> 1.79 + <label class="status" 1.80 + value="&addDevice.dialog.tryAgain.label;"/> 1.81 + </hbox> 1.82 + <spacer flex="3"/> 1.83 + <label class="text-link" 1.84 + value="&addDevice.dontHaveDevice.label;" 1.85 + onclick="gSyncAddDevice.goToSyncKeyPage();"/> 1.86 + </wizardpage> 1.87 + 1.88 + <!-- Need a non-empty label here, otherwise we get a default label on Mac --> 1.89 + <wizardpage id="syncKeyPage" 1.90 + label=" " 1.91 + onpageshow="gSyncAddDevice.onPageShow();"> 1.92 + <description> 1.93 + &addDevice.dialog.recoveryKey.label; 1.94 + </description> 1.95 + <spacer/> 1.96 + 1.97 + <groupbox> 1.98 + <label value="&recoveryKeyEntry.label;" 1.99 + accesskey="&recoveryKeyEntry.accesskey;" 1.100 + control="weavePassphrase"/> 1.101 + <textbox id="weavePassphrase" 1.102 + readonly="true"/> 1.103 + </groupbox> 1.104 + 1.105 + <groupbox align="center"> 1.106 + <description>&recoveryKeyBackup.description;</description> 1.107 + <hbox> 1.108 + <button id="printSyncKeyButton" 1.109 + label="&button.syncKeyBackup.print.label;" 1.110 + accesskey="&button.syncKeyBackup.print.accesskey;" 1.111 + oncommand="gSyncUtils.passphrasePrint('weavePassphrase');"/> 1.112 + <button id="saveSyncKeyButton" 1.113 + label="&button.syncKeyBackup.save.label;" 1.114 + accesskey="&button.syncKeyBackup.save.accesskey;" 1.115 + oncommand="gSyncUtils.passphraseSave('weavePassphrase');"/> 1.116 + </hbox> 1.117 + </groupbox> 1.118 + </wizardpage> 1.119 + 1.120 + <wizardpage id="deviceConnectedPage" 1.121 + label="&addDevice.dialog.connected.label;" 1.122 + onpageshow="gSyncAddDevice.onPageShow();"> 1.123 + <vbox align="center"> 1.124 + <image id="successPageIcon"/> 1.125 + </vbox> 1.126 + <separator/> 1.127 + <description class="normal"> 1.128 + &addDevice.dialog.successful.label; 1.129 + </description> 1.130 + </wizardpage> 1.131 + 1.132 +</wizard>