blob: 6ca8afa0e74122e633b893f5d0fd40003d399203 [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {CursorRange} from '../../common/cursors/range.js';
export class CommandHandlerInterface {
/**
* Handles ChromeVox commands.
* @param {string} command
* @return {boolean} True if the command should propagate.
*/
onCommand(command) {}
/**
* A helper to object navigation to skip all static text nodes who have
* label/description for on ancestor nodes.
* @param {CursorRange} current
* @param {constants.Dir} dir
* @return {CursorRange} The resulting range.
*/
skipLabelOrDescriptionFor(current, dir) {}
}
/**
* @type {CommandHandlerInterface}
*/
CommandHandlerInterface.instance;