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

Side by Side Diff: chrome/browser/resources/settings/appearance_page/home_url_input.html

Issue 2816883002: MD Settings: compose a <paper-radio-button> instead of wrapping one in <controlled-radio-button> (Closed)
Patch Set: fix tests Created 3 years, 8 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
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="../controls/pref_control_behavior.html"> 6 <link rel="import" href="../controls/pref_control_behavior.html">
7 <link rel="import" href="appearance_browser_proxy.html"> 7 <link rel="import" href="appearance_browser_proxy.html">
8 8
9 <dom-module id="home-url-input"> 9 <dom-module id="home-url-input">
10 <template> 10 <template>
11 <style> 11 <style>
12 :host { 12 :host {
13 -webkit-margin-start: 4px;
14 cursor: auto; 13 cursor: auto;
15 display: inline-block; 14 display: inline-block;
16 } 15 }
16
17 #outerDiv {
18 justify-content: space-between;
19 }
17 </style> 20 </style>
18 <div id="outerDiv" class="layout horizontal center"> 21 <div id="outerDiv" class="layout horizontal center">
19 <paper-input id="input" value="{{value}}" no-label-float 22 <paper-input id="input" value="{{value}}" no-label-float
20 label="$i18n{enterCustomWebAddress}" error-message="$i18n{notValid}" 23 label="$i18n{enterCustomWebAddress}" error-message="$i18n{notValid}"
21 on-change="onChange_" on-keydown="onKeydown_" on-input="validate_" 24 on-change="onChange_" on-keydown="onKeydown_" on-input="validate_"
22 invalid="{{invalid}}" tabindex$="[[getTabindex_(canTab)]]" 25 invalid="{{invalid}}" tabindex$="[[getTabindex_(canTab)]]"
23 disabled="[[isDisabled_(disabled, pref.*)]]" 26 disabled="[[isDisabled_(disabled, pref.*)]]"
24 stop-keyboard-event-propagation> 27 stop-keyboard-event-propagation>
25 </paper-input> 28 </paper-input>
26 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> 29 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]">
27 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> 30 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]">
28 </cr-policy-pref-indicator> 31 </cr-policy-pref-indicator>
29 </template> 32 </template>
30 </div> 33 </div>
31 </template> 34 </template>
32 <script src="home_url_input.js"></script> 35 <script src="home_url_input.js"></script>
33 </dom-module> 36 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698