Index: components/web_view/frame.cc |
diff --git a/components/web_view/frame.cc b/components/web_view/frame.cc |
index e5f82f5f750b70a5784af5e42791943c29c6de0f..e25520a4a4cea160d09f54f642961a4084100e43 100644 |
--- a/components/web_view/frame.cc |
+++ b/components/web_view/frame.cc |
@@ -161,6 +161,14 @@ double Frame::GatherProgress(int* frame_count) const { |
return progress_; |
} |
+void Frame::Find(int32 request_id, const mojo::String& search_text) { |
+ frame_client_->OnFind(request_id, search_text); |
+} |
+ |
+void Frame::StopFinding() { |
+ frame_client_->OnStopFinding(); |
+} |
+ |
void Frame::InitClient(ClientType client_type, |
scoped_ptr<FrameUserDataAndBinding> data_and_binding, |
mojo::ViewTreeClientPtr view_tree_client, |
@@ -543,4 +551,18 @@ void Frame::DispatchLoadEventToParent() { |
} |
} |
+void Frame::ReportFindInPageMatchCount(int32_t request_id, |
+ int32_t count, |
+ bool final_update) { |
+ // TODO(erg): This works well enough for the single origin case. However, it |
+ // breaks when we have OOPIFs. Centralize the counting at the top of the |
+ // FrameTree. |
+ tree_->delegate_->ReportFindInPageMatchCount(request_id, count, final_update); |
+} |
+ |
+void Frame::ReportFindInPageSelection(int32_t request_id, |
+ int32_t active_match_ordinal) { |
+ tree_->delegate_->ReportFindInPageSelection(request_id, active_match_ordinal); |
+} |
+ |
} // namespace web_view |