FindController.search

void search(string searchText, uint findOptions, uint maxMatchCount)

Looks for search_text associated with find_controller.

Looks for search_text in the #WebKitWebView associated with find_controller since the beginning of the document highlighting up to max_match_count matches. The outcome of the search will be asynchronously provided by the #WebKitFindController::found-text and #WebKitFindController::failed-to-find-text signals.

To look for the next or previous occurrences of the same text with the same find options use [webkit.find_controller.FindController.searchNext] and/or [webkit.find_controller.FindController.searchPrevious]. The #WebKitFindController will use the same text and options for the following searches unless they are modified by another call to this method.

Note that if the number of matches is higher than max_match_count then #WebKitFindController::found-text will report G_MAXUINT matches instead of the actual number.

Callers should call [webkit.find_controller.FindController.searchFinish] to finish the current search operation.

Parameters

searchTextthe text to look for
findOptionsa bitmask with the #WebKitFindOptions used in the search
maxMatchCountthe maximum number of matches allowed in the search