| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://resources/html/assert.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"> | |
| 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"> | |
| 6 <link rel="import" href="pref_control_behavior.html"> | |
| 7 | |
| 8 <dom-module id="settings-input"> | |
| 9 <template> | |
| 10 <style> | |
| 11 :host { | |
| 12 -webkit-margin-start: 4px; | |
| 13 cursor: auto; | |
| 14 display: inline-block; | |
| 15 } | |
| 16 </style> | |
| 17 <div id="outerDiv" class="layout horizontal center"> | |
| 18 <paper-input id="input" value="{{value}}" no-label-float label="[[label]]" | |
| 19 error-message="[[errorMessage]]" on-change="onChange_" | |
| 20 on-keydown="onKeydown_" disabled="[[isDisabled_(disabled, pref.*)]]" | |
| 21 stop-keyboard-event-propagation invalid="{{invalid}}" | |
| 22 tabindex$="[[getTabindex_(canTab)]]"> | |
| 23 </paper-input> | |
| 24 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> | |
| 25 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> | |
| 26 </cr-policy-pref-indicator> | |
| 27 </template> | |
| 28 </div> | |
| 29 </template> | |
| 30 <script src="settings_input.js"></script> | |
| 31 </dom-module> | |
| OLD | NEW |