| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/action_link.html"> | 1 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 2 <link rel="import" href="chrome://resources/html/action_link_css.html"> |
| 2 <link rel="import" href="chrome://resources/html/assert.html"> | 3 <link rel="import" href="chrome://resources/html/assert.html"> |
| 3 <link rel="import" href="chrome://resources/html/cr.html"> | 4 <link rel="import" href="chrome://resources/html/cr.html"> |
| 4 <link rel="import" href="chrome://resources/html/polymer.html"> | 5 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 9 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> | 10 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> |
| 10 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa
nd_button.html"> | 11 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa
nd_button.html"> |
| 11 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> | 12 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 22 <link rel="import" href="edit_dictionary_page.html"> | 23 <link rel="import" href="edit_dictionary_page.html"> |
| 23 </if> | 24 </if> |
| 24 | 25 |
| 25 <if expr="chromeos"> | 26 <if expr="chromeos"> |
| 26 <link rel="import" href="chrome://resources/html/chromeos/ui_account_tweaks.html
"> | 27 <link rel="import" href="chrome://resources/html/chromeos/ui_account_tweaks.html
"> |
| 27 <link rel="import" href="/languages_page/manage_input_methods_page.html"> | 28 <link rel="import" href="/languages_page/manage_input_methods_page.html"> |
| 28 </if> | 29 </if> |
| 29 | 30 |
| 30 <dom-module id="settings-languages-page"> | 31 <dom-module id="settings-languages-page"> |
| 31 <template> | 32 <template> |
| 32 <style include="settings-shared"> | 33 <style include="settings-shared action-link"> |
| 33 #languagesCollapse .list-item.selected { | 34 #languagesCollapse .list-item.selected { |
| 34 min-height: var(--settings-row-two-line-min-height); | 35 min-height: var(--settings-row-two-line-min-height); |
| 35 } | 36 } |
| 36 | 37 |
| 37 .explain-selected { | 38 .explain-selected { |
| 38 color: var(--google-green-700); | 39 color: var(--google-green-700); |
| 39 font-weight: initial; | 40 font-weight: initial; |
| 40 margin-top: 4px; | 41 margin-top: 4px; |
| 41 } | 42 } |
| 42 | 43 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 <paper-button on-tap="onRestartTap_"> | 119 <paper-button on-tap="onRestartTap_"> |
| 119 $i18n{restart} | 120 $i18n{restart} |
| 120 </paper-button> | 121 </paper-button> |
| 121 </template> | 122 </template> |
| 122 </if> | 123 </if> |
| 123 <paper-icon-button id="more-[[item.language.code]]" | 124 <paper-icon-button id="more-[[item.language.code]]" |
| 124 icon="cr:more-vert" on-tap="onDotsTap_"> | 125 icon="cr:more-vert" on-tap="onDotsTap_"> |
| 125 </paper-icon-button> | 126 </paper-icon-button> |
| 126 </div> | 127 </div> |
| 127 </template> | 128 </template> |
| 128 <div class="list-item list-button" on-tap="onAddLanguagesTap_"> | 129 <div class="list-item"> |
| 129 <a is="action-link">$i18n{addLanguages}</a> | 130 <a is="action-link" class="list-button" |
| 131 on-tap="onAddLanguagesTap_"> |
| 132 $i18n{addLanguages} |
| 133 </a> |
| 130 </div> | 134 </div> |
| 131 </div> | 135 </div> |
| 132 </iron-collapse> | 136 </iron-collapse> |
| 133 <if expr="chromeos"> | 137 <if expr="chromeos"> |
| 134 <div id="manageInputMethodsSubpageTrigger" | 138 <div id="manageInputMethodsSubpageTrigger" |
| 135 class="settings-box two-line" actionable | 139 class="settings-box two-line" actionable |
| 136 on-tap="toggleExpandButton_"> | 140 on-tap="toggleExpandButton_"> |
| 137 <div class="start"> | 141 <div class="start"> |
| 138 <div>$i18n{inputMethodsListTitle}</div> | 142 <div>$i18n{inputMethodsListTitle}</div> |
| 139 <div class="secondary"> | 143 <div class="secondary"> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 160 item.id, languages.inputMethods.currentId)]]"> | 164 item.id, languages.inputMethods.currentId)]]"> |
| 161 $i18n{inputMethodEnabled} | 165 $i18n{inputMethodEnabled} |
| 162 </div> | 166 </div> |
| 163 </div> | 167 </div> |
| 164 <paper-icon-button icon="cr:settings" | 168 <paper-icon-button icon="cr:settings" |
| 165 on-tap="onInputMethodOptionsTap_" | 169 on-tap="onInputMethodOptionsTap_" |
| 166 hidden="[[!item.hasOptionsPage]]"> | 170 hidden="[[!item.hasOptionsPage]]"> |
| 167 </paper-icon-button> | 171 </paper-icon-button> |
| 168 </div> | 172 </div> |
| 169 </template> | 173 </template> |
| 170 <div class="list-item list-button" | 174 <div class="list-item"> |
| 171 on-tap="onManageInputMethodsTap_"> | 175 <a is="action-link" class="list-button" |
| 172 <a is="action-link">$i18n{manageInputMethods}</a> | 176 on-tap="onManageInputMethodsTap_"> |
| 177 $i18n{manageInputMethods} |
| 178 </a> |
| 173 </div> | 179 </div> |
| 174 </div> | 180 </div> |
| 175 </iron-collapse> | 181 </iron-collapse> |
| 176 </if> | 182 </if> |
| 177 <if expr="not is_macosx"> | 183 <if expr="not is_macosx"> |
| 178 <div id="spellCheckSubpageTrigger" | 184 <div id="spellCheckSubpageTrigger" |
| 179 class$="settings-box [[getSpellCheckListTwoLine_( | 185 class$="settings-box [[getSpellCheckListTwoLine_( |
| 180 spellCheckSecondaryText_)]]" | 186 spellCheckSecondaryText_)]]" |
| 181 actionable on-tap="toggleExpandButton_"> | 187 actionable on-tap="toggleExpandButton_"> |
| 182 <div class="start"> | 188 <div class="start"> |
| 183 <div>$i18n{spellCheckListTitle}</div> | 189 <div>$i18n{spellCheckListTitle}</div> |
| 184 <div class="secondary">[[spellCheckSecondaryText_]]</div> | 190 <div class="secondary">[[spellCheckSecondaryText_]]</div> |
| 185 </div> | 191 </div> |
| 186 <cr-expand-button expanded="{{spellCheckOpened_}}" | 192 <cr-expand-button expanded="{{spellCheckOpened_}}" |
| 187 alt="$i18n{spellCheckExpandA11yLabel}"> | 193 alt="$i18n{spellCheckExpandA11yLabel}"> |
| 188 </cr-expand-button> | 194 </cr-expand-button> |
| 189 </div> | 195 </div> |
| 190 <iron-collapse id="spellCheckCollapse" opened="[[spellCheckOpened_]]"> | 196 <iron-collapse id="spellCheckCollapse" opened="[[spellCheckOpened_]]"> |
| 191 <div class="list-frame vertical-list"> | 197 <div class="list-frame vertical-list"> |
| 192 <template is="dom-repeat" items="[[languages.enabled]]"> | 198 <template is="dom-repeat" items="[[languages.enabled]]"> |
| 193 <div class="list-item"> | 199 <div class="list-item"> |
| 194 <paper-checkbox | 200 <paper-checkbox |
| 195 checked="[[item.spellCheckEnabled]]" | 201 checked="[[item.spellCheckEnabled]]" |
| 196 on-change="onSpellCheckChange_" | 202 on-change="onSpellCheckChange_" |
| 197 disabled$="[[!item.language.supportsSpellcheck]]"> | 203 disabled$="[[!item.language.supportsSpellcheck]]"> |
| 198 [[item.language.displayName]] | 204 [[item.language.displayName]] |
| 199 </paper-checkbox> | 205 </paper-checkbox> |
| 200 </label> | 206 </label> |
| 201 </template> | 207 </template> |
| 202 <div class="list-item list-button" on-tap="onEditDictionaryTap_"> | 208 <div class="list-item"> |
| 203 <a is="action-link">$i18n{manageSpellCheck}</a> | 209 <a is="action-link" class="list-button" |
| 210 on-tap="onEditDictionaryTap_"> |
| 211 $i18n{manageSpellCheck} |
| 212 </a> |
| 204 </div> | 213 </div> |
| 205 </div> | 214 </div> |
| 206 </iron-collapse> | 215 </iron-collapse> |
| 207 </if> | 216 </if> |
| 208 <template is="cr-lazy-render" id="menu"> | 217 <template is="cr-lazy-render" id="menu"> |
| 209 <dialog is="cr-action-menu" | 218 <dialog is="cr-action-menu" |
| 210 class$="[[getMenuClass_(prefs.translate.enabled.value)]]"> | 219 class$="[[getMenuClass_(prefs.translate.enabled.value)]]"> |
| 211 <if expr="chromeos or is_win"> | 220 <if expr="chromeos or is_win"> |
| 212 <paper-checkbox id="uiLanguageItem" class="dropdown-item" | 221 <paper-checkbox id="uiLanguageItem" class="dropdown-item" |
| 213 checked="[[isProspectiveUILanguage_( | 222 checked="[[isProspectiveUILanguage_( |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 </if> | 285 </if> |
| 277 </settings-animated-pages> | 286 </settings-animated-pages> |
| 278 <template is="dom-if" if="[[showAddLanguagesDialog_]]" restamp> | 287 <template is="dom-if" if="[[showAddLanguagesDialog_]]" restamp> |
| 279 <settings-add-languages-dialog languages="{{languages}}" | 288 <settings-add-languages-dialog languages="{{languages}}" |
| 280 language-helper="[[languageHelper]]"> | 289 language-helper="[[languageHelper]]"> |
| 281 </settings-add-languages-dialog> | 290 </settings-add-languages-dialog> |
| 282 </template> | 291 </template> |
| 283 </template> | 292 </template> |
| 284 <script src="languages_page.js"></script> | 293 <script src="languages_page.js"></script> |
| 285 </dom-module> | 294 </dom-module> |
| OLD | NEW |