Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: chrome/browser/resources/settings/people_page/manage_profile.html

Issue 2752373003: MD Settings: Make Escape blur and undo changes to input fields. (Closed)
Patch Set: fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 on-keydown="onProfileNameKeydown_"
22 disabled="[[isProfileNameDisabled_(syncStatus)]]"> 23 disabled="[[isProfileNameDisabled_(syncStatus)]]">
23 </paper-input> 24 </paper-input>
24 </div> 25 </div>
25 <template is="dom-if" if="[[isProfileShortcutSettingVisible_]]"> 26 <template is="dom-if" if="[[isProfileShortcutSettingVisible_]]">
26 <div class="settings-box first"> 27 <div class="settings-box first">
27 <div id="showShortcutLabel" class="flex">$i18n{showShortcutLabel}</div> 28 <div id="showShortcutLabel" class="flex">$i18n{showShortcutLabel}</div>
28 <paper-toggle-button id="hasShortcutToggle" 29 <paper-toggle-button id="hasShortcutToggle"
29 checked="{{hasProfileShortcut_}}" 30 checked="{{hasProfileShortcut_}}"
30 on-change="onHasProfileShortcutChange_" 31 on-change="onHasProfileShortcutChange_"
31 aria-labelledby="showShortcutLabel"> 32 aria-labelledby="showShortcutLabel">
32 </paper-toggle-button> 33 </paper-toggle-button>
33 </div> 34 </div>
34 </template> 35 </template>
35 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" 36 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]"
36 selected-avatar-url="{{profileIconUrl}}" 37 selected-avatar-url="{{profileIconUrl}}"
37 on-iron-activate="onIconActivate_" ignore-modified-key-events> 38 on-iron-activate="onIconActivate_" ignore-modified-key-events>
38 </cr-profile-avatar-selector> 39 </cr-profile-avatar-selector>
39 </template> 40 </template>
40 <script src="manage_profile.js"></script> 41 <script src="manage_profile.js"></script>
41 </dom-module> 42 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698