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",
41 "//ui/keyboard/webui",
46 grit("resources_grit") {
47 source = "keyboard_resources.grd"
49 "grit/keyboard_resources.h",
50 "grit/keyboard_resources_map.h",
51 "keyboard_resources.pak",
52 "keyboard_resources.rc",
55 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js"
57 "-E", "keyboard_mojom_gen_js=" +
58 rebase_path(keyboard_mojom_gen_js, root_build_dir),
67 sources = [ "$target_gen_dir/keyboard_resources.pak" ]
68 outputs = [ "$root_out_dir/keyboard_resources.pak" ]
69 deps = [ ":resources_grit" ]
70 forward_dependent_configs_from = deps
73 test("keyboard_unittests") {
75 "test/run_all_unittests.cc",
76 "keyboard_controller_unittest.cc",
83 "//base/test:test_support",
88 "//ui/aura:test_support",
91 "//ui/compositor:test_support",
94 "//ui/resources:ui_test_pak",