| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h
tml"> | |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap
er-dropdown-menu.html"> | |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape
r-radio-button.html"> | |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper
-radio-group.html"> | |
| 9 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> | |
| 10 <link rel="import" href="chrome://md-settings/sync_page/sync_private_api.html"> | |
| 11 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | |
| 12 | |
| 13 <dom-module id="settings-sync-page"> | |
| 14 <link rel="import" type="css" | |
| 15 href="chrome://md-settings/settings_shared.css"> | |
| 16 <link rel="import" type="css" href="sync_page.css"> | |
| 17 <template> | |
| 18 <iron-pages id="pages" selected="loading" attr-for-selected="id"> | |
| 19 <div id="loading" i18n-content="syncLoading"></div> | |
| 20 <div id="timeout" i18n-content="syncTimeout"></div> | |
| 21 <div id="main"> | |
| 22 <div class="settings-box"> | |
| 23 <paper-checkbox checked="{{syncPrefs.syncAllDataTypes}}" | |
| 24 on-change="onSyncAllDataTypesChanged_"> | |
| 25 <span i18n-content="syncEverythingCheckboxLabel"> | |
| 26 </paper-checkbox> | |
| 27 | |
| 28 <div id="sync-item-list"> | |
| 29 <paper-checkbox checked="{{syncPrefs.appsSynced}}" | |
| 30 hidden="[[!syncPrefs.appsRegistered]]" | |
| 31 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.appsEnforced)]]"> | |
| 32 <span i18n-content="appCheckboxLabel"></span> | |
| 33 </paper-checkbox> | |
| 34 <paper-checkbox checked="{{syncPrefs.autofillSynced}}" | |
| 35 hidden="[[!syncPrefs.autofillRegistered]]" | |
| 36 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.autofillEnforced)]]"> | |
| 37 <span i18n-content="autofillCheckboxLabel"></span> | |
| 38 </paper-checkbox> | |
| 39 <paper-checkbox checked="{{syncPrefs.bookmarksSynced}}" | |
| 40 hidden="[[!syncPrefs.bookmarksRegistered]]" | |
| 41 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.bookmarksEnforced)]]"> | |
| 42 <span i18n-content="bookmarksCheckboxLabel"></span> | |
| 43 </paper-checkbox> | |
| 44 <paper-checkbox checked="{{syncPrefs.extensionsSynced}}" | |
| 45 hidden="[[!syncPrefs.extensionsRegistered]]" | |
| 46 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.extensionsEnforced)]]"> | |
| 47 <span i18n-content="extensionsCheckboxLabel"></span> | |
| 48 </paper-checkbox> | |
| 49 <paper-checkbox checked="{{syncPrefs.typedUrlsSynced}}" | |
| 50 hidden="[[!syncPrefs.typedUrlsRegistered]]" | |
| 51 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.typedUrlsEnforced)]]"> | |
| 52 <span i18n-content="historyCheckboxLabel"></span> | |
| 53 </paper-checkbox> | |
| 54 <paper-checkbox checked="{{syncPrefs.passwordsSynced}}" | |
| 55 hidden="[[!syncPrefs.passwordsRegistered]]" | |
| 56 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.passwordsEnforced)]]"> | |
| 57 <span i18n-content="passwordsCheckboxLabel"></span> | |
| 58 </paper-checkbox> | |
| 59 <paper-checkbox checked="{{syncPrefs.preferencesSynced}}" | |
| 60 hidden="[[!syncPrefs.preferencesRegistered]]" | |
| 61 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.preferencesEnforced)]]"> | |
| 62 <span i18n-content="settingsCheckboxLabel"></span> | |
| 63 </paper-checkbox> | |
| 64 <paper-checkbox checked="{{syncPrefs.themesSynced}}" | |
| 65 hidden="[[!syncPrefs.themesRegistered]]" | |
| 66 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.themesEnforced)]]"> | |
| 67 <span i18n-content="themesAndWallpapersCheckboxLabel"></span> | |
| 68 </paper-checkbox> | |
| 69 <paper-checkbox checked="{{syncPrefs.tabsSynced}}" | |
| 70 hidden="[[!syncPrefs.tabsRegistered]]" | |
| 71 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.tabsEnforced)]]"> | |
| 72 <span i18n-content="openTabsCheckboxLabel"></span> | |
| 73 </paper-checkbox> | |
| 74 </div> | |
| 75 </div> | |
| 76 | |
| 77 <div class="settings-box"> | |
| 78 <h2 i18n-content="encryptionOptionsTitle"></h2> | |
| 79 <p i18n-content="syncDataEncryptedText"></p> | |
| 80 | |
| 81 <template is="dom-if" if="[[!syncPrefs.showPassphrase]]"> | |
| 82 <paper-radio-group id="encryptRadioGroup" | |
| 83 selected="[[selectedEncryptionRadio_(syncPrefs.usePassphrase, sy
ncPrefs.encryptAllData)]]" | |
| 84 on-paper-radio-group-changed="onEncryptionRadioSelectionChanged_
"> | |
| 85 <paper-radio-button name="encrypt-with-google" | |
| 86 disabled="[[encryptionRadiosDisabled_(syncPrefs.usePassphrase,
syncPrefs.encryptAllData)]]"> | |
| 87 <span>[[i18n('encryptWithGoogleCredentialsLabel')]]</span> | |
| 88 </paper-radio-button> | |
| 89 <paper-radio-button name="encrypt-with-passphrase" | |
| 90 disabled="[[encryptionRadiosDisabled_(syncPrefs.usePassphrase,
syncPrefs.encryptAllData)]]"> | |
| 91 <span>[[encryptWithPassphraseBody_(syncPrefs.fullEncryptionBody)
]]</span> | |
| 92 </paper-radio-button> | |
| 93 </paper-radio-group> | |
| 94 </template> | |
| 95 | |
| 96 <template is="dom-if" if="[[creatingNewPassphrase]]"> | |
| 97 <div>[[i18n('passphraseExplanationText')]]</div> | |
| 98 <paper-input id="passphraseInput" type="password" | |
| 99 placeholder="[[i18n('passphrasePlaceholder')]]"> | |
| 100 </paper-input> | |
| 101 <paper-input id="passphraseConfirmationInput" type="password" | |
| 102 placeholder="[[i18n('passphraseConfirmationPlaceholder')]]"> | |
| 103 </paper-input> | |
| 104 <div id="emptyPassphraseError" hidden>[[i18n('emptyPassphraseError')
]]</div> | |
| 105 <div id="mismatchedPassphraseError" hidden>[[i18n('mismatchedPassphr
aseError')]]</div> | |
| 106 </template> | |
| 107 | |
| 108 <template is="dom-if" if="[[syncPrefs.showPassphrase]]"> | |
| 109 <div id="askCustomPassphraseMessage" | |
| 110 hidden="[[askOldGooglePassphrase]]">[[syncPrefs.enterPassphraseB
ody]]</div> | |
| 111 <div id="askOldGooglePassphraseMessage" | |
| 112 hidden="[[!askOldGooglePassphrase]]">[[syncPrefs.enterGooglePass
phraseBody]]</div> | |
| 113 <paper-input id="existingPassphraseInput" type="password" | |
| 114 placeholder="[[i18n('passphrasePlaceholder')]]"> | |
| 115 </paper-input> | |
| 116 <div id="incorrectPassphraseError" hidden>[[i18n('incorrectPassphras
eError')]]</div> | |
| 117 </template> | |
| 118 </div> | |
| 119 | |
| 120 <div class="settings-box"> | |
| 121 <paper-button i18n-content="cancelButton" on-tap="onCancelTap_"> | |
| 122 </paper-button> | |
| 123 <paper-button i18n-content="okButton" on-tap="onOkTap_" raised> | |
| 124 </paper-button> | |
| 125 </div> | |
| 126 </div> | |
| 127 </iron-pages> | |
| 128 </template> | |
| 129 <script src="sync_page.js"></script> | |
| 130 </dom-module> | |
| OLD | NEW |