| Index: ui/touch_selection/BUILD.gn
|
| diff --git a/ui/touch_selection/BUILD.gn b/ui/touch_selection/BUILD.gn
|
| index e6767cb4f91459b722e65ee1eed841caf34195b0..a019d1dbb9c2cb29f6905f28009bc0f4d7067657 100644
|
| --- a/ui/touch_selection/BUILD.gn
|
| +++ b/ui/touch_selection/BUILD.gn
|
| @@ -16,8 +16,14 @@ component("touch_selection") {
|
| "selection_event_type.h",
|
| "touch_handle.cc",
|
| "touch_handle.h",
|
| + "touch_handle_drawable_aura.cc",
|
| + "touch_handle_drawable_aura.h",
|
| "touch_selection_controller.cc",
|
| "touch_selection_controller.h",
|
| + "touch_selection_controller_aura.cc",
|
| + "touch_selection_controller_aura.h",
|
| + "touch_selection_menu_runner.cc",
|
| + "touch_selection_menu_runner.h",
|
| "ui_touch_selection_export.h",
|
| ]
|
|
|
| @@ -25,28 +31,54 @@ component("touch_selection") {
|
|
|
| deps = [
|
| "//base:base",
|
| + "//ui/aura:aura",
|
| "//ui/base:base",
|
| + "//ui/compositor:compositor",
|
| "//ui/events:events",
|
| "//ui/events:gesture_detection",
|
| + "//ui/gfx:gfx",
|
| "//ui/gfx/geometry:geometry",
|
| ]
|
| +
|
| + if (!use_aura) {
|
| + deps -= [
|
| + "//ui/aura:aura",
|
| + "//ui/compositor:compositor",
|
| + "//ui/gfx:gfx",
|
| + ]
|
| + sources -= [
|
| + "touch_handle_drawable_aura.cc",
|
| + "touch_handle_drawable_aura.h",
|
| + "touch_selection_controller_aura.cc",
|
| + "touch_selection_controller_aura.h",
|
| + "touch_selection_menu_runner.cc",
|
| + "touch_selection_menu_runner.h",
|
| + ]
|
| + }
|
| }
|
|
|
| test("ui_touch_selection_unittests") {
|
| sources = [
|
| + "run_all_unittests.cc",
|
| "touch_handle_unittest.cc",
|
| + "touch_selection_controller_aura_unittest.cc",
|
| "touch_selection_controller_unittest.cc",
|
| ]
|
|
|
| deps = [
|
| ":touch_selection",
|
| - "//base/test:run_all_unittests",
|
| "//testing/gtest:gtest",
|
| + "//ui/aura:test_support",
|
| "//ui/base:base",
|
| "//ui/events:test_support",
|
| "//ui/gfx:gfx",
|
| "//ui/gfx:test_support",
|
| ]
|
| +
|
| + if (!use_aura) {
|
| + deps -= [ "//ui/aura:test_support" ]
|
| + sources -= [ "touch_selection_controller_aura_unittest.cc" ]
|
| + }
|
| }
|
|
|
| if (is_android) {
|
|
|