| # Copyright 2018 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/chromeos/ui_mode.gni") |
| |
| assert(is_chromeos_ash) |
| |
| # KSV: Keyboard Shortcut Viewer |
| source_set("shortcut_viewer") { |
| sources = [ |
| "keyboard_shortcut_viewer_metadata.cc", |
| "keyboard_shortcut_viewer_metadata.h", |
| "ksv_export.h", |
| "views/bubble_view.cc", |
| "views/bubble_view.h", |
| "views/keyboard_shortcut_item_list_view.cc", |
| "views/keyboard_shortcut_item_list_view.h", |
| "views/keyboard_shortcut_item_view.cc", |
| "views/keyboard_shortcut_item_view.h", |
| "views/keyboard_shortcut_view.cc", |
| "views/keyboard_shortcut_view.h", |
| "views/ksv_search_box_view.cc", |
| "views/ksv_search_box_view.h", |
| ] |
| |
| defines = [ "KSV_IMPLEMENTATION" ] |
| |
| deps = [ |
| "//ash", |
| "//ash/constants", |
| "//ash/public/cpp", |
| "//ash/public/cpp/resources:ash_public_unscaled_resources", |
| "//ash/resources/vector_icons", |
| "//ash/search_box", |
| "//ash/shortcut_viewer/strings", |
| "//cc/paint", |
| "//chromeos/ui/base", |
| "//chromeos/ui/wm", |
| "//ui/accessibility", |
| "//ui/aura", |
| "//ui/chromeos/styles:cros_tokens_color_mappings", |
| "//ui/events:events_base", |
| "//ui/events/ash", |
| "//ui/events/devices", |
| "//ui/events/ozone/layout", |
| "//ui/views", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "views/keyboard_shortcut_view_unittest.cc" ] |
| deps = [ |
| ":shortcut_viewer", |
| "//ash:test_support", |
| "//base/test:test_support", |
| "//testing/gtest", |
| "//ui/compositor:test_support", |
| "//ui/events:test_support", |
| "//ui/events/devices:test_support", |
| "//ui/views", |
| "//ui/views:test_support", |
| ] |
| } |