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

Side by Side Diff: chrome/browser/resources/settings/controls/settings_input.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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_input.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/assert.html"> 1 <link rel="import" href="chrome://resources/html/assert.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/polymer/v1_0/paper-input/paper-input .html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html"> 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html">
5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
6 <link rel="import" href="pref_control_behavior.html"> 6 <link rel="import" href="pref_control_behavior.html">
7 7
8 <dom-module id="settings-input"> 8 <dom-module id="settings-input">
9 <template> 9 <template>
10 <style> 10 <style>
11 :host { 11 :host {
12 -webkit-margin-start: 4px; 12 -webkit-margin-start: 4px;
13 cursor: auto; 13 cursor: auto;
14 display: inline-block; 14 display: inline-block;
15 } 15 }
16 </style> 16 </style>
17 <div id="outerDiv" class="layout horizontal center"> 17 <div id="outerDiv" class="layout horizontal center">
18 <paper-input id="input" auto-validate value="{{value}}" 18 <paper-input id="input" auto-validate value="{{value}}"
19 error-message="[[errorMessage]]" label="[[label]]" 19 error-message="[[errorMessage]]" label="[[label]]"
20 no-label-float="[[noLabelFloat]]" pattern="[[pattern]]" 20 no-label-float="[[noLabelFloat]]" pattern="[[pattern]]"
21 readonly$="[[readonly]]" required="[[required]]" type="[[type]]" 21 readonly$="[[readonly]]" required="[[required]]" type="[[type]]"
22 on-change="onChange_" disabled="[[isDisabled_(disabled, pref.*)]]" 22 on-change="onChange_" on-keydown="onKeydown_"
23 disabled="[[isDisabled_(disabled, pref.*)]]"
23 stop-keyboard-event-propagation$="[[stopKeyboardEventPropagation]]" 24 stop-keyboard-event-propagation$="[[stopKeyboardEventPropagation]]"
24 tabindex$="[[getTabindex_(canTab)]]"> 25 tabindex$="[[getTabindex_(canTab)]]">
25 </paper-input> 26 </paper-input>
26 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> 27 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]">
27 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> 28 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]">
28 </cr-policy-pref-indicator> 29 </cr-policy-pref-indicator>
29 </template> 30 </template>
30 </div> 31 </div>
31 </template> 32 </template>
32 <script src="settings_input.js"></script> 33 <script src="settings_input.js"></script>
33 </dom-module> 34 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_input.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698