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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2700613003: Enable find-in-page across GuestViews. (Closed)
Patch Set: Small fix. Created 3 years, 8 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/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 8887a3dd1ac3e86347b1e38ce81d5d8d7f304b94..4eab5a8bc989a176fac7c922c5888b6d3aeae67c 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -5698,13 +5698,12 @@ void RenderFrameImpl::OnFind(int request_id,
if (options.findNext) {
// Just navigate back/forward.
plugin->selectFindResult(options.forward, request_id);
- } else {
- if (!plugin->startFind(WebString::fromUTF16(search_text),
- options.matchCase, request_id)) {
- // Send "no results".
- SendFindReply(request_id, 0 /* match_count */, 0 /* ordinal */,
- gfx::Rect(), true /* final_status_update */);
- }
+ render_view_->webview()->setFocusedFrame(frame_);
+ } else if (!plugin->startFind(WebString::fromUTF16(search_text),
+ options.matchCase, request_id)) {
+ // Send "no results".
+ SendFindReply(request_id, 0 /* match_count */, 0 /* ordinal */,
+ gfx::Rect(), true /* final_status_update */);
}
return;
}
« no previous file with comments | « content/public/browser/browser_plugin_guest_delegate.cc ('k') | content/test/data/find_in_embedded_pdf_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698