Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; | 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; |
| 10 | 10 |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 | 489 |
| 490 // Accessibility section (CrOS only). | 490 // Accessibility section (CrOS only). |
| 491 if (cr.isChromeOS) { | 491 if (cr.isChromeOS) { |
| 492 var updateAccessibilitySettingsButton = function() { | 492 var updateAccessibilitySettingsButton = function() { |
| 493 $('accessibility-settings').hidden = | 493 $('accessibility-settings').hidden = |
| 494 !($('accessibility-spoken-feedback-check').checked); | 494 !($('accessibility-spoken-feedback-check').checked); |
| 495 }; | 495 }; |
| 496 Preferences.getInstance().addEventListener( | 496 Preferences.getInstance().addEventListener( |
| 497 'settings.accessibility', | 497 'settings.accessibility', |
| 498 updateAccessibilitySettingsButton); | 498 updateAccessibilitySettingsButton); |
| 499 $('accessibility-learn-more').onclick = function(event) { | |
|
michaelpg
2014/06/13 22:05:05
nit-ish: unused parameter
stevenjb
2014/06/13 22:11:01
Hmm, pattern elsewhere seems to be to include the
Dan Beam
2014/06/16 19:08:24
personal preference: no unused params
Super Offici
stevenjb
2014/06/16 21:06:16
I discussed this with some Blink developers and we
| |
| 500 window.open(loadTimeData.getString('accessibilityLearnMoreURL')); | |
| 501 chrome.send('coreOptionsUserMetricsAction', | |
| 502 ['Options_AccessibilityLearnMore']); | |
| 503 }; | |
| 499 $('accessibility-settings-button').onclick = function(event) { | 504 $('accessibility-settings-button').onclick = function(event) { |
| 500 window.open(loadTimeData.getString('accessibilitySettingsURL')); | 505 window.open(loadTimeData.getString('accessibilitySettingsURL')); |
| 501 }; | 506 }; |
| 502 $('accessibility-spoken-feedback-check').onchange = function(event) { | 507 $('accessibility-spoken-feedback-check').onchange = function(event) { |
| 503 chrome.send('spokenFeedbackChange', | 508 chrome.send('spokenFeedbackChange', |
| 504 [$('accessibility-spoken-feedback-check').checked]); | 509 [$('accessibility-spoken-feedback-check').checked]); |
| 505 updateAccessibilitySettingsButton(); | 510 updateAccessibilitySettingsButton(); |
| 506 }; | 511 }; |
| 507 updateAccessibilitySettingsButton(); | 512 updateAccessibilitySettingsButton(); |
| 508 | 513 |
| (...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1845 BrowserOptions.getLoggedInUsername = function() { | 1850 BrowserOptions.getLoggedInUsername = function() { |
| 1846 return BrowserOptions.getInstance().username_; | 1851 return BrowserOptions.getInstance().username_; |
| 1847 }; | 1852 }; |
| 1848 } | 1853 } |
| 1849 | 1854 |
| 1850 // Export | 1855 // Export |
| 1851 return { | 1856 return { |
| 1852 BrowserOptions: BrowserOptions | 1857 BrowserOptions: BrowserOptions |
| 1853 }; | 1858 }; |
| 1854 }); | 1859 }); |
| OLD | NEW |