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

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

Issue 1605863002: Restart search in page when new text is found. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added default value for local var Created 4 years, 10 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.h
diff --git a/third_party/WebKit/Source/web/TextFinder.h b/third_party/WebKit/Source/web/TextFinder.h
index cddbb97e65cb581dd50941cfef659263fcc41f79..58458c8679785c9d729826d8cbf94d8916189006 100644
--- a/third_party/WebKit/Source/web/TextFinder.h
+++ b/third_party/WebKit/Source/web/TextFinder.h
@@ -56,7 +56,7 @@ public:
bool find(
int identifier, const WebString& searchText, const WebFindOptions&,
- bool wrapWithinFrame, WebRect* selectionRect);
+ bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr);
void stopFindingAndClearSelection();
void scopeStringMatches(
int identifier, const WebString& searchText, const WebFindOptions&,
@@ -148,8 +148,9 @@ private:
// Add a WebKit TextMatch-highlight marker to nodes in a range.
void addMarker(Range*, bool activeMatch);
- // Sets the markers within a range as active or inactive.
- void setMarkerActive(Range*, bool active);
+ // Sets the markers within a range as active or inactive. Returns true if at least
+ // one such marker found.
+ bool setMarkerActive(Range*, bool active);
// Removes all markers.
void unmarkAllTextMatches();

Powered by Google App Engine
This is Rietveld 408576698