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

Unified Diff: content/public/browser/web_contents.h

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/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 120885be0705caff17669741afe458ea12d1586c..4ed6a40fd9138ab124df0847e76824b4ee5bdd22 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -417,6 +417,13 @@ class WebContents : public PageNavigator,
virtual void SelectAll() = 0;
virtual void Unselect() = 0;
+ // Adjust the selection starting and ending points in the focused frame by
+ // the given amounts. A negative amount moves the selection towards the
+ // beginning of the document, a positive amount moves the selection towards
+ // the end of the document.
+ virtual void AdjustSelectionByCharacterOffset(int start_adjust,
+ int end_adjust) = 0;
+
// Replaces the currently selected word or a word around the cursor.
virtual void Replace(const base::string16& word) = 0;

Powered by Google App Engine
This is Rietveld 408576698