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

Unified Diff: components/web_view/frame.cc

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further patch cleanup; use a WeakPtrFactory in FindController. Created 5 years, 2 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: components/web_view/frame.cc
diff --git a/components/web_view/frame.cc b/components/web_view/frame.cc
index e5f82f5f750b70a5784af5e42791943c29c6de0f..c7a2c9eefc4415d44f29088c6015a49b32a1a57d 100644
--- a/components/web_view/frame.cc
+++ b/components/web_view/frame.cc
@@ -161,6 +161,26 @@ double Frame::GatherProgress(int* frame_count) const {
return progress_;
}
+void Frame::Find(int32 request_id,
+ const mojo::String& search_text,
+ const FindCallback& callback) {
+ frame_client_->Find(request_id, search_text, callback);
+}
+
+void Frame::StopFinding(bool clear_selection) {
+ frame_client_->StopFinding(clear_selection);
+}
+
+void Frame::ScopeStringMatches(int32_t request_id,
+ const mojo::String& search_text,
+ bool reset) {
+ frame_client_->ScopeStringMatches(request_id, search_text, reset);
+}
+
+void Frame::CancelPendingScopingEffort() {
+ frame_client_->CancelPendingScopingEffort();
+}
+
void Frame::InitClient(ClientType client_type,
scoped_ptr<FrameUserDataAndBinding> data_and_binding,
mojo::ViewTreeClientPtr view_tree_client,
@@ -543,4 +563,17 @@ void Frame::DispatchLoadEventToParent() {
}
}
+void Frame::OnReportFindInFrameMatchCount(int32_t request_id,
+ int32_t count,
+ bool final_update) {
+ tree_->delegate_->OnReportFindInFrameMatchCount(request_id, this, count,
+ final_update);
+}
+
+void Frame::OnReportFindInPageSelection(int32_t request_id,
+ int32_t active_match_ordinal) {
+ tree_->delegate_->OnReportFindInPageSelection(request_id, this,
+ active_match_ordinal);
+}
+
} // namespace web_view

Powered by Google App Engine
This is Rietveld 408576698