blob: 36374965987bab354f1af181515a81eeb195dc5a [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {StringUtil} from '../common/string_util.js';
/**
* Class to record metrics for Switch Access.
*/
export const SwitchAccessMetrics = {
/**
* @param {string} menuAction
*/
recordMenuAction: menuAction => {
const metricName = 'Accessibility.CrosSwitchAccess.MenuAction.' +
StringUtil.toUpperCamelCase(menuAction);
chrome.metricsPrivate.recordUserAction(metricName);
},
};