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

Unified Diff: chrome/renderer/render_view.cc

Issue 6363001: Makes chrome pass down the length of text as the end of the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add support for selection_end and fix selectionStart Created 9 years, 11 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
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 847756590299f04d9f55fc0ad0bb2ed91057af69..19fd67720b096ae92ba3fd03b4d90141a08c3517 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -4886,9 +4886,13 @@ void RenderView::OnSearchBoxResize(const gfx::Rect& bounds) {
}
void RenderView::OnDetermineIfPageSupportsInstant(const string16& value,
- bool verbatim) {
+ bool verbatim,
+ int selection_start,
+ int selection_end) {
search_box_.value = value;
search_box_.verbatim = verbatim;
+ search_box_.selection_start = selection_start;
+ search_box_.selection_end = selection_end;
bool result = extensions_v8::SearchBoxExtension::PageSupportsInstant(
webview()->mainFrame());
Send(new ViewHostMsg_InstantSupportDetermined(routing_id_, page_id_, result));
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698