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

Side by Side Diff: chrome/browser/resources/options/chromeos/system_options.js

Issue 8249011: Remove 'Enable tap-to-click' checkbox for non-touchpad devices. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add missing system_options.html file Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 ///////////////////////////////////////////////////////////////////////////// 8 /////////////////////////////////////////////////////////////////////////////
9 // SystemOptions class: 9 // SystemOptions class:
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 */ 109 */
110 SystemOptions.SetAccessibilityCheckboxState = function(checked) { 110 SystemOptions.SetAccessibilityCheckboxState = function(checked) {
111 $('accesibility-check').checked = checked; 111 $('accesibility-check').checked = checked;
112 }; 112 };
113 113
114 /** 114 /**
115 * Activate the bluetooth settings section on the System settings page. 115 * Activate the bluetooth settings section on the System settings page.
116 */ 116 */
117 SystemOptions.showBluetoothSettings = function() { 117 SystemOptions.showBluetoothSettings = function() {
118 $('bluetooth-devices').hidden = false; 118 $('bluetooth-devices').hidden = false;
119 } 119 };
120 120
121 /** 121 /**
122 * Adds an element to the list of available bluetooth devices. 122 * Adds an element to the list of available bluetooth devices.
123 * @param{{'deviceName': string, 123 * @param{{'deviceName': string,
124 * 'deviceId': string, 124 * 'deviceId': string,
125 * 'deviceType': Constants.DEVICE_TYPE, 125 * 'deviceType': Constants.DEVICE_TYPE,
126 * 'deviceStatus': Constants.DEVICE_STATUS} device 126 * 'deviceStatus': Constants.DEVICE_STATUS} device
127 * Decription of the bluetooth device. 127 * Decription of the bluetooth device.
128 */ 128 */
129 SystemOptions.addBluetoothDevice = function(device) { 129 SystemOptions.addBluetoothDevice = function(device) {
130 $('bluetooth-device-list').appendDevice(device); 130 $('bluetooth-device-list').appendDevice(device);
131 } 131 };
132 132
133 /** 133 /**
134 * Hides the scanning label and icon that are used to indicate that a device 134 * Hides the scanning label and icon that are used to indicate that a device
135 * search is in progress. 135 * search is in progress.
136 */ 136 */
137 SystemOptions.notifyBluetoothSearchComplete = function() { 137 SystemOptions.notifyBluetoothSearchComplete = function() {
138 // TDOO (kevers) - Reset state immediately once results are received 138 // TODO (kevers) - Reset state immediately once results are received
139 // asynchronously. 139 // asynchronously.
140 setTimeout(function() { 140 setTimeout(function() {
141 setVisibility_('bluetooth-scanning-label', false); 141 setVisibility_('bluetooth-scanning-label', false);
142 setVisibility_('bluetooth-scanning-icon', false); 142 setVisibility_('bluetooth-scanning-icon', false);
143 }, 2000); 143 }, 2000);
144 } 144 };
145
146 /**
147 * Disables the Tap-To-Click radio button when we don't have a touchpad.
148 */
149 SystemOptions.hideTapToClick = function() {
150 $('tap-to-click').hidden = true;
151 };
145 152
146 // Export 153 // Export
147 return { 154 return {
148 SystemOptions: SystemOptions 155 SystemOptions: SystemOptions
149 }; 156 };
150 157
151 }); 158 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698