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

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: Final documentation changes. 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: 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 fc1e10c7ecd369f9dc82a4d8c4b8860e217d61d7..cfd3ce9c49788341312d696624f220db2da93e70 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();
}
« no previous file with comments | « mandoline/ui/phone_ui/phone_browser_application_delegate.h ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698