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

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: creis nits 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 ab0fe6df66aa4ccdd768fadbc80f9ab85b6bcb0a..cddfbe2367f89abe2a2ebb78c14430ba9ff56048 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -417,6 +417,10 @@ class WebContents : public PageNavigator,
virtual void SelectAll() = 0;
virtual void Unselect() = 0;
+ // Expand the selection in the focused frame by the given amounts.
+ virtual void ExpandSelectionByCharacterOffset(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