| 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 "//skia:skia", | 33 "//skia:skia", |
| 31 "//base:base", | 34 "//base:base", |
| 32 "//ui/aura:aura", | 35 "//ui/aura:aura", |
| 33 "//ui/aura_extra:aura_extra", | 36 "//ui/aura_extra:aura_extra", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 50 | 53 |
| 51 sources -= [ | 54 sources -= [ |
| 52 "touch_handle_drawable_aura.cc", | 55 "touch_handle_drawable_aura.cc", |
| 53 "touch_handle_drawable_aura.h", | 56 "touch_handle_drawable_aura.h", |
| 54 ] | 57 ] |
| 55 } | 58 } |
| 56 } | 59 } |
| 57 | 60 |
| 58 test("ui_touch_selection_unittests") { | 61 test("ui_touch_selection_unittests") { |
| 59 sources = [ | 62 sources = [ |
| 63 "longpress_drag_selector_unittest.cc", |
| 60 "touch_handle_unittest.cc", | 64 "touch_handle_unittest.cc", |
| 61 "touch_selection_controller_unittest.cc", | 65 "touch_selection_controller_unittest.cc", |
| 62 ] | 66 ] |
| 63 | 67 |
| 64 deps = [ | 68 deps = [ |
| 65 ":touch_selection", | 69 ":touch_selection", |
| 66 "//base/test:run_all_unittests", | 70 "//base/test:run_all_unittests", |
| 67 "//testing/gmock:gmock", | 71 "//testing/gmock:gmock", |
| 68 "//testing/gtest:gtest", | 72 "//testing/gtest:gtest", |
| 69 "//ui/base:base", | 73 "//ui/base:base", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 84 } | 88 } |
| 85 java_cpp_enum("ui_touch_handle_orientation_srcjar") { | 89 java_cpp_enum("ui_touch_handle_orientation_srcjar") { |
| 86 sources = [ | 90 sources = [ |
| 87 "touch_handle_orientation.h", | 91 "touch_handle_orientation.h", |
| 88 ] | 92 ] |
| 89 outputs = [ | 93 outputs = [ |
| 90 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", | 94 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", |
| 91 ] | 95 ] |
| 92 } | 96 } |
| 93 } | 97 } |
| OLD | NEW |