Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: chrome/browser/resources/settings/device_page/pointers.html

Issue 2617533003: MD Settings: change most checkboxes to toggles (leave dialogs alone) (Closed)
Patch Set: fix tests Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/device_page/pointers.html
diff --git a/chrome/browser/resources/settings/device_page/pointers.html b/chrome/browser/resources/settings/device_page/pointers.html
index 7c67f6881bb145b2e9132f948e2dc4e5972d2180..60a50fe812aed113ebf82563fe04c565e4cf963a 100644
--- a/chrome/browser/resources/settings/device_page/pointers.html
+++ b/chrome/browser/resources/settings/device_page/pointers.html
@@ -1,8 +1,8 @@
<link rel="import" href="chrome://resources/cr_elements/cr_slider/cr_slider.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/paper-radio-button.html">
-<link rel="import" href="/controls/settings_checkbox.html">
<link rel="import" href="/controls/settings_radio_group.html">
+<link rel="import" href="/controls/settings_toggle_button.html">
<link rel="import" href="/device_page/device_page_browser_proxy.html">
<link rel="import" href="/settings_shared_css.html">
@@ -30,9 +30,10 @@
<!-- Subsection title only appears if both mouse and touchpad exist. -->
<h2 hidden$="[[!hasTouchpad]]">$i18n{mouseTitle}</h2>
<div class="settings-box first">
- <settings-checkbox pref="{{prefs.settings.mouse.primary_right}}"
+ <settings-toggle-button class="start"
+ pref="{{prefs.settings.mouse.primary_right}}"
label="$i18n{mouseSwapButtons}">
- </settings-checkbox>
+ </settings-toggle-button>
</div>
<div class="settings-box">
<div class="start" id="mouseSpeedLabel">$i18n{mouseSpeed}</div>
@@ -49,14 +50,14 @@
<!-- Subsection title only appears if both mouse and touchpad exist. -->
<h2 hidden$="[[!hasMouse]]">$i18n{touchpadTitle}</h2>
<div class="settings-box block first">
- <settings-checkbox id="enableTapToClick"
+ <settings-toggle-button id="enableTapToClick"
pref="{{prefs.settings.touchpad.enable_tap_to_click}}"
label="$i18n{touchpadTapToClickEnabledLabel}">
- </settings-checkbox>
- <settings-checkbox id="enableTapDragging"
+ </settings-toggle-button>
+ <settings-toggle-button id="enableTapDragging"
pref="{{prefs.settings.touchpad.enable_tap_dragging}}"
label="$i18n{tapDraggingLabel}">
- </settings-checkbox>
+ </settings-toggle-button>
</div>
<div class="settings-box">
<div class="start" id="touchpadSpeedLabel">$i18n{touchpadSpeed}</div>
« no previous file with comments | « chrome/browser/resources/settings/device_page/keyboard.html ('k') | chrome/browser/resources/settings/device_page/stylus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698