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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 330953002: Add accessibility settings metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index edb6faf1509d211cf121ac34529b7d9ff1a4857a..6ffef8c6e86f82fdd621fa2d441d1041935c966f 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -496,17 +496,24 @@ cr.define('options', function() {
Preferences.getInstance().addEventListener(
'settings.accessibility',
updateAccessibilitySettingsButton);
- $('accessibility-settings-button').onclick = function(event) {
+ $('accessibility-learn-more').onclick = function(unused_event) {
+ window.open(loadTimeData.getString('accessibilityLearnMoreURL'));
+ chrome.send('coreOptionsUserMetricsAction',
+ ['Options_AccessibilityLearnMore']);
+ };
+ $('accessibility-settings-button').onclick = function(unused_event) {
window.open(loadTimeData.getString('accessibilitySettingsURL'));
};
- $('accessibility-spoken-feedback-check').onchange = function(event) {
+ $('accessibility-spoken-feedback-check').onchange = function(
+ unused_event) {
chrome.send('spokenFeedbackChange',
[$('accessibility-spoken-feedback-check').checked]);
updateAccessibilitySettingsButton();
};
updateAccessibilitySettingsButton();
- $('accessibility-high-contrast-check').onchange = function(event) {
+ $('accessibility-high-contrast-check').onchange = function(
+ unused_event) {
chrome.send('highContrastChange',
[$('accessibility-high-contrast-check').checked]);
};
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698