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

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

Issue 1205033005: Adds selection expansion support for Contextual Search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 8e659cda3716b080c1cb6017f2230eb283a267ef..97d35efe8b2127fbeffe1a9bf7c4cd04caa6f055 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -154,6 +154,15 @@ public interface WebContents extends Parcelable {
void selectWordAroundCaret();
/**
+ * Adjusts the selection starting and ending points by the given amount.
+ * A negative amount moves the selection towards the beginning of the document, a positive
+ * amount moves the selection towards the end of the document.
+ * @param startAdjust The amount to adjust the start of the selection.
+ * @param endAdjust The amount to adjust the end of the selection.
+ */
+ public void moveSelectionByCharacterOffset(int startAdjust, int endAdjust);
+
+ /**
* Get the URL of the current page.
*
* @return The URL of the current page.

Powered by Google App Engine
This is Rietveld 408576698