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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 657803002: Update touch selection to only modify one selection point at a time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 69449fb5db4c006a4e69bc9a574e69eeb8c9a6d1..9f70bec9af4bdbf110be3e22f35883fe541af0e3 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -777,6 +777,13 @@ void ContentViewCoreImpl::RemoveLayer(scoped_refptr<cc::Layer> layer) {
root_layer_->SetIsDrawable(true);
}
+void ContentViewCoreImpl::MoveSelectionExtent(const gfx::PointF& position) {
+ if (!web_contents_)
+ return;
+
+ web_contents_->MoveSelectionExtent(gfx::Point(position.x(), position.y()));
+}
+
void ContentViewCoreImpl::SelectBetweenCoordinates(const gfx::PointF& start,
const gfx::PointF& end) {
if (!web_contents_)

Powered by Google App Engine
This is Rietveld 408576698