OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 import("//build/config/ui.gni") |
| 6 |
| 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") |
| 9 } |
| 10 |
| 11 component("touch_selection") { |
| 12 output_name = "ui_touch_selection" |
| 13 |
| 14 sources = [ |
| 15 "selection_event_type.h", |
| 16 "touch_handle.cc", |
| 17 "touch_handle.h", |
| 18 "touch_selection_controller.cc", |
| 19 "touch_selection_controller.h", |
| 20 "ui_touch_selection_export.h", |
| 21 ] |
| 22 |
| 23 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] |
| 24 |
| 25 deps = [ |
| 26 "//base:base", |
| 27 "//ui/base:base", |
| 28 "//ui/events:events", |
| 29 "//ui/events:gesture_detection", |
| 30 "//ui/gfx/geometry:geometry", |
| 31 ] |
| 32 } |
| 33 |
| 34 test("ui_touch_selection_unittests") { |
| 35 sources = [ |
| 36 "touch_handle_unittest.cc", |
| 37 "touch_selection_controller_unittest.cc", |
| 38 ] |
| 39 |
| 40 deps = [ |
| 41 ":touch_selection", |
| 42 "//base/test:run_all_unittests", |
| 43 "//testing/gtest:gtest", |
| 44 "//ui/base:base", |
| 45 "//ui/events:test_support", |
| 46 "//ui/gfx:gfx", |
| 47 "//ui/gfx:test_support", |
| 48 ] |
| 49 } |
| 50 |
| 51 if (is_android) { |
| 52 java_cpp_enum("ui_touch_selection_enums_srcjar") { |
| 53 sources = [ |
| 54 "selection_event_type.h", |
| 55 ] |
| 56 outputs = [ |
| 57 "org/chromium/ui/touch_selection/SelectionEventType.java", |
| 58 ] |
| 59 } |
| 60 } |
OLD | NEW |