Merge pull request #4788 from deepak1556/find_in_page_patch

webcontents: provide position of match with found-in-page event
This commit is contained in:
Cheng Zhao 2016-03-14 15:03:38 +09:00
commit 73a5f323e7
4 changed files with 14 additions and 2 deletions

View file

@ -456,6 +456,7 @@ void WebContents::FindReply(content::WebContents* web_contents,
result.Set("requestId", request_id);
result.Set("selectionArea", selection_rect);
result.Set("finalUpdate", final_update);
result.Set("activeMatchOrdinal", active_match_ordinal);
Emit("found-in-page", result);
} else if (final_update) {
result.Set("requestId", request_id);