| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/md_select_css.html"> |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="/controls/pref_control_behavior.html"> | 3 <link rel="import" href="/controls/pref_control_behavior.html"> |
| 3 <link rel="import" href="/i18n_setup.html"> | 4 <link rel="import" href="/i18n_setup.html"> |
| 4 <link rel="import" href="/md_select_css.html"> | |
| 5 <link rel="import" href="/prefs/pref_util.html"> | 5 <link rel="import" href="/prefs/pref_util.html"> |
| 6 <link rel="import" href="/settings_shared_css.html"> | 6 <link rel="import" href="/settings_shared_css.html"> |
| 7 <link rel="import" href="/settings_vars_css.html"> |
| 7 | 8 |
| 8 <dom-module id="settings-dropdown-menu"> | 9 <dom-module id="settings-dropdown-menu"> |
| 9 <template> | 10 <template> |
| 10 <style include="settings-shared md-select"> | 11 <style include="settings-shared md-select"> |
| 11 /* Hide "Custom" value when unselectable. */ | 12 /* Hide "Custom" value when unselectable. */ |
| 12 option:disabled { | 13 option:disabled { |
| 13 display: none; | 14 display: none; |
| 14 } | 15 } |
| 15 </style> | 16 </style> |
| 16 <div class="md-select-wrapper"> | 17 <div class="md-select-wrapper"> |
| 17 <select class="md-select" id="dropdownMenu" on-change="onChange_" | 18 <select class="md-select" id="dropdownMenu" on-change="onChange_" |
| 18 disabled="[[shouldDisableMenu_(disabled, menuOptions)]]"> | 19 disabled="[[shouldDisableMenu_(disabled, menuOptions)]]"> |
| 19 <template is="dom-repeat" items="[[menuOptions]]"> | 20 <template is="dom-repeat" items="[[menuOptions]]"> |
| 20 <option value="[[item.value]]">[[item.name]]</option> | 21 <option value="[[item.value]]">[[item.name]]</option> |
| 21 </template> | 22 </template> |
| 22 <option value="[[notFoundValue_]]" | 23 <option value="[[notFoundValue_]]" |
| 23 disabled="[[!showNotFoundValue_(menuOptions, pref.value)]]"> | 24 disabled="[[!showNotFoundValue_(menuOptions, pref.value)]]"> |
| 24 $i18n{custom} | 25 $i18n{custom} |
| 25 </option> | 26 </option> |
| 26 </select> | 27 </select> |
| 27 <span class="md-select-underline"></span> | 28 <span class="md-select-underline"></span> |
| 28 </div> | 29 </div> |
| 29 </template> | 30 </template> |
| 30 <script src="settings_dropdown_menu.js"></script> | 31 <script src="settings_dropdown_menu.js"></script> |
| 31 </dom-module> | 32 </dom-module> |
| OLD | NEW |