| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon
/iron-icon.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon
/iron-icon.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> | |
| 9 | 8 |
| 10 <dom-module id="settings-edit-dictionary-page"> | 9 <dom-module id="settings-edit-dictionary-page"> |
| 11 <link rel="import" type="css" href="chrome://md-settings/settings_shared.css"> | 10 <link rel="import" type="css" href="chrome://md-settings/settings_shared.css"> |
| 12 <link rel="import" type="css" href="edit_dictionary_page.css"> | 11 <link rel="import" type="css" href="edit_dictionary_page.css"> |
| 13 <template> | 12 <template> |
| 14 <div class="settings-box"> | 13 <div class="settings-box block"> |
| 15 <div id="addWordRow"> | 14 <div id="addWordRow"> |
| 16 <iron-a11y-keys id="keys" keys="enter esc" | 15 <iron-a11y-keys id="keys" keys="enter esc" |
| 17 on-keys-pressed="onKeysPress_"></iron-a11y-keys> | 16 on-keys-pressed="onKeysPress_"></iron-a11y-keys> |
| 18 <paper-input id="newWord" no-label-float | 17 <paper-input id="newWord" no-label-float |
| 19 i18n-values="label:addDictionaryWordLabel"></paper-input> | 18 i18n-values="label:addDictionaryWordLabel"></paper-input> |
| 20 <paper-button on-tap="onAddWordTap_" | 19 <paper-button on-tap="onAddWordTap_" |
| 21 i18n-content="addDictionaryWordButton"></paper-button> | 20 i18n-content="addDictionaryWordButton"></paper-button> |
| 22 </div> | 21 </div> |
| 22 </div> |
| 23 <div class="settings-box block"> |
| 23 <h2 i18n-content="customDictionaryWords"></h2> | 24 <h2 i18n-content="customDictionaryWords"></h2> |
| 24 <iron-list id="list" items="{{words_}}"> | 25 <div class="list-frame"> |
| 25 <template> | 26 <iron-list id="list" items="{{words_}}"> |
| 26 <paper-item> | 27 <template> |
| 27 <div class="word">[[item]]</div> | 28 <div class="list-item"> |
| 28 <paper-icon-button icon="clear" on-tap="onRemoveWordTap_"> | 29 <div class="word">[[item]]</div> |
| 29 </paper-icon-button> | 30 <paper-icon-button icon="clear" on-tap="onRemoveWordTap_"> |
| 30 </paper-item> | 31 </paper-icon-button> |
| 31 </template> | 32 </div> |
| 32 </iron-list> | 33 </template> |
| 34 </iron-list> |
| 35 </div> |
| 33 </div> | 36 </div> |
| 34 </template> | 37 </template> |
| 35 <script src="edit_dictionary_page.js"></script> | 38 <script src="edit_dictionary_page.js"></script> |
| 36 </dom-module> | 39 </dom-module> |
| OLD | NEW |