OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
11 | 11 |
12 component("touch_selection") { | 12 component("touch_selection") { |
13 output_name = "ui_touch_selection" | 13 output_name = "ui_touch_selection" |
14 | 14 |
15 sources = [ | 15 sources = [ |
| 16 "longpress_drag_selector.cc", |
| 17 "longpress_drag_selector.h", |
16 "selection_event_type.h", | 18 "selection_event_type.h", |
17 "touch_handle.cc", | 19 "touch_handle.cc", |
18 "touch_handle.h", | 20 "touch_handle.h", |
19 "touch_handle_drawable_aura.cc", | 21 "touch_handle_drawable_aura.cc", |
20 "touch_handle_drawable_aura.h", | 22 "touch_handle_drawable_aura.h", |
21 "touch_handle_orientation.h", | 23 "touch_handle_orientation.h", |
22 "touch_selection_controller.cc", | 24 "touch_selection_controller.cc", |
23 "touch_selection_controller.h", | 25 "touch_selection_controller.h", |
| 26 "touch_selection_draggable.h", |
24 "ui_touch_selection_export.h", | 27 "ui_touch_selection_export.h", |
25 ] | 28 ] |
26 | 29 |
27 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] | 30 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] |
28 | 31 |
29 deps = [ | 32 deps = [ |
30 "//base:base", | 33 "//base:base", |
31 "//ui/aura:aura", | 34 "//ui/aura:aura", |
32 "//ui/aura_extra:aura_extra", | 35 "//ui/aura_extra:aura_extra", |
33 "//ui/base:base", | 36 "//ui/base:base", |
(...skipping 14 matching lines...) Expand all Loading... |
48 | 51 |
49 sources -= [ | 52 sources -= [ |
50 "touch_handle_drawable_aura.cc", | 53 "touch_handle_drawable_aura.cc", |
51 "touch_handle_drawable_aura.h", | 54 "touch_handle_drawable_aura.h", |
52 ] | 55 ] |
53 } | 56 } |
54 } | 57 } |
55 | 58 |
56 test("ui_touch_selection_unittests") { | 59 test("ui_touch_selection_unittests") { |
57 sources = [ | 60 sources = [ |
| 61 "longpress_drag_selector_unittest.cc", |
58 "touch_handle_unittest.cc", | 62 "touch_handle_unittest.cc", |
59 "touch_selection_controller_unittest.cc", | 63 "touch_selection_controller_unittest.cc", |
60 ] | 64 ] |
61 | 65 |
62 deps = [ | 66 deps = [ |
63 ":touch_selection", | 67 ":touch_selection", |
64 "//base/test:run_all_unittests", | 68 "//base/test:run_all_unittests", |
65 "//testing/gmock:gmock", | 69 "//testing/gmock:gmock", |
66 "//testing/gtest:gtest", | 70 "//testing/gtest:gtest", |
67 "//ui/base:base", | 71 "//ui/base:base", |
(...skipping 14 matching lines...) Expand all Loading... |
82 } | 86 } |
83 java_cpp_enum("ui_touch_handle_orientation_srcjar") { | 87 java_cpp_enum("ui_touch_handle_orientation_srcjar") { |
84 sources = [ | 88 sources = [ |
85 "touch_handle_orientation.h", | 89 "touch_handle_orientation.h", |
86 ] | 90 ] |
87 outputs = [ | 91 outputs = [ |
88 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", | 92 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", |
89 ] | 93 ] |
90 } | 94 } |
91 } | 95 } |
OLD | NEW |