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

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

Issue 1205033005: Adds selection expansion support for Contextual Search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pedrosimonetti nits 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/browser/render_view_host.h
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h
index 5909d286f41fde172a1777fa6976dd944886645b..5dea43512a079de79b8ac525d4a6b90a1a622a97 100644
--- a/content/public/browser/render_view_host.h
+++ b/content/public/browser/render_view_host.h
@@ -197,6 +197,11 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
// Notify the render view host to select the word around the caret.
virtual void SelectWordAroundCaret() = 0;
+ // Notify the render view host to adjust the expand selection by the given
+ // amounts.
+ virtual void ExpandSelectionByCharacterOffset(int start_adjust,
+ int end_adjust) = 0;
Charlie Reis 2015/07/06 21:30:41 Is it possible for this to cross a frame boundary?
+
#if defined(OS_ANDROID)
// Selects and zooms to the find result nearest to the point (x,y)
// defined in find-in-page coordinates.

Powered by Google App Engine
This is Rietveld 408576698