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

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

Issue 16535004: Introduce StickyKeys settings item with behind flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 if (cr.isChromeOS) { 430 if (cr.isChromeOS) {
431 $('accessibility-spoken-feedback-check').onchange = function(event) { 431 $('accessibility-spoken-feedback-check').onchange = function(event) {
432 chrome.send('spokenFeedbackChange', 432 chrome.send('spokenFeedbackChange',
433 [$('accessibility-spoken-feedback-check').checked]); 433 [$('accessibility-spoken-feedback-check').checked]);
434 }; 434 };
435 435
436 $('accessibility-high-contrast-check').onchange = function(event) { 436 $('accessibility-high-contrast-check').onchange = function(event) {
437 chrome.send('highContrastChange', 437 chrome.send('highContrastChange',
438 [$('accessibility-high-contrast-check').checked]); 438 [$('accessibility-high-contrast-check').checked]);
439 }; 439 };
440 $('accessibility-sticky-keys').hidden =
441 !loadTimeData.getBoolean('enableStickyKeys');
440 } 442 }
441 443
442 // Display management section (CrOS only). 444 // Display management section (CrOS only).
443 if (cr.isChromeOS) { 445 if (cr.isChromeOS) {
444 $('display-options').onclick = function(event) { 446 $('display-options').onclick = function(event) {
445 OptionsPage.navigateToPage('display'); 447 OptionsPage.navigateToPage('display');
446 chrome.send('coreOptionsUserMetricsAction', 448 chrome.send('coreOptionsUserMetricsAction',
447 ['Options_Display']); 449 ['Options_Display']);
448 }; 450 };
449 } 451 }
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 BrowserOptions.getLoggedInUsername = function() { 1509 BrowserOptions.getLoggedInUsername = function() {
1508 return BrowserOptions.getInstance().username_; 1510 return BrowserOptions.getInstance().username_;
1509 }; 1511 };
1510 } 1512 }
1511 1513
1512 // Export 1514 // Export
1513 return { 1515 return {
1514 BrowserOptions: BrowserOptions 1516 BrowserOptions: BrowserOptions
1515 }; 1517 };
1516 }); 1518 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698