Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: ui/touch_selection/BUILD.gn

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improved tap-on-selection tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_selection_controller.cc", 21 "touch_selection_controller.cc",
20 "touch_selection_controller.h", 22 "touch_selection_controller.h",
23 "touch_selection_controller_aura.cc",
24 "touch_selection_controller_aura.h",
25 "touch_selection_menu_runner.cc",
26 "touch_selection_menu_runner.h",
21 "ui_touch_selection_export.h", 27 "ui_touch_selection_export.h",
22 ] 28 ]
23 29
24 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] 30 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
25 31
26 deps = [ 32 deps = [
27 "//base:base", 33 "//base:base",
34 "//ui/aura:aura",
35 "//ui/aura_extra:aura_extra",
28 "//ui/base:base", 36 "//ui/base:base",
37 "//ui/compositor:compositor",
29 "//ui/events:events", 38 "//ui/events:events",
30 "//ui/events:gesture_detection", 39 "//ui/events:gesture_detection",
40 "//ui/gfx:gfx",
31 "//ui/gfx/geometry:geometry", 41 "//ui/gfx/geometry:geometry",
32 ] 42 ]
43
44 if (!use_aura) {
45 deps -= [
46 "//ui/aura:aura",
47 "//ui/aura_extra:aura_extra",
48 "//ui/compositor:compositor",
49 "//ui/gfx:gfx",
50 ]
51 sources -= [
52 "touch_handle_drawable_aura.cc",
53 "touch_handle_drawable_aura.h",
54 "touch_selection_controller_aura.cc",
55 "touch_selection_controller_aura.h",
56 "touch_selection_menu_runner.cc",
57 "touch_selection_menu_runner.h",
58 ]
59 }
33 } 60 }
34 61
35 test("ui_touch_selection_unittests") { 62 test("ui_touch_selection_unittests") {
36 sources = [ 63 sources = [
64 "run_all_unittests.cc",
37 "touch_handle_unittest.cc", 65 "touch_handle_unittest.cc",
66 "touch_selection_controller_aura_unittest.cc",
38 "touch_selection_controller_unittest.cc", 67 "touch_selection_controller_unittest.cc",
39 ] 68 ]
40 69
41 deps = [ 70 deps = [
42 ":touch_selection", 71 ":touch_selection",
43 "//base/test:run_all_unittests",
44 "//testing/gmock:gmock", 72 "//testing/gmock:gmock",
45 "//testing/gtest:gtest", 73 "//testing/gtest:gtest",
74 "//ui/aura:test_support",
46 "//ui/base:base", 75 "//ui/base:base",
47 "//ui/events:test_support", 76 "//ui/events:test_support",
48 "//ui/gfx:gfx", 77 "//ui/gfx:gfx",
49 "//ui/gfx:test_support", 78 "//ui/gfx:test_support",
50 ] 79 ]
80
81 if (!use_aura) {
82 deps -= [ "//ui/aura:test_support" ]
83 sources -= [ "touch_selection_controller_aura_unittest.cc" ]
84 }
51 } 85 }
52 86
53 if (is_android) { 87 if (is_android) {
54 java_cpp_enum("ui_touch_selection_enums_srcjar") { 88 java_cpp_enum("ui_touch_selection_enums_srcjar") {
55 sources = [ 89 sources = [
56 "selection_event_type.h", 90 "selection_event_type.h",
57 ] 91 ]
58 outputs = [ 92 outputs = [
59 "org/chromium/ui/touch_selection/SelectionEventType.java", 93 "org/chromium/ui/touch_selection/SelectionEventType.java",
60 ] 94 ]
61 } 95 }
62 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698