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

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: Rebased after addition of touch_handle_orientation file 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_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",
24 "touch_selection_controller_aura.cc",
25 "touch_selection_controller_aura.h",
26 "touch_selection_menu_runner.cc",
27 "touch_selection_menu_runner.h",
22 "ui_touch_selection_export.h", 28 "ui_touch_selection_export.h",
23 ] 29 ]
24 30
25 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] 31 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
26 32
27 deps = [ 33 deps = [
28 "//base:base", 34 "//base:base",
35 "//ui/aura:aura",
36 "//ui/aura_extra:aura_extra",
29 "//ui/base:base", 37 "//ui/base:base",
38 "//ui/compositor:compositor",
30 "//ui/events:events", 39 "//ui/events:events",
31 "//ui/events:gesture_detection", 40 "//ui/events:gesture_detection",
41 "//ui/gfx:gfx",
32 "//ui/gfx/geometry:geometry", 42 "//ui/gfx/geometry:geometry",
33 ] 43 ]
44
45 if (!use_aura) {
46 deps -= [
47 "//ui/aura:aura",
48 "//ui/aura_extra:aura_extra",
49 "//ui/compositor:compositor",
50 "//ui/gfx:gfx",
51 ]
52 sources -= [
53 "touch_handle_drawable_aura.cc",
54 "touch_handle_drawable_aura.h",
55 "touch_selection_controller_aura.cc",
56 "touch_selection_controller_aura.h",
57 "touch_selection_menu_runner.cc",
58 "touch_selection_menu_runner.h",
59 ]
60 }
34 } 61 }
35 62
36 test("ui_touch_selection_unittests") { 63 test("ui_touch_selection_unittests") {
37 sources = [ 64 sources = [
65 "run_all_unittests.cc",
38 "touch_handle_unittest.cc", 66 "touch_handle_unittest.cc",
67 "touch_selection_controller_aura_unittest.cc",
39 "touch_selection_controller_unittest.cc", 68 "touch_selection_controller_unittest.cc",
40 ] 69 ]
41 70
42 deps = [ 71 deps = [
43 ":touch_selection", 72 ":touch_selection",
44 "//base/test:run_all_unittests",
45 "//testing/gmock:gmock", 73 "//testing/gmock:gmock",
46 "//testing/gtest:gtest", 74 "//testing/gtest:gtest",
75 "//ui/aura:test_support",
47 "//ui/base:base", 76 "//ui/base:base",
48 "//ui/events:test_support", 77 "//ui/events:test_support",
49 "//ui/gfx:gfx", 78 "//ui/gfx:gfx",
50 "//ui/gfx:test_support", 79 "//ui/gfx:test_support",
51 ] 80 ]
81
82 if (!use_aura) {
83 deps -= [ "//ui/aura:test_support" ]
84 sources -= [ "touch_selection_controller_aura_unittest.cc" ]
85 }
52 } 86 }
53 87
54 if (is_android) { 88 if (is_android) {
55 java_cpp_enum("ui_touch_selection_enums_srcjar") { 89 java_cpp_enum("ui_touch_selection_enums_srcjar") {
56 sources = [ 90 sources = [
57 "selection_event_type.h", 91 "selection_event_type.h",
58 ] 92 ]
59 outputs = [ 93 outputs = [
60 "org/chromium/ui/touch_selection/SelectionEventType.java", 94 "org/chromium/ui/touch_selection/SelectionEventType.java",
61 ] 95 ]
62 } 96 }
63 java_cpp_enum("ui_touch_handle_orientation_srcjar") { 97 java_cpp_enum("ui_touch_handle_orientation_srcjar") {
64 sources = [ 98 sources = [
65 "touch_handle_orientation.h", 99 "touch_handle_orientation.h",
66 ] 100 ]
67 outputs = [ 101 outputs = [
68 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", 102 "org/chromium/ui/touch_selection/TouchHandleOrientation.java",
69 ] 103 ]
70 } 104 }
71 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698