browser/base/content/sync/addDevice.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     4    - License, v. 2.0. If a copy of the MPL was not distributed with this
     5    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
     8 <?xml-stylesheet href="chrome://browser/skin/syncSetup.css" type="text/css"?>
     9 <?xml-stylesheet href="chrome://browser/skin/syncCommon.css" type="text/css"?>
    11 <!DOCTYPE window [
    12 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    13 <!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
    14 <!ENTITY % syncSetupDTD SYSTEM "chrome://browser/locale/syncSetup.dtd">
    15 %brandDTD;
    16 %syncBrandDTD;
    17 %syncSetupDTD;
    18 ]>
    19 <wizard xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    20         xmlns:html="http://www.w3.org/1999/xhtml"
    21         id="wizard"
    22         title="&pairDevice.title.label;"
    23         windowtype="Sync:AddDevice"
    24         persist="screenX screenY"
    25         onwizardnext="return gSyncAddDevice.onWizardAdvance();"
    26         onwizardback="return gSyncAddDevice.onWizardBack();"
    27         onwizardcancel="gSyncAddDevice.onWizardCancel();"
    28         onload="gSyncAddDevice.init();">
    30   <script type="application/javascript"
    31           src="chrome://browser/content/sync/addDevice.js"/>
    32   <script type="application/javascript"
    33           src="chrome://browser/content/sync/utils.js"/>
    34   <script type="application/javascript"
    35           src="chrome://browser/content/utilityOverlay.js"/>
    36   <script type="application/javascript"
    37           src="chrome://global/content/printUtils.js"/>
    39   <wizardpage id="addDevicePage"
    40               label="&pairDevice.title.label;"
    41               onpageshow="gSyncAddDevice.onPageShow();">
    42     <description>
    43       &pairDevice.dialog.description.label;
    44       <label class="text-link"
    45              value="&addDevice.showMeHow.label;"
    46              href="https://services.mozilla.com/sync/help/add-device"/>
    47     </description>
    48     <separator class="groove-thin"/>
    49     <description>
    50       &addDevice.dialog.enterCode.label;
    51     </description>
    52     <separator class="groove-thin"/>
    53     <vbox align="center">
    54       <textbox id="pin1"
    55                class="pin"
    56                oninput="gSyncAddDevice.onTextBoxInput(this);"
    57                onfocus="this.select();"
    58                />
    59       <textbox id="pin2"
    60                class="pin"
    61                oninput="gSyncAddDevice.onTextBoxInput(this);"
    62                onfocus="this.select();"
    63                />
    64       <textbox id="pin3"
    65                class="pin"
    66                oninput="gSyncAddDevice.onTextBoxInput(this);"
    67                onfocus="this.select();" 
    68               />
    69     </vbox>
    70     <separator class="groove-thin"/>
    71     <vbox id="pairDeviceThrobber" align="center" hidden="true">
    72       <image/>
    73     </vbox>
    74     <hbox id="errorRow" pack="center" hidden="true">
    75       <image class="statusIcon" status="error"/>
    76       <label class="status"
    77              value="&addDevice.dialog.tryAgain.label;"/>
    78     </hbox>
    79     <spacer flex="3"/>
    80     <label class="text-link"
    81            value="&addDevice.dontHaveDevice.label;"
    82            onclick="gSyncAddDevice.goToSyncKeyPage();"/>
    83   </wizardpage>
    85   <!-- Need a non-empty label here, otherwise we get a default label on Mac -->
    86   <wizardpage id="syncKeyPage"
    87               label=" "
    88               onpageshow="gSyncAddDevice.onPageShow();">
    89     <description>
    90       &addDevice.dialog.recoveryKey.label;
    91     </description>
    92     <spacer/>
    94     <groupbox>
    95       <label value="&recoveryKeyEntry.label;"
    96              accesskey="&recoveryKeyEntry.accesskey;"
    97              control="weavePassphrase"/>
    98       <textbox id="weavePassphrase"
    99                readonly="true"/>
   100     </groupbox>
   102     <groupbox align="center">
   103       <description>&recoveryKeyBackup.description;</description>
   104       <hbox>
   105         <button id="printSyncKeyButton"
   106                 label="&button.syncKeyBackup.print.label;"
   107                 accesskey="&button.syncKeyBackup.print.accesskey;"
   108                 oncommand="gSyncUtils.passphrasePrint('weavePassphrase');"/>
   109         <button id="saveSyncKeyButton"
   110                 label="&button.syncKeyBackup.save.label;"
   111                 accesskey="&button.syncKeyBackup.save.accesskey;"
   112                 oncommand="gSyncUtils.passphraseSave('weavePassphrase');"/>
   113       </hbox>
   114     </groupbox>
   115   </wizardpage>
   117   <wizardpage id="deviceConnectedPage"
   118               label="&addDevice.dialog.connected.label;"
   119               onpageshow="gSyncAddDevice.onPageShow();">
   120     <vbox align="center">
   121       <image id="successPageIcon"/>
   122     </vbox>
   123     <separator/>
   124     <description class="normal">
   125       &addDevice.dialog.successful.label;
   126     </description>
   127   </wizardpage>
   129 </wizard>

mercurial