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

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 Created 5 years, 5 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 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 sources += [ 47 sources += [
48 "touch_handle_drawable_aura.cc", 48 "touch_handle_drawable_aura.cc",
49 "touch_handle_drawable_aura.h", 49 "touch_handle_drawable_aura.h",
50 "touch_selection_menu_runner.cc", 50 "touch_selection_menu_runner.cc",
51 "touch_selection_menu_runner.h", 51 "touch_selection_menu_runner.h",
52 ] 52 ]
53 } 53 }
54 } 54 }
55 55
56 static_library("test_support") {
57 testonly = true
58
59 sources = [
60 "touch_selection_controller_test_api.cc",
61 "touch_selection_controller_test_api.h",
62 ]
63
64 deps = [
65 ":touch_selection",
66 ]
67 }
68
56 test("ui_touch_selection_unittests") { 69 test("ui_touch_selection_unittests") {
57 sources = [ 70 sources = [
58 "longpress_drag_selector_unittest.cc", 71 "longpress_drag_selector_unittest.cc",
59 "touch_handle_unittest.cc", 72 "touch_handle_unittest.cc",
60 "touch_selection_controller_unittest.cc", 73 "touch_selection_controller_unittest.cc",
61 ] 74 ]
62 75
63 deps = [ 76 deps = [
77 ":test_support",
64 ":touch_selection", 78 ":touch_selection",
65 "//base/test:run_all_unittests", 79 "//base/test:run_all_unittests",
66 "//testing/gmock:gmock", 80 "//testing/gmock:gmock",
67 "//testing/gtest:gtest", 81 "//testing/gtest:gtest",
68 "//ui/base:base", 82 "//ui/base:base",
69 "//ui/events:test_support", 83 "//ui/events:test_support",
70 "//ui/gfx:gfx", 84 "//ui/gfx:gfx",
71 "//ui/gfx:test_support", 85 "//ui/gfx:test_support",
72 ] 86 ]
73 } 87 }
74 88
75 if (is_android) { 89 if (is_android) {
76 java_cpp_enum("ui_touch_selection_enums_srcjar") { 90 java_cpp_enum("ui_touch_selection_enums_srcjar") {
77 sources = [ 91 sources = [
78 "selection_event_type.h", 92 "selection_event_type.h",
79 ] 93 ]
80 outputs = [ 94 outputs = [
81 "org/chromium/ui/touch_selection/SelectionEventType.java", 95 "org/chromium/ui/touch_selection/SelectionEventType.java",
82 ] 96 ]
83 } 97 }
84 java_cpp_enum("ui_touch_handle_orientation_srcjar") { 98 java_cpp_enum("ui_touch_handle_orientation_srcjar") {
85 sources = [ 99 sources = [
86 "touch_handle_orientation.h", 100 "touch_handle_orientation.h",
87 ] 101 ]
88 outputs = [ 102 outputs = [
89 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", 103 "org/chromium/ui/touch_selection/TouchHandleOrientation.java",
90 ] 104 ]
91 } 105 }
92 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698