| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h
tml"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h
tml"> |
| 4 <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-button/paper-butt
on.html"> |
| 5 <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-checkbox/paper-ch
eckbox.html"> |
| 6 <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-dropdown-menu/pap
er-dropdown-menu.html"> |
| 7 <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-input/paper-input
.html"> |
| 8 <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-button/pape
r-radio-button.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper
-radio-group.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper
-radio-group.html"> |
| 10 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> | 10 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> |
| 11 <link rel="import" href="chrome://md-settings/people_page/sync_browser_proxy.htm
l"> | 11 <link rel="import" href="chrome://md-settings/people_page/sync_browser_proxy.htm
l"> |
| 12 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 12 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
| 13 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 13 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 14 | 14 |
| 15 <dom-module id="settings-sync-page"> | 15 <dom-module id="settings-sync-page"> |
| 16 <template> | 16 <template> |
| 17 <style include="settings-shared"> | 17 <style include="settings-shared"> |
| 18 #password-box { | 18 #password-box { |
| 19 /* 72px lines the password fields up with encryption radio box text. */ | 19 /* 72px lines the password fields up with encryption radio box text. */ |
| 20 -webkit-margin-start: 72px; | 20 -webkit-margin-start: 72px; |
| 21 } | 21 } |
| 22 | 22 |
| 23 paper-input { | 23 paper-input { |
| 24 width: var(--paper-input-max-width); | 24 width: var(--paper-input-max-width); |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <iron-pages id="pages" selected="loading" attr-for-selected="id"> | 27 <iron-pages id="pages" selected="loading" attr-for-selected="id"> |
| 28 <div id="loading" i18n-content="syncLoading"></div> | 28 <div id="loading">$i18n{syncLoading}</div> |
| 29 <div id="timeout" i18n-content="syncTimeout"></div> | 29 <div id="timeout">$i18n{syncTimeout}</div> |
| 30 <div id="main"> | 30 <div id="main"> |
| 31 <div class="settings-box first block"> | 31 <div class="settings-box first block"> |
| 32 <paper-checkbox checked="{{syncPrefs.syncAllDataTypes}}" | 32 <paper-checkbox checked="{{syncPrefs.syncAllDataTypes}}" |
| 33 on-change="onSyncAllDataTypesChanged_"> | 33 on-change="onSyncAllDataTypesChanged_"> |
| 34 <span i18n-content="syncEverythingCheckboxLabel"> | 34 $i18n{syncEverythingCheckboxLabel} |
| 35 </paper-checkbox> | 35 </paper-checkbox> |
| 36 | 36 |
| 37 <div class="list-frame"> | 37 <div class="list-frame"> |
| 38 <paper-checkbox checked="{{syncPrefs.appsSynced}}" | 38 <paper-checkbox checked="{{syncPrefs.appsSynced}}" |
| 39 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 39 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 40 hidden="[[!syncPrefs.appsRegistered]]" | 40 hidden="[[!syncPrefs.appsRegistered]]" |
| 41 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.appsEnforced)]]"> | 41 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.appsEnforced)]]"> |
| 42 <span i18n-content="appCheckboxLabel"></span> | 42 $i18n{appCheckboxLabel} |
| 43 </paper-checkbox> | 43 </paper-checkbox> |
| 44 <paper-checkbox checked="{{syncPrefs.autofillSynced}}" | 44 <paper-checkbox checked="{{syncPrefs.autofillSynced}}" |
| 45 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 45 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 46 hidden="[[!syncPrefs.autofillRegistered]]" | 46 hidden="[[!syncPrefs.autofillRegistered]]" |
| 47 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.autofillEnforced)]]"> | 47 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.autofillEnforced)]]"> |
| 48 <span i18n-content="autofillCheckboxLabel"></span> | 48 $i18n{autofillCheckboxLabel} |
| 49 </paper-checkbox> | 49 </paper-checkbox> |
| 50 <paper-checkbox checked="{{syncPrefs.bookmarksSynced}}" | 50 <paper-checkbox checked="{{syncPrefs.bookmarksSynced}}" |
| 51 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 51 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 52 hidden="[[!syncPrefs.bookmarksRegistered]]" | 52 hidden="[[!syncPrefs.bookmarksRegistered]]" |
| 53 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.bookmarksEnforced)]]"> | 53 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.bookmarksEnforced)]]"> |
| 54 <span i18n-content="bookmarksCheckboxLabel"></span> | 54 $i18n{bookmarksCheckboxLabel} |
| 55 </paper-checkbox> | 55 </paper-checkbox> |
| 56 <paper-checkbox checked="{{syncPrefs.extensionsSynced}}" | 56 <paper-checkbox checked="{{syncPrefs.extensionsSynced}}" |
| 57 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 57 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 58 hidden="[[!syncPrefs.extensionsRegistered]]" | 58 hidden="[[!syncPrefs.extensionsRegistered]]" |
| 59 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.extensionsEnforced)]]"> | 59 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.extensionsEnforced)]]"> |
| 60 <span i18n-content="extensionsCheckboxLabel"></span> | 60 $i18n{extensionsCheckboxLabel} |
| 61 </paper-checkbox> | 61 </paper-checkbox> |
| 62 <paper-checkbox checked="{{syncPrefs.typedUrlsSynced}}" | 62 <paper-checkbox checked="{{syncPrefs.typedUrlsSynced}}" |
| 63 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 63 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 64 hidden="[[!syncPrefs.typedUrlsRegistered]]" | 64 hidden="[[!syncPrefs.typedUrlsRegistered]]" |
| 65 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.typedUrlsEnforced)]]"> | 65 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.typedUrlsEnforced)]]"> |
| 66 <span i18n-content="historyCheckboxLabel"></span> | 66 $i18n{historyCheckboxLabel} |
| 67 </paper-checkbox> | 67 </paper-checkbox> |
| 68 <paper-checkbox checked="{{syncPrefs.passwordsSynced}}" | 68 <paper-checkbox checked="{{syncPrefs.passwordsSynced}}" |
| 69 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 69 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 70 hidden="[[!syncPrefs.passwordsRegistered]]" | 70 hidden="[[!syncPrefs.passwordsRegistered]]" |
| 71 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.passwordsEnforced)]]"> | 71 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.passwordsEnforced)]]"> |
| 72 <span i18n-content="passwordsCheckboxLabel"></span> | 72 $i18n{passwordsCheckboxLabel} |
| 73 </paper-checkbox> | 73 </paper-checkbox> |
| 74 <paper-checkbox checked="{{syncPrefs.preferencesSynced}}" | 74 <paper-checkbox checked="{{syncPrefs.preferencesSynced}}" |
| 75 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 75 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 76 hidden="[[!syncPrefs.preferencesRegistered]]" | 76 hidden="[[!syncPrefs.preferencesRegistered]]" |
| 77 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.preferencesEnforced)]]"> | 77 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.preferencesEnforced)]]"> |
| 78 <span i18n-content="settingsCheckboxLabel"></span> | 78 $i18n{settingsCheckboxLabel} |
| 79 </paper-checkbox> | 79 </paper-checkbox> |
| 80 <paper-checkbox checked="{{syncPrefs.themesSynced}}" | 80 <paper-checkbox checked="{{syncPrefs.themesSynced}}" |
| 81 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 81 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 82 hidden="[[!syncPrefs.themesRegistered]]" | 82 hidden="[[!syncPrefs.themesRegistered]]" |
| 83 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.themesEnforced)]]"> | 83 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.themesEnforced)]]"> |
| 84 <span i18n-content="themesAndWallpapersCheckboxLabel"></span> | 84 $i18n{themesAndWallpapersCheckboxLabel} |
| 85 </paper-checkbox> | 85 </paper-checkbox> |
| 86 <paper-checkbox checked="{{syncPrefs.tabsSynced}}" | 86 <paper-checkbox checked="{{syncPrefs.tabsSynced}}" |
| 87 on-change="onSingleSyncDataTypeChanged_" class="list-item" | 87 on-change="onSingleSyncDataTypeChanged_" class="list-item" |
| 88 hidden="[[!syncPrefs.tabsRegistered]]" | 88 hidden="[[!syncPrefs.tabsRegistered]]" |
| 89 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.tabsEnforced)]]"> | 89 disabled="[[shouldSyncCheckboxBeDisabled_(syncPrefs.syncAllDataT
ypes, syncPrefs.tabsEnforced)]]"> |
| 90 <span i18n-content="openTabsCheckboxLabel"></span> | 90 $i18n{openTabsCheckboxLabel} |
| 91 </paper-checkbox> | 91 </paper-checkbox> |
| 92 </div> | 92 </div> |
| 93 </div> | 93 </div> |
| 94 | 94 |
| 95 <div class="settings-box two-line"> | 95 <div class="settings-box two-line"> |
| 96 <div class="start"> | 96 <div class="start"> |
| 97 $i18n{encryptionOptionsTitle} | 97 $i18n{encryptionOptionsTitle} |
| 98 <div class="secondary"> | 98 <div class="secondary"> |
| 99 $i18n{syncDataEncryptedText} | 99 $i18n{syncDataEncryptedText} |
| 100 </div> | 100 </div> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 class="action-button"> | 152 class="action-button"> |
| 153 $i18n{submitPassphraseButton} | 153 $i18n{submitPassphraseButton} |
| 154 </paper-button> | 154 </paper-button> |
| 155 </template> | 155 </template> |
| 156 </div> | 156 </div> |
| 157 </div> | 157 </div> |
| 158 </iron-pages> | 158 </iron-pages> |
| 159 </template> | 159 </template> |
| 160 <script src="sync_page.js"></script> | 160 <script src="sync_page.js"></script> |
| 161 </dom-module> | 161 </dom-module> |
| OLD | NEW |