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

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

initial commit

  • Property mode set to 100644
File size: 2.0 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. */
10export declare const enum HighContrastMode {
11 NONE = 0,
12 BLACK_ON_WHITE = 1,
13 WHITE_ON_BLACK = 2
14}
15/** CSS class applied to the document body when in black-on-white high-contrast mode. */
16export declare const BLACK_ON_WHITE_CSS_CLASS = "cdk-high-contrast-black-on-white";
17/** CSS class applied to the document body when in white-on-black high-contrast mode. */
18export declare const WHITE_ON_BLACK_CSS_CLASS = "cdk-high-contrast-white-on-black";
19/** CSS class applied to the document body when in high-contrast mode. */
20export declare const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = "cdk-high-contrast-active";
21/**
22 * Service to determine whether the browser is currently in a high-contrast-mode environment.
23 *
24 * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode
25 * changes the appearance of all applications, including web applications, to dramatically increase
26 * contrast.
27 *
28 * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast
29 * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast"
30 * browser extension.
31 */
32export declare class HighContrastModeDetector {
33 private _platform;
34 /**
35 * Figuring out the high contrast mode and adding the body classes can cause
36 * some expensive layouts. This flag is used to ensure that we only do it once.
37 */
38 private _hasCheckedHighContrastMode;
39 private _document;
40 constructor(_platform: Platform, document: any);
41 /** Gets the current high-contrast-mode for the page. */
42 getHighContrastMode(): HighContrastMode;
43 /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
44 _applyBodyHighContrastModeCssClasses(): void;
45}
Note: See TracBrowser for help on using the repository browser.