Add CefFindHandler for reporting find results (issue #1482).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1969 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2015-01-12 21:04:08 +00:00
parent a2d690a9bd
commit 758d5c23c5
18 changed files with 422 additions and 2 deletions

View File

@ -1780,6 +1780,24 @@ void CefBrowserHostImpl::RunFileChooser(
callback));
}
void CefBrowserHostImpl::FindReply(
content::WebContents* web_contents,
int request_id,
int number_of_matches,
const gfx::Rect& selection_rect,
int active_match_ordinal,
bool final_update) {
if (client_.get()) {
CefRefPtr<CefFindHandler> handler = client_->GetFindHandler();
if (handler.get()) {
CefRect rect(selection_rect.x(), selection_rect.y(),
selection_rect.width(), selection_rect.height());
handler->OnFindResult(this, request_id, number_of_matches,
rect, active_match_ordinal, final_update);
}
}
}
#if !defined(OS_MACOSX)
CefTextInputContext CefBrowserHostImpl::GetNSTextInputContext() {
NOTREACHED();