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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: rebase - use int Created 6 years, 6 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/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 64b1d582eca608e3d74a9dcea2fbc615e6fcaa91..4a298a890e61afdc8d9502fc7d5600cebb7237a3 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -2489,6 +2489,11 @@ public class ContentViewCore
attachImeAdapter();
}
+ @CalledByNative
+ private void onTextSurroundingSelectionResponse(
+ String content, int startOffset, int endOffset) {
+ }
+
/**
* Attaches the native ImeAdapter object to the java ImeAdapter to allow communication via JNI.
*/
@@ -3245,4 +3250,7 @@ public class ContentViewCore
private native void nativeExtractSmartClipData(long nativeContentViewCoreImpl,
int x, int y, int w, int h);
private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl, boolean opaque);
+
+ private native void nativeTextSurroundingSelectionRequest(
+ long nativeContentViewCoreImpl, int maxLength);
}

Powered by Google App Engine
This is Rietveld 408576698