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

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

Issue 2815833003: [SmartText selection] Add LocaleList to the provider interface (Closed)
Patch Set: Pass Locale array instead of LocaleList in the interface Created 3 years, 8 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ContextSelectionClient.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContextSelectionProvider.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContextSelectionProvider.java b/content/public/android/java/src/org/chromium/content/browser/ContextSelectionProvider.java
index 50890fea3708421a69ca6f40837a9a7fa6ee0848..0f6dc0781add5da219357b8b9650d29037fe115b 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContextSelectionProvider.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContextSelectionProvider.java
@@ -10,6 +10,8 @@ import android.view.View.OnClickListener;
import org.chromium.base.annotations.SuppressFBWarnings;
+import java.util.Locale;
+
/**
* The interface that controls contextual text selection.
*/
@@ -78,7 +80,8 @@ public interface ContextSelectionProvider {
* @param end The index pointing to the first character that comes after
* the selected text inside the textual context.
*/
- public void sendSuggestAndClassifyRequest(CharSequence text, int start, int end);
+ public void sendSuggestAndClassifyRequest(
+ CharSequence text, int start, int end, Locale[] locales);
/**
* Sends asynchronous request to obtain the selection and analyze its type.
@@ -87,7 +90,7 @@ public interface ContextSelectionProvider {
* @param end The index pointing to the first character that comes after
* the selected text inside the textual context.
*/
- public void sendClassifyRequest(CharSequence text, int start, int end);
+ public void sendClassifyRequest(CharSequence text, int start, int end, Locale[] locales);
/**
* Cancel all asynchronous requests.
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ContextSelectionClient.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698