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