Chromium Code Reviews| 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/paper-button/paper-butt on.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 3 <if expr="chromeos"> | |
| 4 <link rel="import" href="/controls/settings_checkbox.html"> | |
| 5 </if> | |
| 6 <link rel="import" href="/settings_shared_css.html"> | 3 <link rel="import" href="/settings_shared_css.html"> |
| 7 <link rel="import" href="/i18n_setup.html"> | 4 <link rel="import" href="/i18n_setup.html"> |
|
michaelpg
2016/08/02 17:38:29
nit: alphabetize (also, technically looks cros-onl
dmazzoni
2016/08/02 17:47:10
Fixed, but it is needed for non-cros
| |
| 8 | 5 |
| 6 <if expr="chromeos"> | |
| 7 <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/paper-toggle-button/pap er-toggle-button.html"> | |
| 9 <link rel="import" href="/a11y_page/manage_a11y_page.html"> | |
| 10 <link rel="import" href="/settings_page/settings_animated_pages.html"> | |
| 11 <link rel="import" href="/settings_page/settings_subpage.html"> | |
| 12 </if> | |
| 13 | |
| 9 <dom-module id="settings-a11y-page"> | 14 <dom-module id="settings-a11y-page"> |
| 10 <template> | 15 <template> |
| 11 <style include="settings-shared"></style> | 16 <style include="settings-shared"></style> |
| 12 <if expr="chromeos"> | 17 <if expr="chromeos"> |
| 13 <div class="settings-box row first"> | 18 <settings-animated-pages id="pages" current-route="{{currentRoute}}" |
| 14 <span> | 19 section="a11y"> |
| 15 $i18n{a11yExplanation} | 20 <neon-animatable id="main"> |
| 16 <a href="$i18nRaw{a11yLearnMoreUrl}" target="_blank"> | 21 <div class="settings-box first"> |
| 17 $i18n{learnMore} | 22 <div class="start"> |
| 18 </a> | 23 $i18n{optionsInMenuLabel} |
| 19 </span> | 24 </div> |
| 20 </div> | 25 <paper-toggle-button id="optionsInMenuToggle" |
| 21 | 26 checked="{{prefs.settings.a11y.enable_menu.value}}"> |
| 22 <div class="settings-box block"> | 27 </paper-toggle-button> |
| 23 <settings-checkbox label="$i18n{optionsInMenuLabel}" | 28 </div> |
| 24 pref="{{prefs.settings.a11y.enable_menu}}"> | 29 <div class="settings-box"> |
| 25 </settings-checkbox> | 30 <paper-button class="primary-button" |
| 26 <settings-checkbox label="$i18n{largeMouseCursorLabel}" | 31 on-tap="onManageAccessibilityFeaturesTap_"> |
| 27 pref="{{prefs.settings.a11y.large_cursor_enabled}}"> | 32 $i18n{manageAccessibilityFeatures} |
| 28 </settings-checkbox> | 33 </paper-button> |
| 29 <settings-checkbox label="$i18n{highContrastLabel}" | 34 </div> |
| 30 pref="{{prefs.settings.a11y.high_contrast_enabled}}"> | 35 </neon-animatable> |
| 31 </settings-checkbox> | 36 <template is="dom-if" name="manage-a11y"> |
| 32 <settings-checkbox | 37 <settings-subpage page-title="$i18n{manageAccessibilityFeatures}"> |
| 33 pref="{{prefs.settings.a11y.sticky_keys_enabled}}" | 38 <settings-manage-a11y-page prefs="{{prefs}}"> |
| 34 label="$i18n{stickyKeysLabel}"> | 39 </settings-manage-a11y-page> |
| 35 </settings-checkbox> | 40 </settings-subpage> |
| 36 <settings-checkbox pref="{{prefs.settings.accessibility}}" | |
| 37 label="$i18n{chromeVoxLabel}"> | |
| 38 </settings-checkbox> | |
| 39 <settings-checkbox label="$i18n{screenMagnifierLabel}" | |
| 40 pref="{{prefs.settings.a11y.screen_magnifier}}"> | |
| 41 </settings-checkbox> | |
| 42 <settings-checkbox label="$i18n{tapDraggingLabel}" | |
| 43 pref="{{prefs.settings.touchpad.enable_tap_dragging}}"> | |
| 44 </settings-checkbox> | |
| 45 <settings-checkbox label="$i18n{clickOnStopLabel}" | |
| 46 pref="{{prefs.settings.a11y.autoclick}}"> | |
| 47 </settings-checkbox> | |
| 48 | |
| 49 <div class="list-item settings-checkbox-spacer"> | |
| 50 <div>$i18n{delayBeforeClickLabel}</div> | |
| 51 <settings-dropdown-menu | |
| 52 pref="{{prefs.settings.a11y.autoclick_delay_ms}}" | |
| 53 menu-options="[[autoClickDelayOptions_]]" no-label-float> | |
| 54 </settings-dropdown-menu> | |
| 55 </div> | |
| 56 | |
| 57 <settings-checkbox pref="{{prefs.settings.a11y.virtual_keyboard}}" | |
| 58 label="$i18n{onScreenKeyboardLabel}"> | |
| 59 </settings-checkbox> | |
| 60 <settings-checkbox pref="{{prefs.settings.a11y.mono_audio}}" | |
| 61 label="$i18n{monoAudioLabel}"> | |
| 62 </settings-checkbox> | |
| 63 <settings-checkbox pref="{{prefs.settings.a11y.caret_highlight}}" | |
| 64 label="$i18n{caretHighlightLabel}"> | |
| 65 </settings-checkbox> | |
| 66 <settings-checkbox pref="{{prefs.settings.a11y.cursor_highlight}}" | |
| 67 label="$i18n{cursorHighlightLabel}"> | |
| 68 </settings-checkbox> | |
| 69 <settings-checkbox pref="{{prefs.settings.a11y.focus_highlight}}" | |
| 70 label="$i18n{focusHighlightLabel}"> | |
| 71 </settings-checkbox> | |
| 72 <template is="dom-if" if="[[showExperimentalFeatures_]]"> | |
| 73 <settings-checkbox pref="{{prefs.settings.a11y.select_to_speak}}" | |
| 74 label="$i18n{selectToSpeakLabel}"> | |
| 75 </settings-checkbox> | |
| 76 <settings-checkbox pref="{{prefs.settings.a11y.switch_access}}" | |
| 77 label="$i18n{switchAccessLabel}"> | |
| 78 </settings-checkbox> | |
| 79 </template> | 41 </template> |
| 80 </div> | 42 </settings-animated-pages> |
| 81 </if> | 43 </if> |
| 82 | 44 |
| 83 <if expr="chromeos"> | |
| 84 <div class="settings-box"> | |
| 85 </if> | |
| 86 <if expr="not chromeos"> | 45 <if expr="not chromeos"> |
| 87 <div class="settings-box first"> | 46 <div class="settings-box first"> |
| 88 </if> | |
| 89 <paper-button class="primary-button" on-tap="onMoreFeaturesTap_"> | 47 <paper-button class="primary-button" on-tap="onMoreFeaturesTap_"> |
| 90 $i18n{moreFeaturesLink} | 48 $i18n{moreFeaturesLink} |
| 91 </paper-button> | 49 </paper-button> |
| 92 </div> | 50 </div> |
| 51 </if> | |
| 52 | |
| 93 </template> | 53 </template> |
| 94 <script src="a11y_page.js"></script> | 54 <script src="a11y_page.js"></script> |
| 95 </dom-module> | 55 </dom-module> |
| OLD | NEW |