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

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: Created 7 years, 6 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 if (cr.isChromeOS) { 417 if (cr.isChromeOS) {
418 $('accessibility-spoken-feedback-check').onchange = function(event) { 418 $('accessibility-spoken-feedback-check').onchange = function(event) {
419 chrome.send('spokenFeedbackChange', 419 chrome.send('spokenFeedbackChange',
420 [$('accessibility-spoken-feedback-check').checked]); 420 [$('accessibility-spoken-feedback-check').checked]);
421 }; 421 };
422 422
423 $('accessibility-high-contrast-check').onchange = function(event) { 423 $('accessibility-high-contrast-check').onchange = function(event) {
424 chrome.send('highContrastChange', 424 chrome.send('highContrastChange',
425 [$('accessibility-high-contrast-check').checked]); 425 [$('accessibility-high-contrast-check').checked]);
426 }; 426 };
427 $('accessibility-sticky-keys').hidden =
428 !loadTimeData.getBoolean('enableStickyKeys');
427 } 429 }
428 430
429 // Display management section (CrOS only). 431 // Display management section (CrOS only).
430 if (cr.isChromeOS) { 432 if (cr.isChromeOS) {
431 $('display-options').onclick = function(event) { 433 $('display-options').onclick = function(event) {
432 OptionsPage.navigateToPage('display'); 434 OptionsPage.navigateToPage('display');
433 chrome.send('coreOptionsUserMetricsAction', 435 chrome.send('coreOptionsUserMetricsAction',
434 ['Options_Display']); 436 ['Options_Display']);
435 }; 437 };
436 } 438 }
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 BrowserOptions.getLoggedInUsername = function() { 1504 BrowserOptions.getLoggedInUsername = function() {
1503 return BrowserOptions.getInstance().username_; 1505 return BrowserOptions.getInstance().username_;
1504 }; 1506 };
1505 } 1507 }
1506 1508
1507 // Export 1509 // Export
1508 return { 1510 return {
1509 BrowserOptions: BrowserOptions 1511 BrowserOptions: BrowserOptions
1510 }; 1512 };
1511 }); 1513 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698