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/neon-animation/neon-ani matable.html"> | |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 3 <if expr="chromeos"> | 4 <if expr="chromeos"> |
|
michaelpg
2016/07/29 22:14:20
this <if> should be below the rest of the imports,
dmazzoni
2016/08/01 18:45:22
Done
| |
| 4 <link rel="import" href="/controls/settings_checkbox.html"> | 5 <link rel="import" href="/a11y_page/manage_a11y_page.html"> |
| 5 </if> | 6 </if> |
| 7 <link rel="import" href="/settings_page/settings_animated_pages.html"> | |
|
michaelpg
2016/07/29 22:14:20
this & settings_subpage.html should also be in the
dmazzoni
2016/08/01 18:45:22
Done
| |
| 8 <link rel="import" href="/settings_page/settings_subpage.html"> | |
| 6 <link rel="import" href="/settings_shared_css.html"> | 9 <link rel="import" href="/settings_shared_css.html"> |
| 7 | 10 |
| 8 <dom-module id="settings-a11y-page"> | 11 <dom-module id="settings-a11y-page"> |
| 9 <template> | 12 <template> |
| 10 <style include="settings-shared"></style> | 13 <style include="settings-shared"></style> |
| 11 <if expr="chromeos"> | 14 <if expr="chromeos"> |
| 12 <div class="settings-box row first"> | 15 <settings-animated-pages id="pages" current-route="{{currentRoute}}" |
| 13 <span> | 16 section="a11y"> |
| 14 $i18n{a11yExplanation} | 17 <neon-animatable id="main"> |
| 15 <a href="$i18nRaw{a11yLearnMoreUrl}" target="_blank"> | 18 <div class="settings-box"> |
| 16 $i18n{learnMore} | 19 <div class="start"> |
| 17 </a> | 20 $i18n{optionsInMenuLabel} |
| 18 </span> | 21 </div> |
| 19 </div> | 22 <paper-toggle-button id="optionsInMenuToggle" |
|
michaelpg
2016/07/29 22:14:20
import paper-toggle-button (cros only)
dmazzoni
2016/08/01 18:45:23
Done
| |
| 20 | 23 checked="{{prefs.settings.a11y.enable_menu}}"> |
|
michaelpg
2016/07/29 22:14:20
it looks like this can be controlled by policy:
ht
michaelpg
2016/07/29 22:14:20
.value
<settings-checkbox> is a control that take
dmazzoni
2016/08/01 18:45:23
Done
| |
| 21 <div class="settings-box block"> | 24 </paper-toggle-button> |
| 22 <settings-checkbox label="$i18n{optionsInMenuLabel}" | 25 </div> |
| 23 pref="{{prefs.settings.a11y.enable_menu}}"> | 26 <div class="settings-box"> |
| 24 </settings-checkbox> | 27 <paper-button class="primary-button" |
| 25 <settings-checkbox label="$i18n{largeMouseCursorLabel}" | 28 on-tap="onManageAccessibilityFeaturesTap_"> |
|
michaelpg
2016/07/29 22:14:20
nit: 4-space indent from previous line, don't alig
dmazzoni
2016/08/01 18:45:22
Done
| |
| 26 pref="{{prefs.settings.a11y.large_cursor_enabled}}"> | 29 Manage accessibility features |
| 27 </settings-checkbox> | 30 </paper-button> |
| 28 <settings-checkbox label="$i18n{highContrastLabel}" | 31 </div> |
| 29 pref="{{prefs.settings.a11y.high_contrast_enabled}}"> | 32 </neon-animatable> |
| 30 </settings-checkbox> | 33 <template is="dom-if" name="manage-a11y"> |
| 31 <settings-checkbox | 34 <settings-subpage page-title="Manage Accessibility Features"> |
| 32 pref="{{prefs.settings.a11y.sticky_keys_enabled}}" | 35 <settings-manage-a11y-page prefs="{{prefs}}"> |
| 33 label="$i18n{stickyKeysLabel}"> | 36 </settings-manage-a11y-page> |
| 34 </settings-checkbox> | 37 </settings-subpage> |
| 35 <settings-checkbox pref="{{prefs.settings.accessibility}}" | |
| 36 label="$i18n{chromeVoxLabel}"> | |
| 37 </settings-checkbox> | |
| 38 <settings-checkbox label="$i18n{screenMagnifierLabel}" | |
| 39 pref="{{prefs.settings.a11y.screen_magnifier}}"> | |
| 40 </settings-checkbox> | |
| 41 <settings-checkbox label="$i18n{tapDraggingLabel}" | |
| 42 pref="{{prefs.settings.touchpad.enable_tap_dragging}}"> | |
| 43 </settings-checkbox> | |
| 44 <settings-checkbox label="$i18n{clickOnStopLabel}" | |
| 45 pref="{{prefs.settings.a11y.autoclick}}"> | |
| 46 </settings-checkbox> | |
| 47 | |
| 48 <div class="list-item settings-checkbox-spacer"> | |
| 49 <div>$i18n{delayBeforeClickLabel}</div> | |
| 50 <select value="{{prefs.settings.a11y.autoclick_delay_ms::change}}"> | |
| 51 <option value="600">$i18n{delayBeforeClickExtremelyShort}</option> | |
| 52 <option value="800">$i18n{delayBeforeClickVeryShort}</option> | |
| 53 <option value="1000">$i18n{delayBeforeClickShort}</option> | |
| 54 <option value="2000">$i18n{delayBeforeClickLong}</option> | |
| 55 <option value="4000">$i18n{delayBeforeClickVeryLong}</option> | |
| 56 </select> | |
| 57 </div> | |
| 58 | |
| 59 <settings-checkbox pref="{{prefs.settings.a11y.virtual_keyboard}}" | |
| 60 label="$i18n{onScreenKeyboardLabel}"> | |
| 61 </settings-checkbox> | |
| 62 <settings-checkbox pref="{{prefs.settings.a11y.mono_audio}}" | |
| 63 label="$i18n{monoAudioLabel}"> | |
| 64 </settings-checkbox> | |
| 65 <settings-checkbox pref="{{prefs.settings.a11y.caret_highlight}}" | |
| 66 label="$i18n{caretHighlightLabel}"> | |
| 67 </settings-checkbox> | |
| 68 <settings-checkbox pref="{{prefs.settings.a11y.cursor_highlight}}" | |
| 69 label="$i18n{cursorHighlightLabel}"> | |
| 70 </settings-checkbox> | |
| 71 <settings-checkbox pref="{{prefs.settings.a11y.focus_highlight}}" | |
| 72 label="$i18n{focusHighlightLabel}"> | |
| 73 </settings-checkbox> | |
| 74 <template is="dom-if" if="[[showExperimentalFeatures_]]"> | |
| 75 <settings-checkbox pref="{{prefs.settings.a11y.select_to_speak}}" | |
| 76 label="$i18n{selectToSpeakLabel}"> | |
| 77 </settings-checkbox> | |
| 78 <settings-checkbox pref="{{prefs.settings.a11y.switch_access}}" | |
| 79 label="$i18n{switchAccessLabel}"> | |
| 80 </settings-checkbox> | |
| 81 </template> | 38 </template> |
| 82 </div> | 39 </settings-animated-pages> |
| 83 </if> | 40 </if> |
| 84 | 41 |
| 85 <if expr="chromeos"> | |
| 86 <div class="settings-box"> | |
| 87 </if> | |
| 88 <if expr="not chromeos"> | 42 <if expr="not chromeos"> |
| 89 <div class="settings-box first"> | 43 <div class="settings-box first"> |
| 90 </if> | |
| 91 <paper-button class="primary-button" on-tap="onMoreFeaturesTap_"> | 44 <paper-button class="primary-button" on-tap="onMoreFeaturesTap_"> |
| 92 $i18n{moreFeaturesLink} | 45 $i18n{moreFeaturesLink} |
| 93 </paper-button> | 46 </paper-button> |
| 94 </div> | 47 </div> |
| 48 </if> | |
| 49 | |
| 95 </template> | 50 </template> |
| 96 <script src="a11y_page.js"></script> | 51 <script src="a11y_page.js"></script> |
| 97 </dom-module> | 52 </dom-module> |
| OLD | NEW |