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

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

Issue 2585573002: Allow navigation to chrome://md-settings/pointer-overlay (Closed)
Patch Set: rebase Created 4 years 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.js
diff --git a/chrome/browser/resources/settings/device_page/pointers.js b/chrome/browser/resources/settings/device_page/pointers.js
index 7ee0a91704b3d5811cc2cb592d673ab3e7e95702..dda8bf02cc67229a128dc0edfe0e4890b2e6de42 100644
--- a/chrome/browser/resources/settings/device_page/pointers.js
+++ b/chrome/browser/resources/settings/device_page/pointers.js
@@ -10,21 +10,14 @@ Polymer({
is: 'settings-pointers',
properties: {
- /** Preferences state. */
prefs: {
type: Object,
notify: true,
},
- hasMouse: {
- type: Boolean,
- value: false,
- },
+ hasMouse: Boolean,
- hasTouchpad: {
- type: Boolean,
- value: false,
- },
+ hasTouchpad: Boolean,
/**
* TODO(michaelpg): cr-slider should optionally take a min and max so we
@@ -48,7 +41,12 @@ Polymer({
settings.DevicePageBrowserProxyImpl.getInstance().handleLinkEvent(e);
},
- // Mouse and touchpad sections are only subsections if they are both present.
+ /**
+ * Mouse and touchpad sections are only subsections if they are both present.
+ * @param {boolean} hasMouse
+ * @param {boolean} hasTouchpad
+ * @return {string}
+ */
getSubsectionClass_: function(hasMouse, hasTouchpad) {
return hasMouse && hasTouchpad ? 'subsection' : '';
},
« no previous file with comments | « chrome/browser/resources/settings/device_page/device_page.js ('k') | chrome/test/data/webui/settings/device_page_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698