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

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: Fixed java tests Created 5 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/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 fef805e293e8def43c5a6b3d0ef0863319f4d8ba..93ac77d7a06fc3df47595f36c49dd0efe84f5703 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
@@ -179,6 +179,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 adjustSelectionByCharacterOffset(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