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