summaryrefslogtreecommitdiffstats
path: root/ui/touch_selection/BUILD.gn
diff options
context:
space:
mode:
authormohsen <mohsen@chromium.org>2015-07-30 09:41:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-30 16:42:16 +0000
commit2a5e3624e4d0b78bfe5f5a3d40f5a98730291056 (patch)
tree6bc5339c5ac557877f6d5fe6f9575dc3c2e37799 /ui/touch_selection/BUILD.gn
parentc7a6ce3e5957485bb9128dd74483611c8bcfc029 (diff)
downloadchromium_src-2a5e3624e4d0b78bfe5f5a3d40f5a98730291056.zip
chromium_src-2a5e3624e4d0b78bfe5f5a3d40f5a98730291056.tar.gz
chromium_src-2a5e3624e4d0b78bfe5f5a3d40f5a98730291056.tar.bz2
Implement Aura side of unified touch text selection for contents
This is the first part of unified touch text selection for Aura which implements it using the new ui::TouchSelectionController for contents. Selection updates are now coming from swap-compositor-frame IPC message instead of selection-bounds-changed IPC message. This CL also replaces TouchEditableImplAura (owned by WebContentsViewAura) with ui::TouchSelectionController (owned by RenderWidgetHostViewAura) for which a client implementation is provided in TouchSelectionControllerClientAura. Note that at the moment we are unable to remove selection-bounds-changed IPC message completely as it is also used by IME and the new path is not yet working properly inside <webview> (which is being worked on). Next part would be using ui::TouchSelectionController to implement unified touch text selection for Views textfields. COLLABORATOR=mfomitchev BUG=399721 Review URL: https://codereview.chromium.org/698253004 Cr-Commit-Position: refs/heads/master@{#341134}
Diffstat (limited to 'ui/touch_selection/BUILD.gn')
-rw-r--r--ui/touch_selection/BUILD.gn14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/touch_selection/BUILD.gn b/ui/touch_selection/BUILD.gn
index 3f98ea0..f5f2825 100644
--- a/ui/touch_selection/BUILD.gn
+++ b/ui/touch_selection/BUILD.gn
@@ -53,6 +53,19 @@ component("touch_selection") {
}
}
+static_library("test_support") {
+ testonly = true
+
+ sources = [
+ "touch_selection_controller_test_api.cc",
+ "touch_selection_controller_test_api.h",
+ ]
+
+ deps = [
+ ":touch_selection",
+ ]
+}
+
# TODO(GYP): Delete this after we've converted everything to GN.
# The _run targets exist only for compatibility w/ GYP.
group("ui_touch_selection_unittests_run") {
@@ -70,6 +83,7 @@ test("ui_touch_selection_unittests") {
]
deps = [
+ ":test_support",
":touch_selection",
"//base/test:run_all_unittests",
"//testing/gmock:gmock",