source: trip-planner-front/node_modules/@angular/cdk/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Platform } from '@angular/cdk/platform';
9/** Set of possible high-contrast mode backgrounds. */
10import * as ɵngcc0 from '@angular/core';
11export declare const enum HighContrastMode {
12 NONE = 0,
13 BLACK_ON_WHITE = 1,
14 WHITE_ON_BLACK = 2
15}
16/** CSS class applied to the document body when in black-on-white high-contrast mode. */
17export declare const BLACK_ON_WHITE_CSS_CLASS = "cdk-high-contrast-black-on-white";
18/** CSS class applied to the document body when in white-on-black high-contrast mode. */
19export declare const WHITE_ON_BLACK_CSS_CLASS = "cdk-high-contrast-white-on-black";
20/** CSS class applied to the document body when in high-contrast mode. */
21export declare const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = "cdk-high-contrast-active";
22/**
23 * Service to determine whether the browser is currently in a high-contrast-mode environment.
24 *
25 * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode
26 * changes the appearance of all applications, including web applications, to dramatically increase
27 * contrast.
28 *
29 * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast
30 * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast"
31 * browser extension.
32 */
33export declare class HighContrastModeDetector {
34 private _platform;
35 /**
36 * Figuring out the high contrast mode and adding the body classes can cause
37 * some expensive layouts. This flag is used to ensure that we only do it once.
38 */
39 private _hasCheckedHighContrastMode;
40 private _document;
41 constructor(_platform: Platform, document: any);
42 /** Gets the current high-contrast-mode for the page. */
43 getHighContrastMode(): HighContrastMode;
44 /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
45 _applyBodyHighContrastModeCssClasses(): void;
46 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<HighContrastModeDetector, never>;
47}
48
49//# sourceMappingURL=high-contrast-mode-detector.d.ts.map
Note: See TracBrowser for help on using the repository browser.