| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 7 <link rel="import" href="../i18n_setup.html"> | 7 <link rel="import" href="../i18n_setup.html"> |
| 8 <link rel="import" href="manage_profile_browser_proxy.html"> | 8 <link rel="import" href="manage_profile_browser_proxy.html"> |
| 9 <link rel="import" href="../route.html"> | 9 <link rel="import" href="../route.html"> |
| 10 <link rel="import" href="../settings_shared_css.html"> | 10 <link rel="import" href="../settings_shared_css.html"> |
| 11 | 11 |
| 12 <dom-module id="settings-manage-profile"> | 12 <dom-module id="settings-manage-profile"> |
| 13 <template> | 13 <template> |
| 14 <style include="settings-shared"> | 14 <style include="settings-shared"> |
| 15 #selector { | 15 #selector { |
| 16 margin: 16px 20px; | 16 margin: 16px 20px; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <div class="settings-box first"> | 19 <div class="settings-box first"> |
| 20 <paper-input id="name" value="[[profileName]]" pattern=".*\S.*" | 20 <paper-input id="name" value="[[profileName]]" pattern=".*\S.*" |
| 21 auto-validate required on-change="onProfileNameChanged_" | 21 auto-validate required on-change="onProfileNameChanged_" |
| 22 disabled="[[isProfileNameDisabled_(syncStatus)]]"> | 22 disabled="[[isProfileNameDisabled_(syncStatus)]]"> |
| 23 </paper-input> | 23 </paper-input> |
| 24 </div> | 24 </div> |
| 25 <template is="dom-if" if="[[isProfileShortcutSettingVisible_]]"> | 25 <template is="dom-if" if="[[isProfileShortcutSettingVisible_]]"> |
| 26 <div class="settings-box first"> | 26 <div class="settings-box first"> |
| 27 <div class="flex">$i18n{showShortcutLabel}</div> | 27 <div id="showShortcutLabel" class="flex">$i18n{showShortcutLabel}</div> |
| 28 <paper-toggle-button id="hasShortcutToggle" | 28 <paper-toggle-button id="hasShortcutToggle" |
| 29 checked="{{hasProfileShortcut_}}" | 29 checked="{{hasProfileShortcut_}}" |
| 30 on-change="onHasProfileShortcutChange_"> | 30 on-change="onHasProfileShortcutChange_" |
| 31 aria-labelledby="showShortcutLabel"> |
| 31 </paper-toggle-button> | 32 </paper-toggle-button> |
| 32 </div> | 33 </div> |
| 33 </template> | 34 </template> |
| 34 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" | 35 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" |
| 35 selected-avatar-url="{{profileIconUrl}}" | 36 selected-avatar-url="{{profileIconUrl}}" |
| 36 on-iron-activate="onIconActivate_" ignore-modified-key-events> | 37 on-iron-activate="onIconActivate_" ignore-modified-key-events> |
| 37 </cr-profile-avatar-selector> | 38 </cr-profile-avatar-selector> |
| 38 </template> | 39 </template> |
| 39 <script src="manage_profile.js"></script> | 40 <script src="manage_profile.js"></script> |
| 40 </dom-module> | 41 </dom-module> |
| OLD | NEW |