Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: ui/accessibility/BUILD.gn

Issue 2852763002: Added a system caret used for accessibility on Windows. (Closed)
Patch Set: Added a system caret for accessibility on Windows. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | ui/accessibility/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/linux/pkg_config.gni") 5 import("//build/config/linux/pkg_config.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//testing/libfuzzer/fuzzer_test.gni") 8 import("//testing/libfuzzer/fuzzer_test.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//tools/json_schema_compiler/json_schema_api.gni") 10 import("//tools/json_schema_compiler/json_schema_api.gni")
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 "platform/ax_android_constants.cc", 52 "platform/ax_android_constants.cc",
53 "platform/ax_android_constants.h", 53 "platform/ax_android_constants.h",
54 "platform/ax_platform_unique_id.cc", 54 "platform/ax_platform_unique_id.cc",
55 "platform/ax_platform_unique_id.h", 55 "platform/ax_platform_unique_id.h",
56 "platform/ax_snapshot_node_android_platform.cc", 56 "platform/ax_snapshot_node_android_platform.cc",
57 "platform/ax_snapshot_node_android_platform.h", 57 "platform/ax_snapshot_node_android_platform.h",
58 ] 58 ]
59 59
60 if (has_native_accessibility) { 60 if (has_native_accessibility) {
61 sources += [ 61 sources += [
62 "platform/ax_fake_caret_win.cc",
63 "platform/ax_fake_caret_win.h",
64 "platform/ax_platform_node.cc", 62 "platform/ax_platform_node.cc",
65 "platform/ax_platform_node.h", 63 "platform/ax_platform_node.h",
66 "platform/ax_platform_node_base.cc", 64 "platform/ax_platform_node_base.cc",
67 "platform/ax_platform_node_base.h", 65 "platform/ax_platform_node_base.h",
68 "platform/ax_platform_node_delegate.h", 66 "platform/ax_platform_node_delegate.h",
69 "platform/ax_platform_node_mac.h", 67 "platform/ax_platform_node_mac.h",
70 "platform/ax_platform_node_mac.mm", 68 "platform/ax_platform_node_mac.mm",
71 "platform/ax_platform_node_win.cc", 69 "platform/ax_platform_node_win.cc",
72 "platform/ax_platform_node_win.h", 70 "platform/ax_platform_node_win.h",
71 "platform/ax_system_caret_win.cc",
72 "platform/ax_system_caret_win.h",
73 ] 73 ]
74 } 74 }
75 75
76 defines = [ "ACCESSIBILITY_IMPLEMENTATION" ] 76 defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
77 77
78 public_deps = [ 78 public_deps = [
79 ":ax_gen", 79 ":ax_gen",
80 "//base", 80 "//base",
81 "//base:i18n", 81 "//base:i18n",
82 "//ui/base", 82 "//ui/base",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 java_cpp_enum("ax_enumerations_srcjar") { 133 java_cpp_enum("ax_enumerations_srcjar") {
134 sources = [ 134 sources = [
135 "ax_enums.idl", 135 "ax_enums.idl",
136 ] 136 ]
137 } 137 }
138 } 138 }
139 139
140 static_library("test_support") { 140 static_library("test_support") {
141 testonly = true
141 sources = [ 142 sources = [
142 "tree_generator.cc", 143 "tree_generator.cc",
143 "tree_generator.h", 144 "tree_generator.h",
144 ] 145 ]
145 146
146 if (is_win) { 147 if (is_win) {
147 sources += [ 148 sources += [
148 "platform/test_ax_node_wrapper.cc", 149 "platform/test_ax_node_wrapper.cc",
149 "platform/test_ax_node_wrapper.h", 150 "platform/test_ax_node_wrapper.h",
150 ] 151 ]
151 } 152 }
152 153
153 deps = [ 154 deps = [
154 ":accessibility", 155 ":accessibility",
155 ] 156 ]
156 } 157 }
157 158
159 if (is_win) {
160 test("accessibility_interactive_ui_tests") {
dmazzoni 2017/06/27 15:28:42 This would require extra work because it won't eve
161 testonly = true
162 sources = [
163 "platform/ax_system_caret_win_interactive_uitest.cc",
164 ]
165
166 deps = [
167 ":accessibility",
168 "//base",
169 "//base/test:test_support",
170 "//testing/gtest",
171 "//ui/base",
172 "//ui/gfx",
173 "//ui/gfx/geometry",
174 "//ui/gl:test_support",
175 "//ui/views/:test_support",
176 ]
177
178 if (is_win) {
179 deps += [ "//third_party/iaccessible2" ]
180 libs = [ "oleacc.lib" ]
181 }
182 }
183 }
184
158 test("accessibility_unittests") { 185 test("accessibility_unittests") {
186 testonly = true
159 sources = [ 187 sources = [
160 "ax_generated_tree_unittest.cc", 188 "ax_generated_tree_unittest.cc",
161 "ax_node_position_unittest.cc", 189 "ax_node_position_unittest.cc",
162 "ax_text_utils_unittest.cc", 190 "ax_text_utils_unittest.cc",
163 "ax_tree_combiner_unittest.cc", 191 "ax_tree_combiner_unittest.cc",
164 "ax_tree_serializer_unittest.cc", 192 "ax_tree_serializer_unittest.cc",
165 "ax_tree_unittest.cc", 193 "ax_tree_unittest.cc",
166 "platform/ax_platform_node_win_unittest.cc", 194 "platform/ax_platform_node_win_unittest.cc",
167 ] 195 ]
168 196
169 deps = [ 197 deps = [
170 ":accessibility", 198 ":accessibility",
171 ":ax_gen", 199 ":ax_gen",
172 ":test_support", 200 ":test_support",
173 "//base", 201 "//base",
174 "//base/test:run_all_unittests", 202 "//base/test:run_all_unittests",
175 "//skia", 203 "//skia",
176 "//testing/gtest", 204 "//testing/gtest",
177 "//ui/base", 205 "//ui/base",
178 "//ui/gfx", 206 "//ui/gfx",
179 "//ui/gfx/geometry", 207 "//ui/gfx/geometry",
180 ] 208 ]
181 209
182 if (is_win) { 210 if (is_win) {
183 deps += [ "//third_party/iaccessible2" ] 211 deps += [ "//third_party/iaccessible2" ]
212 libs = [ "oleacc.lib" ]
184 } 213 }
185 } 214 }
186 215
187 json_schema_api("ax_gen") { 216 json_schema_api("ax_gen") {
188 sources = [ 217 sources = [
189 "ax_enums.idl", 218 "ax_enums.idl",
190 ] 219 ]
191 deps = [ 220 deps = [
192 "//base/third_party/dynamic_annotations", 221 "//base/third_party/dynamic_annotations",
193 ] 222 ]
194 root_namespace = "ui" 223 root_namespace = "ui"
195 schemas = true 224 schemas = true
196 } 225 }
197 226
198 fuzzer_test("ax_tree_fuzzer") { 227 fuzzer_test("ax_tree_fuzzer") {
199 sources = [ 228 sources = [
200 "ax_tree_fuzzer.cc", 229 "ax_tree_fuzzer.cc",
201 ] 230 ]
202 231
203 deps = [ 232 deps = [
204 ":accessibility", 233 ":accessibility",
205 ] 234 ]
206 } 235 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | ui/accessibility/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698