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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 27196006: Add autoclick to settings page under the accessibility section. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 chrome.send('spokenFeedbackChange', 438 chrome.send('spokenFeedbackChange',
439 [$('accessibility-spoken-feedback-check').checked]); 439 [$('accessibility-spoken-feedback-check').checked]);
440 }; 440 };
441 441
442 $('accessibility-high-contrast-check').onchange = function(event) { 442 $('accessibility-high-contrast-check').onchange = function(event) {
443 chrome.send('highContrastChange', 443 chrome.send('highContrastChange',
444 [$('accessibility-high-contrast-check').checked]); 444 [$('accessibility-high-contrast-check').checked]);
445 }; 445 };
446 $('accessibility-sticky-keys').hidden = 446 $('accessibility-sticky-keys').hidden =
447 !loadTimeData.getBoolean('enableStickyKeys'); 447 !loadTimeData.getBoolean('enableStickyKeys');
448 $('accessibility-autoclick').hidden =
449 !loadTimeData.getBoolean('enableAutoclick');
448 } 450 }
449 451
450 // Display management section (CrOS only). 452 // Display management section (CrOS only).
451 if (cr.isChromeOS) { 453 if (cr.isChromeOS) {
452 $('display-options').onclick = function(event) { 454 $('display-options').onclick = function(event) {
453 OptionsPage.navigateToPage('display'); 455 OptionsPage.navigateToPage('display');
454 chrome.send('coreOptionsUserMetricsAction', 456 chrome.send('coreOptionsUserMetricsAction',
455 ['Options_Display']); 457 ['Options_Display']);
456 }; 458 };
457 } 459 }
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 BrowserOptions.getLoggedInUsername = function() { 1548 BrowserOptions.getLoggedInUsername = function() {
1547 return BrowserOptions.getInstance().username_; 1549 return BrowserOptions.getInstance().username_;
1548 }; 1550 };
1549 } 1551 }
1550 1552
1551 // Export 1553 // Export
1552 return { 1554 return {
1553 BrowserOptions: BrowserOptions 1555 BrowserOptions: BrowserOptions
1554 }; 1556 };
1555 }); 1557 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698