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

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

Issue 996373002: Add Aura handles to be used in unified touch selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed issues with loading resources 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_test_api.cc",
68 "touch_selection_controller_aura_test_api.h",
69 "touch_selection_controller_aura_unittest.cc",
39 "touch_selection_controller_unittest.cc", 70 "touch_selection_controller_unittest.cc",
40 ] 71 ]
41 72
42 deps = [ 73 deps = [
43 ":touch_selection", 74 ":touch_selection",
44 "//base/test:run_all_unittests",
45 "//testing/gmock:gmock", 75 "//testing/gmock:gmock",
46 "//testing/gtest:gtest", 76 "//testing/gtest:gtest",
77 "//ui/aura:test_support",
47 "//ui/base:base", 78 "//ui/base:base",
48 "//ui/events:test_support", 79 "//ui/events:test_support",
49 "//ui/gfx:gfx", 80 "//ui/gfx:gfx",
50 "//ui/gfx:test_support", 81 "//ui/gfx:test_support",
82 "//ui/resources:ui_test_pak",
51 ] 83 ]
84
85 if (!use_aura) {
86 deps -= [
87 "//ui/aura:test_support",
88 "//ui/resources:ui_test_pak",
89 ]
90 sources -= [
91 "touch_selection_controller_aura_test_api.cc",
92 "touch_selection_controller_aura_test_api.h",
93 "touch_selection_controller_aura_unittest.cc",
94 ]
95 }
52 } 96 }
53 97
54 if (is_android) { 98 if (is_android) {
55 java_cpp_enum("ui_touch_selection_enums_srcjar") { 99 java_cpp_enum("ui_touch_selection_enums_srcjar") {
56 sources = [ 100 sources = [
57 "selection_event_type.h", 101 "selection_event_type.h",
58 ] 102 ]
59 outputs = [ 103 outputs = [
60 "org/chromium/ui/touch_selection/SelectionEventType.java", 104 "org/chromium/ui/touch_selection/SelectionEventType.java",
61 ] 105 ]
62 } 106 }
63 java_cpp_enum("ui_touch_handle_orientation_srcjar") { 107 java_cpp_enum("ui_touch_handle_orientation_srcjar") {
64 sources = [ 108 sources = [
65 "touch_handle_orientation.h", 109 "touch_handle_orientation.h",
66 ] 110 ]
67 outputs = [ 111 outputs = [
68 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", 112 "org/chromium/ui/touch_selection/TouchHandleOrientation.java",
69 ] 113 ]
70 } 114 }
71 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698