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

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: Fixed test failures on Mac Created 5 years, 7 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_menu_runner.cc",
25 "touch_selection_menu_runner.h",
22 "ui_touch_selection_export.h", 26 "ui_touch_selection_export.h",
23 ] 27 ]
24 28
25 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ] 29 defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
26 30
27 deps = [ 31 deps = [
28 "//base:base", 32 "//base:base",
33 "//ui/aura:aura",
34 "//ui/aura_extra:aura_extra",
29 "//ui/base:base", 35 "//ui/base:base",
36 "//ui/compositor:compositor",
30 "//ui/events:events", 37 "//ui/events:events",
31 "//ui/events:gesture_detection", 38 "//ui/events:gesture_detection",
39 "//ui/gfx:gfx",
32 "//ui/gfx/geometry:geometry", 40 "//ui/gfx/geometry:geometry",
33 ] 41 ]
42
43 if (!use_aura) {
44 deps -= [
45 "//ui/aura:aura",
46 "//ui/aura_extra:aura_extra",
47 "//ui/compositor:compositor",
48 "//ui/gfx:gfx",
49 ]
50
51 sources -= [
52 "touch_handle_drawable_aura.cc",
53 "touch_handle_drawable_aura.h",
54 "touch_selection_menu_runner.cc",
55 "touch_selection_menu_runner.h",
56 ]
57 }
34 } 58 }
35 59
36 test("ui_touch_selection_unittests") { 60 test("ui_touch_selection_unittests") {
37 sources = [ 61 sources = [
38 "touch_handle_unittest.cc", 62 "touch_handle_unittest.cc",
39 "touch_selection_controller_unittest.cc", 63 "touch_selection_controller_unittest.cc",
40 ] 64 ]
41 65
42 deps = [ 66 deps = [
43 ":touch_selection", 67 ":touch_selection",
(...skipping 18 matching lines...) Expand all
62 } 86 }
63 java_cpp_enum("ui_touch_handle_orientation_srcjar") { 87 java_cpp_enum("ui_touch_handle_orientation_srcjar") {
64 sources = [ 88 sources = [
65 "touch_handle_orientation.h", 89 "touch_handle_orientation.h",
66 ] 90 ]
67 outputs = [ 91 outputs = [
68 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", 92 "org/chromium/ui/touch_selection/TouchHandleOrientation.java",
69 ] 93 ]
70 } 94 }
71 } 95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698