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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-pointers' is the settings subpage with mouse and touchpad settings. 7 * 'settings-pointers' is the settings subpage with mouse and touchpad settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-pointers', 10 is: 'settings-pointers',
11 11
12 properties: { 12 properties: {
13 /** Preferences state. */
14 prefs: { 13 prefs: {
15 type: Object, 14 type: Object,
16 notify: true, 15 notify: true,
17 }, 16 },
18 17
19 hasMouse: { 18 hasMouse: Boolean,
20 type: Boolean,
21 value: false,
22 },
23 19
24 hasTouchpad: { 20 hasTouchpad: Boolean,
25 type: Boolean,
26 value: false,
27 },
28 21
29 /** 22 /**
30 * TODO(michaelpg): cr-slider should optionally take a min and max so we 23 * TODO(michaelpg): cr-slider should optionally take a min and max so we
31 * don't have to generate a simple range of natural numbers ourselves. 24 * don't have to generate a simple range of natural numbers ourselves.
32 * @const {!Array<number>} 25 * @const {!Array<number>}
33 * @private 26 * @private
34 */ 27 */
35 sensitivityValues_: { 28 sensitivityValues_: {
36 type: Array, 29 type: Array,
37 value: [1, 2, 3, 4, 5], 30 value: [1, 2, 3, 4, 5],
38 readOnly: true, 31 readOnly: true,
39 }, 32 },
40 }, 33 },
41 34
42 /** 35 /**
43 * Prevents the link from activating its parent paper-radio-button. 36 * Prevents the link from activating its parent paper-radio-button.
44 * @param {!Event} e 37 * @param {!Event} e
45 * @private 38 * @private
46 */ 39 */
47 onLearnMoreLinkActivated_: function(e) { 40 onLearnMoreLinkActivated_: function(e) {
48 settings.DevicePageBrowserProxyImpl.getInstance().handleLinkEvent(e); 41 settings.DevicePageBrowserProxyImpl.getInstance().handleLinkEvent(e);
49 }, 42 },
50 43
51 // Mouse and touchpad sections are only subsections if they are both present. 44 /**
45 * Mouse and touchpad sections are only subsections if they are both present.
46 * @param {boolean} hasMouse
47 * @param {boolean} hasTouchpad
48 * @return {string}
49 */
52 getSubsectionClass_: function(hasMouse, hasTouchpad) { 50 getSubsectionClass_: function(hasMouse, hasTouchpad) {
53 return hasMouse && hasTouchpad ? 'subsection' : ''; 51 return hasMouse && hasTouchpad ? 'subsection' : '';
54 }, 52 },
55 }); 53 });
OLDNEW
« 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