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 "selection_event_type.h",
19 "touch_handle_drawable_aura.cc",
20 "touch_handle_drawable_aura.h",
21 "touch_handle_orientation.h",
22 "touch_selection_controller.cc",
23 "touch_selection_controller.h",
24 "ui_touch_selection_export.h",
27 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
33 "//ui/aura_extra:aura_extra",
35 "//ui/compositor:compositor",
37 "//ui/events:gesture_detection",
39 "//ui/gfx/geometry:geometry",
46 "//ui/aura_extra:aura_extra",
47 "//ui/compositor:compositor",
52 "touch_handle_drawable_aura.cc",
53 "touch_handle_drawable_aura.h",
58 test("ui_touch_selection_unittests") {
60 "touch_handle_unittest.cc",
61 "touch_selection_controller_unittest.cc",
66 "//base/test:run_all_unittests",
67 "//testing/gmock:gmock",
68 "//testing/gtest:gtest",
70 "//ui/events:test_support",
72 "//ui/gfx:test_support",
77 java_cpp_enum("ui_touch_selection_enums_srcjar") {
79 "selection_event_type.h",
82 "org/chromium/ui/touch_selection/SelectionEventType.java",
85 java_cpp_enum("ui_touch_handle_orientation_srcjar") {
87 "touch_handle_orientation.h",
90 "org/chromium/ui/touch_selection/TouchHandleOrientation.java",