Home | History | Annotate | Download | only in accessibility
      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.
      4 
      5 import("//extensions/generated_extensions_api.gni")
      6 
      7 component("accessibility") {
      8   sources = [
      9     "ax_node.cc",
     10     "ax_node.h",
     11     "ax_node_data.cc",
     12     "ax_node_data.h",
     13     "ax_serializable_tree.cc",
     14     "ax_serializable_tree.h",
     15     "ax_text_utils.cc",
     16     "ax_text_utils.h",
     17     "ax_tree.cc",
     18     "ax_tree.h",
     19     "ax_tree_serializer.cc",
     20     "ax_tree_serializer.h",
     21     "ax_tree_source.h",
     22     "ax_tree_update.cc",
     23     "ax_tree_update.h",
     24     "ax_view_state.cc",
     25     "ax_view_state.h",
     26     "platform/ax_platform_node.cc",
     27     "platform/ax_platform_node.h",
     28     "platform/ax_platform_node_base.cc",
     29     "platform/ax_platform_node_base.h",
     30     "platform/ax_platform_node_delegate.h",
     31     "platform/ax_platform_node_mac.h",
     32     "platform/ax_platform_node_mac.mm",
     33   ]
     34 
     35   defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
     36 
     37   public_deps = [
     38     ":ax_gen",
     39     "//base",
     40     "//ui/gfx",
     41     "//ui/gfx/geometry",
     42   ]
     43 }
     44 
     45 source_set("test_support") {
     46   sources = [
     47     "tree_generator.cc",
     48     "tree_generator.h"
     49   ]
     50 
     51   deps = [
     52     ":accessibility"
     53   ]
     54 }
     55 
     56 test("accessibility_unittests") {
     57   sources = [
     58     "ax_generated_tree_unittest.cc",
     59     "ax_tree_serializer_unittest.cc",
     60     "ax_tree_unittest.cc",
     61   ]
     62 
     63   deps = [
     64     ":accessibility",
     65     ":test_support",
     66     "//base",
     67     "//base/test:run_all_unittests",
     68     "//testing/gtest",
     69     "//ui/gfx",
     70     "//ui/gfx/geometry",
     71   ]
     72 }
     73 
     74 generated_extensions_api("ax_gen") {
     75   sources = [ "ax_enums.idl" ]
     76   deps = [ "//base/third_party/dynamic_annotations" ]
     77   root_namespace = "ui"
     78   schemas = true
     79 }
     80