| 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 "selection_event_type.h", | 16 "selection_event_type.h", |
| 17 "touch_handle.cc", | 17 "touch_handle.cc", |
| 18 "touch_handle.h", | 18 "touch_handle.h", |
| 19 "touch_handle_drawable_aura.cc", |
| 20 "touch_handle_drawable_aura.h", |
| 19 "touch_handle_orientation.h", | 21 "touch_handle_orientation.h", |
| 20 "touch_selection_controller.cc", | 22 "touch_selection_controller.cc", |
| 21 "touch_selection_controller.h", | 23 "touch_selection_controller.h", |
| 22 "ui_touch_selection_export.h", | 24 "ui_touch_selection_export.h", |
| 23 ] | 25 ] |
| 24 | 26 |
| 25 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] | 27 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] |
| 26 | 28 |
| 27 deps = [ | 29 deps = [ |
| 28 "//base:base", | 30 "//base:base", |
| 31 "//ui/aura:aura", |
| 32 "//ui/aura_extra:aura_extra", |
| 29 "//ui/base:base", | 33 "//ui/base:base", |
| 34 "//ui/compositor:compositor", |
| 30 "//ui/events:events", | 35 "//ui/events:events", |
| 31 "//ui/events:gesture_detection", | 36 "//ui/events:gesture_detection", |
| 37 "//ui/gfx:gfx", |
| 32 "//ui/gfx/geometry:geometry", | 38 "//ui/gfx/geometry:geometry", |
| 33 ] | 39 ] |
| 40 |
| 41 if (!use_aura) { |
| 42 deps -= [ |
| 43 "//ui/aura:aura", |
| 44 "//ui/aura_extra:aura_extra", |
| 45 "//ui/compositor:compositor", |
| 46 "//ui/gfx:gfx", |
| 47 ] |
| 48 |
| 49 sources -= [ |
| 50 "touch_handle_drawable_aura.cc", |
| 51 "touch_handle_drawable_aura.h", |
| 52 ] |
| 53 } |
| 34 } | 54 } |
| 35 | 55 |
| 36 test("ui_touch_selection_unittests") { | 56 test("ui_touch_selection_unittests") { |
| 37 sources = [ | 57 sources = [ |
| 38 "touch_handle_unittest.cc", | 58 "touch_handle_unittest.cc", |
| 39 "touch_selection_controller_unittest.cc", | 59 "touch_selection_controller_unittest.cc", |
| 40 ] | 60 ] |
| 41 | 61 |
| 42 deps = [ | 62 deps = [ |
| 43 ":touch_selection", | 63 ":touch_selection", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 62 } | 82 } |
| 63 java_cpp_enum("ui_touch_handle_orientation_srcjar") { | 83 java_cpp_enum("ui_touch_handle_orientation_srcjar") { |
| 64 sources = [ | 84 sources = [ |
| 65 "touch_handle_orientation.h", | 85 "touch_handle_orientation.h", |
| 66 ] | 86 ] |
| 67 outputs = [ | 87 outputs = [ |
| 68 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", | 88 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", |
| 69 ] | 89 ] |
| 70 } | 90 } |
| 71 } | 91 } |
| OLD | NEW |