| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 1 <link rel="import" href="chrome://resources/html/assert.html"> | 2 <link rel="import" href="chrome://resources/html/assert.html"> |
| 2 <link rel="import" href="chrome://resources/html/cr.html"> | 3 <link rel="import" href="chrome://resources/html/cr.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | 4 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 8 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> | 9 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> |
| 9 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa
nd_button.html"> | 10 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa
nd_button.html"> |
| 10 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> | 11 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #uiLanguageItem:focus, | 64 #uiLanguageItem:focus, |
| 64 #offerTranslations:focus { | 65 #offerTranslations:focus { |
| 65 background-color: transparent; | 66 background-color: transparent; |
| 66 } | 67 } |
| 67 </style> | 68 </style> |
| 68 <settings-languages languages="{{languages}}" prefs="{{prefs}}" | 69 <settings-languages languages="{{languages}}" prefs="{{prefs}}" |
| 69 language-helper="{{languageHelper}}"> | 70 language-helper="{{languageHelper}}"> |
| 70 </settings-languages> | 71 </settings-languages> |
| 71 <settings-animated-pages id="pages" section="languages"> | 72 <settings-animated-pages id="pages" section="languages"> |
| 72 <neon-animatable route-path="default"> | 73 <neon-animatable route-path="default"> |
| 73 <div class="settings-box first two-line"> | 74 <div class="settings-box first two-line" actionable |
| 75 on-tap="toggleExpandButton_"> |
| 74 <div class="start"> | 76 <div class="start"> |
| 75 <div>$i18n{languagesListTitle}</div> | 77 <div>$i18n{languagesListTitle}</div> |
| 76 <div class="secondary"> | 78 <div class="secondary"> |
| 77 [[getProspectiveUILanguageName_( | 79 [[getProspectiveUILanguageName_( |
| 78 languages, prefs.intl.app_locale.value)]] | 80 languages, prefs.intl.app_locale.value)]] |
| 79 </div> | 81 </div> |
| 80 </div> | 82 </div> |
| 81 <cr-expand-button expanded="{{languagesOpened_}}" | 83 <cr-expand-button expanded="{{languagesOpened_}}" |
| 82 alt="$i18n{languagesExpandA11yLabel}"> | 84 alt="$i18n{languagesExpandA11yLabel}"> |
| 83 </cr-expand-button> | 85 </cr-expand-button> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 114 $i18n{restart} | 116 $i18n{restart} |
| 115 </paper-button> | 117 </paper-button> |
| 116 </template> | 118 </template> |
| 117 </if> | 119 </if> |
| 118 <paper-icon-button id="more-[[item.language.code]]" | 120 <paper-icon-button id="more-[[item.language.code]]" |
| 119 icon="cr:more-vert" on-tap="onDotsTap_"> | 121 icon="cr:more-vert" on-tap="onDotsTap_"> |
| 120 </paper-icon-button> | 122 </paper-icon-button> |
| 121 </div> | 123 </div> |
| 122 </template> | 124 </template> |
| 123 <div class="list-item list-button" on-tap="onAddLanguagesTap_"> | 125 <div class="list-item list-button" on-tap="onAddLanguagesTap_"> |
| 124 $i18n{addLanguages} | 126 <a is="action-link">$i18n{addLanguages}</a> |
| 125 </div> | 127 </div> |
| 126 </div> | 128 </div> |
| 127 </iron-collapse> | 129 </iron-collapse> |
| 128 <if expr="chromeos"> | 130 <if expr="chromeos"> |
| 129 <div id="manage-input-methods-subpage-trigger" | 131 <div id="manage-input-methods-subpage-trigger" |
| 130 class="settings-box two-line"> | 132 class="settings-box two-line" actionable |
| 133 on-tap="toggleExpandButton_"> |
| 131 <div class="start"> | 134 <div class="start"> |
| 132 <div>$i18n{inputMethodsListTitle}</div> | 135 <div>$i18n{inputMethodsListTitle}</div> |
| 133 <div class="secondary"> | 136 <div class="secondary"> |
| 134 [[getInputMethodName_(languages.inputMethods.currentId)]] | 137 [[getInputMethodName_(languages.inputMethods.currentId)]] |
| 135 </div> | 138 </div> |
| 136 </div> | 139 </div> |
| 137 <cr-expand-button expanded="{{inputMethodsOpened_}}" | 140 <cr-expand-button expanded="{{inputMethodsOpened_}}" |
| 138 alt="$i18n{inputMethodsExpandA11yLabel}"> | 141 alt="$i18n{inputMethodsExpandA11yLabel}"> |
| 139 </cr-expand-button> | 142 </cr-expand-button> |
| 140 </div> | 143 </div> |
| 141 <iron-collapse id="inputMethodsCollapse" | 144 <iron-collapse id="inputMethodsCollapse" |
| 142 opened="[[inputMethodsOpened_]]"> | 145 opened="[[inputMethodsOpened_]]"> |
| 143 <div class="list-frame vertical-list"> | 146 <div class="list-frame vertical-list"> |
| 144 <template is="dom-repeat" | 147 <template is="dom-repeat" |
| 145 items="[[languages.inputMethods.enabled]]"> | 148 items="[[languages.inputMethods.enabled]]"> |
| 146 <div class$="list-item [[getInputMethodItemClass_( | 149 <div class$="list-item [[getInputMethodItemClass_( |
| 147 item.id, languages.inputMethods.currentId)]]" | 150 item.id, languages.inputMethods.currentId)]]" |
| 148 on-tap="onInputMethodTap_" actionable> | 151 on-tap="onInputMethodTap_" on-keypress="onInputMethodTap_" |
| 152 actionable tabindex="0"> |
| 149 <div class="start"> | 153 <div class="start"> |
| 150 <div>[[item.displayName]]</div> | 154 <div>[[item.displayName]]</div> |
| 151 <div class="explain-selected" | 155 <div class="explain-selected" |
| 152 hidden="[[!isCurrentInputMethod_( | 156 hidden="[[!isCurrentInputMethod_( |
| 153 item.id, languages.inputMethods.currentId)]]"> | 157 item.id, languages.inputMethods.currentId)]]"> |
| 154 $i18n{inputMethodEnabled} | 158 $i18n{inputMethodEnabled} |
| 155 </div> | 159 </div> |
| 156 </div> | 160 </div> |
| 157 <paper-icon-button icon="cr:settings" | 161 <paper-icon-button icon="cr:settings" |
| 158 on-tap="onInputMethodOptionsTap_" | 162 on-tap="onInputMethodOptionsTap_" |
| 159 hidden="[[!item.hasOptionsPage]]"> | 163 hidden="[[!item.hasOptionsPage]]"> |
| 160 </paper-icon-button> | 164 </paper-icon-button> |
| 161 </div> | 165 </div> |
| 162 </template> | 166 </template> |
| 163 <div class="list-item list-button" | 167 <div class="list-item list-button" |
| 164 on-tap="onManageInputMethodsTap_"> | 168 on-tap="onManageInputMethodsTap_"> |
| 165 $i18n{manageInputMethods} | 169 <a is="action-link">$i18n{manageInputMethods}</a> |
| 166 </div> | 170 </div> |
| 167 </div> | 171 </div> |
| 168 </iron-collapse> | 172 </iron-collapse> |
| 169 </if> | 173 </if> |
| 170 <if expr="not is_macosx"> | 174 <if expr="not is_macosx"> |
| 171 <div id="spellcheck-subpage-trigger" class="settings-box two-line"> | 175 <div id="spellcheck-subpage-trigger" class="settings-box two-line" |
| 176 actionable on-tap="toggleExpandButton_"> |
| 172 <div class="start"> | 177 <div class="start"> |
| 173 <div>$i18n{spellCheckListTitle}</div> | 178 <div>$i18n{spellCheckListTitle}</div> |
| 174 <div class="secondary"> | 179 <div class="secondary"> |
| 175 [[getSpellCheckSecondaryText_(languages.enabled.*)]] | 180 [[getSpellCheckSecondaryText_(languages.enabled.*)]] |
| 176 </div> | 181 </div> |
| 177 </div> | 182 </div> |
| 178 <cr-expand-button expanded="{{spellCheckOpened_}}" | 183 <cr-expand-button expanded="{{spellCheckOpened_}}" |
| 179 alt="$i18n{spellCheckExpandA11yLabel}"> | 184 alt="$i18n{spellCheckExpandA11yLabel}"> |
| 180 </cr-expand-button> | 185 </cr-expand-button> |
| 181 </div> | 186 </div> |
| 182 <iron-collapse id="spellCheckCollapse" opened="[[spellCheckOpened_]]"> | 187 <iron-collapse id="spellCheckCollapse" opened="[[spellCheckOpened_]]"> |
| 183 <div class="list-frame vertical-list"> | 188 <div class="list-frame vertical-list"> |
| 184 <template is="dom-repeat" items="[[languages.enabled]]"> | 189 <template is="dom-repeat" items="[[languages.enabled]]"> |
| 185 <div class="list-item"> | 190 <div class="list-item"> |
| 186 <paper-checkbox | 191 <paper-checkbox |
| 187 checked="[[item.spellCheckEnabled]]" | 192 checked="[[item.spellCheckEnabled]]" |
| 188 on-change="onSpellCheckChange_" | 193 on-change="onSpellCheckChange_" |
| 189 disabled$="[[!item.language.supportsSpellcheck]]"> | 194 disabled$="[[!item.language.supportsSpellcheck]]"> |
| 190 [[item.language.displayName]] | 195 [[item.language.displayName]] |
| 191 </paper-checkbox> | 196 </paper-checkbox> |
| 192 </label> | 197 </label> |
| 193 </template> | 198 </template> |
| 194 <div class="list-item list-button" on-tap="onEditDictionaryTap_"> | 199 <div class="list-item list-button" on-tap="onEditDictionaryTap_"> |
| 195 $i18n{manageSpellCheck} | 200 <a is="action-link">$i18n{manageSpellCheck}</a> |
| 196 </div> | 201 </div> |
| 197 </div> | 202 </div> |
| 198 </iron-collapse> | 203 </iron-collapse> |
| 199 </if> | 204 </if> |
| 200 <template is="cr-lazy-render" id="menu"> | 205 <template is="cr-lazy-render" id="menu"> |
| 201 <dialog is="cr-action-menu" | 206 <dialog is="cr-action-menu" |
| 202 class$="[[getMenuClass_(prefs.translate.enabled.value)]]"> | 207 class$="[[getMenuClass_(prefs.translate.enabled.value)]]"> |
| 203 <if expr="chromeos or is_win"> | 208 <if expr="chromeos or is_win"> |
| 204 <paper-checkbox id="uiLanguageItem" class="dropdown-item" | 209 <paper-checkbox id="uiLanguageItem" class="dropdown-item" |
| 205 checked="[[isProspectiveUILanguage_( | 210 checked="[[isProspectiveUILanguage_( |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 </if> | 273 </if> |
| 269 </settings-animated-pages> | 274 </settings-animated-pages> |
| 270 <template is="dom-if" if="[[showAddLanguagesDialog_]]" restamp> | 275 <template is="dom-if" if="[[showAddLanguagesDialog_]]" restamp> |
| 271 <settings-add-languages-dialog languages="{{languages}}" | 276 <settings-add-languages-dialog languages="{{languages}}" |
| 272 language-helper="[[languageHelper]]"> | 277 language-helper="[[languageHelper]]"> |
| 273 </settings-add-languages-dialog> | 278 </settings-add-languages-dialog> |
| 274 </template> | 279 </template> |
| 275 </template> | 280 </template> |
| 276 <script src="languages_page.js"></script> | 281 <script src="languages_page.js"></script> |
| 277 </dom-module> | 282 </dom-module> |
| OLD | NEW |