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

Unified Diff: third_party/WebKit/Source/web/TextFinder.cpp

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT to fix patch failure. Created 5 years, 3 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: third_party/WebKit/Source/web/TextFinder.cpp
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp
index 38a96b179bf78f82db5169d91551654766d7ab03..40051bd9ca9a6ca6f3b18d9b538c1658ca43c6ca 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -374,6 +374,8 @@ void TextFinder::scopeStringMatchesAlgorithm(int identifier, const WebString& se
m_lastMatchCount += matchCount;
+ ownerFrame().client()->reportFindInFrameMatchCount(identifier, m_lastMatchCount, false);
+
// Let the mainframe know how much we found during this pass.
mainFrameImpl->increaseMatchCount(matchCount, identifier);
}
@@ -420,6 +422,8 @@ void TextFinder::finishCurrentScopingEffort(int identifier)
m_scopingInProgress = false;
m_lastFindRequestCompletedWithNoMatches = !m_lastMatchCount;
+ ownerFrame().client()->reportFindInFrameMatchCount(identifier, m_lastMatchCount, true);
+
// This frame is done, so show any scrollbar tickmarks we haven't drawn yet.
ownerFrame().frameView()->invalidatePaintForTickmarks();
}

Powered by Google App Engine
This is Rietveld 408576698