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

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

Issue 1409443002: Make Chrome and WebView replace the selected text with the processed text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved comments around Created 5 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/public/android/java/src/org/chromium/content/browser/ContentViewClient.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java
index 8a81f8fbafc9c54b97cbb6a01ab36936598c2101..a95acdd44f5a204d02181d337bc84154419375a0 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java
@@ -106,6 +106,22 @@ public class ContentViewClient {
}
/**
+ * If this returns {@code true} the text processing intents should be forwarded to {@link
+ * startProcessTextIntent(Intent)}, otherwise these intents should be sent by WindowAndroid by
+ * default.
+ * @return {@code true} iff this {@link ContentViewClient} wants to send the processing intents
+ * and override the default intent behavior.
+ */
+ public boolean doesPerformProcessText() {
+ return false;
+ }
+
+ /**
+ * Send the intent to process the current selected text.
+ */
+ public void startProcessTextIntent(Intent intent) {}
+
+ /**
* Called when a new content intent is requested to be started.
*/
public void onStartContentIntent(Context context, String intentUrl) {

Powered by Google App Engine
This is Rietveld 408576698