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("//build/config/ui.gni")
6 import("//testing/test.gni")
9 import("//build/config/android/rules.gni")
12 component("touch_selection") {
13 output_name = "ui_touch_selection"
16 "longpress_drag_selector.cc",
17 "longpress_drag_selector.h",
18 "selection_event_type.h",
21 "touch_handle_orientation.h",
22 "touch_selection_controller.cc",
23 "touch_selection_controller.h",
24 "touch_selection_draggable.h",
25 "ui_touch_selection_export.h",
28 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
34 "//ui/events:gesture_detection",
35 "//ui/gfx/geometry:geometry",
42 "//ui/aura_extra:aura_extra",
43 "//ui/compositor:compositor",
48 "touch_handle_drawable_aura.cc",
49 "touch_handle_drawable_aura.h",
50 "touch_selection_menu_runner.cc",
51 "touch_selection_menu_runner.h",
56 # TODO(GYP): Delete this after we've converted everything to GN.
57 # The _run targets exist only for compatibility w/ GYP.
58 group("ui_touch_selection_unittests_run") {
61 ":ui_touch_selection_unittests",
65 test("ui_touch_selection_unittests") {
67 "longpress_drag_selector_unittest.cc",
68 "touch_handle_unittest.cc",
69 "touch_selection_controller_unittest.cc",
74 "//base/test:run_all_unittests",
75 "//testing/gmock:gmock",
76 "//testing/gtest:gtest",
78 "//ui/events:test_support",
80 "//ui/gfx:test_support",
83 data_deps = [ "//third_party/mesa:osmesa" ]
87 java_cpp_enum("ui_touch_selection_enums_srcjar") {
89 "selection_event_type.h",
92 "org/chromium/ui/touch_selection/SelectionEventType.java",
95 java_cpp_enum("ui_touch_handle_orientation_srcjar") {
97 "touch_handle_orientation.h",
100 "org/chromium/ui/touch_selection/TouchHandleOrientation.java",