| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 |
| 1 <link rel="import" href="chrome://resources/html/assert.html"> | 3 <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/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_be
havior.html"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.html"> | 6 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.html"> |
| 6 <link rel="import" href="../controls/pref_control_behavior.html"> | 7 <link rel="import" href="../controls/pref_control_behavior.html"> |
| 7 <link rel="import" href="appearance_browser_proxy.html"> | 8 <link rel="import" href="appearance_browser_proxy.html"> |
| 8 | 9 |
| 9 <dom-module id="home-url-input"> | 10 <dom-module id="home-url-input"> |
| 10 <template> | 11 <template> |
| 11 <style> | 12 <style> |
| 12 :host { | 13 :host { |
| 13 cursor: auto; | 14 cursor: auto; |
| 14 display: inline-block; | 15 display: inline-block; |
| 15 } | 16 } |
| 16 | 17 |
| 17 #outerDiv { | 18 #outerDiv { |
| 18 justify-content: space-between; | 19 justify-content: space-between; |
| 19 } | 20 } |
| 20 </style> | 21 </style> |
| 21 <div id="outerDiv" class="layout horizontal center"> | 22 <div id="outerDiv" class="settings-row"> |
| 22 <paper-input id="input" value="{{value}}" no-label-float | 23 <paper-input id="input" value="{{value}}" no-label-float |
| 23 label="$i18n{enterCustomWebAddress}" error-message="$i18n{notValid}" | 24 label="$i18n{enterCustomWebAddress}" error-message="$i18n{notValid}" |
| 24 on-change="onChange_" on-keydown="onKeydown_" on-input="validate_" | 25 on-change="onChange_" on-keydown="onKeydown_" on-input="validate_" |
| 25 invalid="{{invalid}}" tabindex$="[[getTabindex_(canTab)]]" | 26 invalid="{{invalid}}" tabindex$="[[getTabindex_(canTab)]]" |
| 26 disabled="[[isDisabled_(disabled, pref.*)]]" | 27 disabled="[[isDisabled_(disabled, pref.*)]]" |
| 27 stop-keyboard-event-propagation> | 28 stop-keyboard-event-propagation> |
| 28 </paper-input> | 29 </paper-input> |
| 29 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> | 30 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> |
| 30 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> | 31 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> |
| 31 </cr-policy-pref-indicator> | 32 </cr-policy-pref-indicator> |
| 32 </template> | 33 </template> |
| 33 </div> | 34 </div> |
| 34 </template> | 35 </template> |
| 35 <script src="home_url_input.js"></script> | 36 <script src="home_url_input.js"></script> |
| 36 </dom-module> | 37 </dom-module> |
| OLD | NEW |