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"> |
| 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-button/paper-butt on.html"> | |
|
Dan Beam
2016/08/01 20:37:03
duplicated
dmazzoni
2016/08/02 03:07:02
Done
| |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> | |
| 10 <link rel="import" href="/a11y_page/manage_a11y_page.html"> | |
| 11 <link rel="import" href="/settings_page/settings_animated_pages.html"> | |
| 12 <link rel="import" href="/settings_page/settings_subpage.html"> | |
| 13 </if> | |
| 14 | |
| 9 <dom-module id="settings-a11y-page"> | 15 <dom-module id="settings-a11y-page"> |
| 10 <template> | 16 <template> |
| 11 <style include="settings-shared"></style> | 17 <style include="settings-shared"></style> |
| 12 <if expr="chromeos"> | 18 <if expr="chromeos"> |
| 13 <div class="settings-box row first"> | 19 <settings-animated-pages id="pages" current-route="{{currentRoute}}" |
| 14 <span> | 20 section="a11y"> |
| 15 $i18n{a11yExplanation} | 21 <neon-animatable id="main"> |
| 16 <a href="$i18nRaw{a11yLearnMoreUrl}" target="_blank"> | 22 <div class="settings-box"> |
|
Dan Beam
2016/08/01 20:37:03
class="settings-box first"
dmazzoni
2016/08/02 03:07:02
Done
| |
| 17 $i18n{learnMore} | 23 <div class="start"> |
| 18 </a> | 24 $i18n{optionsInMenuLabel} |
| 19 </span> | 25 </div> |
| 20 </div> | 26 <paper-toggle-button id="optionsInMenuToggle" |
| 21 | 27 checked="{{prefs.settings.a11y.enable_menu.value}}"> |
| 22 <div class="settings-box block"> | 28 </paper-toggle-button> |
| 23 <settings-checkbox label="$i18n{optionsInMenuLabel}" | 29 </div> |
| 24 pref="{{prefs.settings.a11y.enable_menu}}"> | 30 <div class="settings-box"> |
| 25 </settings-checkbox> | 31 <paper-button class="primary-button" |
| 26 <settings-checkbox label="$i18n{largeMouseCursorLabel}" | 32 on-tap="onManageAccessibilityFeaturesTap_"> |
| 27 pref="{{prefs.settings.a11y.large_cursor_enabled}}"> | 33 $i18n{manageAccessibilityFeatures} |
| 28 </settings-checkbox> | 34 </paper-button> |
| 29 <settings-checkbox label="$i18n{highContrastLabel}" | 35 </div> |
| 30 pref="{{prefs.settings.a11y.high_contrast_enabled}}"> | 36 </neon-animatable> |
| 31 </settings-checkbox> | 37 <template is="dom-if" name="manage-a11y"> |
| 32 <settings-checkbox | 38 <settings-subpage page-title="$i18n{manageAccessibilityFeatures}"> |
| 33 pref="{{prefs.settings.a11y.sticky_keys_enabled}}" | 39 <settings-manage-a11y-page prefs="{{prefs}}"> |
| 34 label="$i18n{stickyKeysLabel}"> | 40 </settings-manage-a11y-page> |
| 35 </settings-checkbox> | 41 </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> | 42 </template> |
| 80 </div> | 43 </settings-animated-pages> |
| 81 </if> | 44 </if> |
| 82 | 45 |
| 83 <if expr="chromeos"> | |
| 84 <div class="settings-box"> | |
| 85 </if> | |
| 86 <if expr="not chromeos"> | 46 <if expr="not chromeos"> |
| 87 <div class="settings-box first"> | 47 <div class="settings-box first"> |
| 88 </if> | |
| 89 <paper-button class="primary-button" on-tap="onMoreFeaturesTap_"> | 48 <paper-button class="primary-button" on-tap="onMoreFeaturesTap_"> |
| 90 $i18n{moreFeaturesLink} | 49 $i18n{moreFeaturesLink} |
| 91 </paper-button> | 50 </paper-button> |
| 92 </div> | 51 </div> |
| 52 </if> | |
| 53 | |
| 93 </template> | 54 </template> |
| 94 <script src="a11y_page.js"></script> | 55 <script src="a11y_page.js"></script> |
| 95 </dom-module> | 56 </dom-module> |
| OLD | NEW |