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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.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/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 0a7d8c04bcd2c9faa7829cd518c1c9f402222e64..5c2409f3c9d86d915fe546a0cae71a75e2cab876 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -555,23 +555,6 @@ void RenderWidgetHostViewAndroid::UnlockCompositingSurface() {
}
}
-void RenderWidgetHostViewAndroid::SetTextSurroundingSelectionCallback(
- const TextSurroundingSelectionCallback& callback) {
- // Only one outstanding request is allowed at any given time.
- DCHECK(!callback.is_null());
- text_surrounding_selection_callback_ = callback;
-}
-
-void RenderWidgetHostViewAndroid::OnTextSurroundingSelectionResponse(
- const base::string16& content,
- size_t start_offset,
- size_t end_offset) {
- if (text_surrounding_selection_callback_.is_null())
- return;
- text_surrounding_selection_callback_.Run(content, start_offset, end_offset);
- text_surrounding_selection_callback_.Reset();
-}
-
void RenderWidgetHostViewAndroid::OnShowUnhandledTapUIIfNeeded(int x_dip,
int y_dip) {
if (!content_view_core_)

Powered by Google App Engine
This is Rietveld 408576698