Path: blob/main/src/vs/editor/browser/controller/editContext/native/screenReaderUtils.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { IComputedEditorOptions } from '../../../../common/config/editorOptions.js';6import { Selection } from '../../../../common/core/selection.js';78export interface IScreenReaderContent {910dispose(): void;1112/**13* Handle screen reader content before cutting the content14*/15onWillCut(): void;1617/**18* Handle screen reader content before pasting the content19*/20onWillPaste(): void;2122/**23* Handle focus changes24*/25onFocusChange(newFocusValue: boolean): void;2627/**28* Handle configuration changes29*/30onConfigurationChanged(options: IComputedEditorOptions): void;3132/**33* Update the screen reader content given the selection. It will update the content and set the range within the screen reader content if needed.34*/35updateScreenReaderContent(primarySelection: Selection): void;3637/**38* Update the scroll top value of the screen reader content39*/40updateScrollTop(primarySelection: Selection): void;41}424344