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

Side by Side Diff: chrome/browser/resources/settings/controls/settings_dropdown_menu.html

Issue 2224613003: Switch MD Settings to paper-dropdown-menu-light (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RollPaperDropdown
Patch Set: rebase Created 4 years, 3 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/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu-light.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis tbox.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis tbox.html">
4 <link rel="import" href="/controls/pref_control_behavior.html"> 4 <link rel="import" href="/controls/pref_control_behavior.html">
5 <link rel="import" href="/i18n_setup.html"> 5 <link rel="import" href="/i18n_setup.html">
6 <link rel="import" href="/prefs/pref_util.html"> 6 <link rel="import" href="/prefs/pref_util.html">
7 <link rel="import" href="/settings_shared_css.html"> 7 <link rel="import" href="/settings_shared_css.html">
8 8
9 <dom-module id="settings-dropdown-menu"> 9 <dom-module id="settings-dropdown-menu">
10 <template> 10 <template>
11 <style include="settings-shared"> 11 <style include="settings-shared"></style>
12 </style> 12 <paper-dropdown-menu-light id="dropdownMenu" label="[[menuLabel_]]"
13 <paper-dropdown-menu id="dropdownMenu" label="[[menuLabel_]]" 13 on-iron-select="onSelect_" no-label-float vertical-align="auto"
14 vertical-align="auto"
15 on-iron-select="onSelect_" no-label-float$="[[noLabelFloat]]"
16 disabled="[[shouldDisableMenu_(disabled, menuOptions.*)]]"> 14 disabled="[[shouldDisableMenu_(disabled, menuOptions.*)]]">
17 <paper-listbox class="dropdown-content" selected="{{selected_}}" 15 <paper-listbox class="dropdown-content" selected="{{selected_}}"
18 attr-for-selected="data-value"> 16 attr-for-selected="data-value">
19 <template is="dom-repeat" items="[[menuOptions]]" initial-count="5"> 17 <template is="dom-repeat" items="[[menuOptions]]" initial-count="5">
20 <button class="dropdown-item" role="option" 18 <button class="dropdown-item" role="option"
21 data-value$="[[item.value]]"> 19 data-value$="[[item.value]]">
22 [[item.name]] 20 [[item.name]]
23 </button> 21 </button>
24 </template> 22 </template>
25 <button class="dropdown-item" role="option" 23 <button class="dropdown-item" role="option"
26 data-value$="[[notFoundValue_]]" 24 data-value$="[[notFoundValue_]]"
27 hidden$="[[!isSelectedNotFound_(selected_)]]"> 25 hidden$="[[!isSelectedNotFound_(selected_)]]">
28 $i18n{custom} 26 $i18n{custom}
29 </button> 27 </button>
30 </paper-listbox> 28 </paper-listbox>
31 </paper-dropdown-menu> 29 </paper-dropdown-menu-light>
32 </template> 30 </template>
33 <script src="settings_dropdown_menu.js"></script> 31 <script src="settings_dropdown_menu.js"></script>
34 </dom-module> 32 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698