| OLD | NEW |
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-i
conset-svg.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap
er-dropdown-menu.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
| 8 |
| 9 <iron-iconset-svg name="oobe-i18n-dropdown" size="24"> |
| 10 <svg> |
| 11 <defs> |
| 12 <!-- |
| 13 These icons are copied from Polymer's iron-icons and kept in sorted order. |
| 14 See http://goo.gl/Y1OdAq for instructions on adding additional icons. |
| 15 --> |
| 16 <g id="check"> |
| 17 <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"> |
| 18 </path> |
| 19 </g> |
| 20 </defs> |
| 21 </svg> |
| 22 </iron-iconset-svg> |
| 23 |
| 24 <dom-module id="oobe-i18n-dropdown"> |
| 25 <template> |
| 26 <style> |
| 27 .selected-icon { |
| 28 color: var(--google-blue-500); |
| 29 } |
| 30 </style> |
| 31 <paper-dropdown-menu no-label-float> |
| 32 <paper-listbox id="listboxDropdown" class="dropdown-content" |
| 33 on-iron-select="onSelect_" |
| 34 on-iron-deselect="onDeselect_"> |
| 35 <template is="dom-repeat" id="domRepeat" items="[[items]]"> |
| 36 <paper-item item="[[item]]" disabled="[[item.optionGroupName]]"> |
| 37 <div class="flex horizontal layout justified"> |
| 38 <div hidden="[[item.optionGroupName]]"> |
| 39 [[item.title]] |
| 40 </div> |
| 41 <iron-icon icon="oobe-i18n-dropdown:check" class="selected-icon" |
| 42 hidden="[[!item.selected]]"> |
| 43 </iron-icon> |
| 44 </div> |
| 45 <hr hidden="[[!item.optionGroupName]]"> |
| 46 </paper-item> |
| 47 </template> |
| 48 </paper-listbox> |
| 49 </paper-dropdown-menu> |
| 50 </template> |
| 51 </dom-module> |
| OLD | NEW |