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

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

Issue 2157793002: Remove ContentViewCore::RequestTextSurroundingSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the review comments. Created 4 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 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 dc9de518de161fe882fbe74f5e3d2b92d9c05788..a080f1a65dcb9e77a84cd0d94ce17032be4bf86b 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1546,23 +1546,6 @@ void ContentViewCoreImpl::OnDragEvent(
}
}
-void ContentViewCoreImpl::RequestTextSurroundingSelection(
- int max_length,
- const base::Callback<
- void(const base::string16& content, int start_offset, int end_offset)>&
- callback) {
- DCHECK(!callback.is_null());
- RenderFrameHost* focused_frame = web_contents_->GetFocusedFrame();
- if (!focused_frame)
- return;
- if (GetRenderWidgetHostViewAndroid()) {
- GetRenderWidgetHostViewAndroid()->SetTextSurroundingSelectionCallback(
- callback);
- focused_frame->Send(new FrameMsg_TextSurroundingSelectionRequest(
- focused_frame->GetRoutingID(), max_length));
- }
-}
-
void ContentViewCoreImpl::OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);

Powered by Google App Engine
This is Rietveld 408576698