OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be
havior.html"> | 3 <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_in
dicator.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.html"> |
5 <link rel="import" href="/controls/pref_control_behavior.html"> | 5 <link rel="import" href="/controls/pref_control_behavior.html"> |
6 | 6 |
7 <dom-module id="settings-input"> | 7 <dom-module id="settings-input"> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 :host { | 10 :host { |
11 -webkit-margin-start: 4px; | 11 -webkit-margin-start: 4px; |
12 cursor: auto; | 12 cursor: auto; |
13 display: inline-block; | 13 display: inline-block; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <div id="outerDiv" class="layout horizontal center"> | 16 <div id="outerDiv" class="layout horizontal center"> |
17 <paper-input id="input" auto-validate value="{{value}}" | 17 <paper-input id="input" auto-validate value="{{value}}" |
18 error-message="[[errorMessage]]" label="[[label]]" | 18 error-message="[[errorMessage]]" label="[[label]]" |
19 no-label-float="[[noLabelFloat]]" pattern="[[pattern]]" | 19 no-label-float="[[noLabelFloat]]" pattern="[[pattern]]" |
20 readonly$="[[readonly]]" required="[[required]]" type="[[type]]" | 20 readonly$="[[readonly]]" required="[[required]]" type="[[type]]" |
21 on-blur="onBlur_" disabled="[[isDisabled_(disabled, pref)]]" | 21 on-blur="onBlur_" disabled="[[isDisabled_(disabled, pref)]]" |
22 stop-keyboard-event-propagation$="[[stopKeyboardEventPropagation]]" | 22 stop-keyboard-event-propagation$="[[stopKeyboardEventPropagation]]" |
23 tabindex$="[[getTabindex_(canTab)]]"> | 23 tabindex$="[[getTabindex_(canTab)]]"> |
24 </paper-input> | 24 </paper-input> |
25 <template is="dom-if" if="[[pref.policySource]]"> | 25 <template is="dom-if" if="[[pref.contolledBy]]"> |
26 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> | 26 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> |
27 </template> | 27 </template> |
28 </div> | 28 </div> |
29 </template> | 29 </template> |
30 <script src="settings_input.js"></script> | 30 <script src="settings_input.js"></script> |
31 </dom-module> | 31 </dom-module> |
OLD | NEW |