[Telemetry] Remove is_respsonsive flag.
[chromium-blink-merge.git] / ui / accessibility / BUILD.gn
blobd168b5e25a94f06b501695f452d13eae5ec9116b
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/json_schema_api.gni")
6 import("//testing/test.gni")
8 component("accessibility") {
9   sources = [
10     "ax_node.cc",
11     "ax_node.h",
12     "ax_node_data.cc",
13     "ax_node_data.h",
14     "ax_serializable_tree.cc",
15     "ax_serializable_tree.h",
16     "ax_text_utils.cc",
17     "ax_text_utils.h",
18     "ax_tree.cc",
19     "ax_tree.h",
20     "ax_tree_serializer.cc",
21     "ax_tree_serializer.h",
22     "ax_tree_source.h",
23     "ax_tree_update.cc",
24     "ax_tree_update.h",
25     "ax_view_state.cc",
26     "ax_view_state.h",
27     "platform/ax_platform_node.cc",
28     "platform/ax_platform_node.h",
29     "platform/ax_platform_node_base.cc",
30     "platform/ax_platform_node_base.h",
31     "platform/ax_platform_node_delegate.h",
32     "platform/ax_platform_node_mac.h",
33     "platform/ax_platform_node_mac.mm",
34     "platform/ax_platform_node_win.cc",
35     "platform/ax_platform_node_win.h",
36   ]
38   defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
40   public_deps = [
41     ":ax_gen",
42     "//base",
43     "//ui/gfx",
44     "//ui/gfx/geometry",
45   ]
47   if (is_win) {
48     public_deps += [ "//third_party/iaccessible2" ]
49   }
52 source_set("test_support") {
53   sources = [
54     "platform/test_ax_node_wrapper.cc",
55     "platform/test_ax_node_wrapper.h",
56     "tree_generator.cc",
57     "tree_generator.h",
58   ]
60   deps = [
61     ":accessibility",
62   ]
65 test("accessibility_unittests") {
66   sources = [
67     "ax_generated_tree_unittest.cc",
68     "ax_text_utils_unittest.cc",
69     "ax_tree_serializer_unittest.cc",
70     "ax_tree_unittest.cc",
71     "platform/ax_platform_node_win_unittest.cc",
72   ]
74   deps = [
75     ":accessibility",
76     ":test_support",
77     "//base",
78     "//base/test:run_all_unittests",
79     "//testing/gtest",
80     "//ui/gfx",
81     "//ui/gfx/geometry",
82   ]
84   if (is_win) {
85     deps += [ "//third_party/iaccessible2" ]
86   }
89 json_schema_api("ax_gen") {
90   sources = [
91     "ax_enums.idl",
92   ]
93   deps = [
94     "//base/third_party/dynamic_annotations",
95   ]
96   root_namespace = "ui"
97   schemas = true