| OLD | NEW |
| 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" value="{{value}}" no-label-float label="[[label]]" |
| 19 error-message="[[errorMessage]]" label="[[label]]" | 19 error-message="[[errorMessage]]" on-change="onChange_" |
| 20 no-label-float="[[noLabelFloat]]" pattern="[[pattern]]" | 20 on-keydown="onKeydown_" disabled="[[isDisabled_(disabled, pref.*)]]" |
| 21 readonly$="[[readonly]]" required="[[required]]" type="[[type]]" | 21 stop-keyboard-event-propagation invalid="{{invalid}}" |
| 22 on-change="onChange_" on-keydown="onKeydown_" | |
| 23 disabled="[[isDisabled_(disabled, pref.*)]]" | |
| 24 stop-keyboard-event-propagation$="[[stopKeyboardEventPropagation]]" | |
| 25 tabindex$="[[getTabindex_(canTab)]]"> | 22 tabindex$="[[getTabindex_(canTab)]]"> |
| 26 </paper-input> | 23 </paper-input> |
| 27 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> | 24 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> |
| 28 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> | 25 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> |
| 29 </cr-policy-pref-indicator> | 26 </cr-policy-pref-indicator> |
| 30 </template> | 27 </template> |
| 31 </div> | 28 </div> |
| 32 </template> | 29 </template> |
| 33 <script src="settings_input.js"></script> | 30 <script src="settings_input.js"></script> |
| 34 </dom-module> | 31 </dom-module> |
| OLD | NEW |