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

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

Issue 829913004: WIP: Plumbing through text selection granularity control support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unified_text_selection_diff
Patch Set: Missing file. Created 5 years, 11 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 189ac67d4a19286d009d5007891ce90cd23d473a..bf729d599147944eebbb7461a71e8f25c3dd277f 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -778,11 +778,14 @@ void ContentViewCoreImpl::RemoveLayer(scoped_refptr<cc::Layer> layer) {
root_layer_->SetIsDrawable(true);
}
-void ContentViewCoreImpl::MoveRangeSelectionExtent(const gfx::PointF& extent) {
+void ContentViewCoreImpl::MoveRangeSelectionExtent(
+ const gfx::PointF& extent,
+ ui::TextSelectionGranularity granularity) {
if (!web_contents_)
return;
- web_contents_->MoveRangeSelectionExtent(gfx::Point(extent.x(), extent.y()));
+ web_contents_->MoveRangeSelectionExtent(gfx::Point(extent.x(), extent.y()),
+ granularity);
}
void ContentViewCoreImpl::SelectBetweenCoordinates(const gfx::PointF& base,
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698