summaryrefslogtreecommitdiff
path: root/chromium/ui/accessibility/accessibility_features.h
blob: b7fa71ec600b9ffe9049c47f0b62f0058e12f7ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2019 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.

// Define all the base::Features used by ui/accessibility.
#ifndef UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_
#define UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_

#include "base/feature_list.h"
#include "build/build_config.h"
#include "ui/accessibility/ax_export.h"

namespace features {

AX_EXPORT extern const base::Feature kEnableAccessibilityExposeARIAAnnotations;

// Returns true if ARIA annotations should be exposed to the browser AX Tree.
AX_EXPORT bool IsAccessibilityExposeARIAAnnotationsEnabled();

AX_EXPORT extern const base::Feature kEnableAccessibilityExposeDisplayNone;

// Returns true if "display: none" nodes should be exposed to the
// browser process AXTree.
AX_EXPORT bool IsAccessibilityExposeDisplayNoneEnabled();

AX_EXPORT extern const base::Feature kEnableAccessibilityExposeHTMLElement;

// Returns true if the <html> element should be exposed to the
// browser process AXTree (as an ignored node).
AX_EXPORT bool IsAccessibilityExposeHTMLElementEnabled();

// Serializes accessibility information from the Views tree and deserializes it
// into an AXTree in the browser process.
AX_EXPORT extern const base::Feature kEnableAccessibilityTreeForViews;

// Returns true if the Views tree is exposed using an AXTree in the browser
// process. Returns false if the Views tree is exposed to accessibility
// directly.
AX_EXPORT bool IsAccessibilityTreeForViewsEnabled();

}  // namespace features

#endif  // UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_