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("//tools/grit/grit_rule.gni")
7 component("keyboard") {
11 "keyboard_constants.cc",
12 "keyboard_constants.h",
13 "keyboard_controller.cc",
14 "keyboard_controller.h",
15 "keyboard_controller_observer.h",
16 "keyboard_controller_proxy.cc",
17 "keyboard_controller_proxy.h",
18 "keyboard_layout_manager.h",
19 "keyboard_layout_manager.cc",
21 "keyboard_switches.cc",
22 "keyboard_switches.h",
27 defines = [ "KEYBOARD_IMPLEMENTATION" ]
32 "//base/third_party/dynamic_annotations",
33 "//content/public/browser",
47 grit("resources_grit") {
48 source = "keyboard_resources.grd"
52 sources = [ "$target_gen_dir/keyboard_resources.pak" ]
53 outputs = [ "$root_out_dir/keyboard_resources.pak" ]
54 deps = [ ":resources_grit" ]
55 forward_dependent_configs_from = deps
58 # TODO(GYP) enable this when all dependencies are resolved. Some transitive
59 # deps aren't done yet.
62 test("keyboard_unittests") {
64 "test/run_all_unittests.cc",
65 "keyboard_controller_unittest.cc",
72 "//base/test:test_support",
77 "//ui/aura:test_support",
80 "//ui/compositor:test_support",
83 "//ui/resources:ui_test_pak",