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

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: Switch from RenderView to RenderFrame 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..3c5a4c4db79971e77e34c48bc787e1c8b696f189 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -417,6 +417,11 @@ class WebContents : public PageNavigator,
virtual void SelectAll() = 0;
virtual void Unselect() = 0;
+ // Notify the render view host to adjust the expand selection by the given
Charlie Reis 2015/07/07 17:02:27 nit: Expand the selection in the focused frame by
aurimas (slooooooooow) 2015/07/07 18:18:05 Done
+ // 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