"Fossies" - the Fresh Open Source Software Archive

Member "vscode-1.49.1/src/vs/platform/accessibility/common/accessibility.ts" (16 Sep 2020, 1395 Bytes) of package /linux/misc/vscode-1.49.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*---------------------------------------------------------------------------------------------
    2  *  Copyright (c) Microsoft Corporation. All rights reserved.
    3  *  Licensed under the MIT License. See License.txt in the project root for license information.
    4  *--------------------------------------------------------------------------------------------*/
    5 
    6 import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
    7 import { Event } from 'vs/base/common/event';
    8 import { RawContextKey } from 'vs/platform/contextkey/common/contextkey';
    9 
   10 export const IAccessibilityService = createDecorator<IAccessibilityService>('accessibilityService');
   11 
   12 export interface IAccessibilityService {
   13     readonly _serviceBrand: undefined;
   14 
   15     readonly onDidChangeScreenReaderOptimized: Event<void>;
   16 
   17     alwaysUnderlineAccessKeys(): Promise<boolean>;
   18     isScreenReaderOptimized(): boolean;
   19     getAccessibilitySupport(): AccessibilitySupport;
   20     setAccessibilitySupport(accessibilitySupport: AccessibilitySupport): void;
   21 }
   22 
   23 export const enum AccessibilitySupport {
   24     /**
   25      * This should be the browser case where it is not known if a screen reader is attached or no.
   26      */
   27     Unknown = 0,
   28 
   29     Disabled = 1,
   30 
   31     Enabled = 2
   32 }
   33 
   34 export const CONTEXT_ACCESSIBILITY_MODE_ENABLED = new RawContextKey<boolean>('accessibilityModeEnabled', false);
   35 
   36 export interface IAccessibilityInformation {
   37     label: string;
   38     role?: string;
   39 }