summaryrefslogtreecommitdiffstats
path: root/ui/touch_selection/touch_selection_controller_test_api.cc
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/touch_selection_controller_test_api.cc
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/touch_selection_controller_test_api.cc')
-rw-r--r--ui/touch_selection/touch_selection_controller_test_api.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/touch_selection/touch_selection_controller_test_api.cc b/ui/touch_selection/touch_selection_controller_test_api.cc
new file mode 100644
index 0000000..abe89de
--- /dev/null
+++ b/ui/touch_selection/touch_selection_controller_test_api.cc
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/touch_selection/touch_selection_controller_test_api.h"
+
+namespace ui {
+
+TouchSelectionControllerTestApi::TouchSelectionControllerTestApi(
+ TouchSelectionController* controller)
+ : controller_(controller) {}
+
+TouchSelectionControllerTestApi::~TouchSelectionControllerTestApi() {}
+
+bool TouchSelectionControllerTestApi::GetStartVisible() const {
+ return controller_->GetStartVisible();
+}
+
+bool TouchSelectionControllerTestApi::GetEndVisible() const {
+ return controller_->GetEndVisible();
+}
+
+} // namespace ui