context_menu_->HideContextMenu();
}
-void EWebView::Find(const char* text, Ewk_Find_Options find_options) {
+void EWebView::Find(const char* text, Ewk_Find_Options ewk_find_options) {
std::u16string find_text = base::UTF8ToUTF16(text);
bool find_next = (previous_text_ == find_text);
previous_text_ = find_text;
}
-#if !defined(EWK_BRINGUP) // FIXME: m71 bringup
- blink::WebFindOptions web_find_options;
- web_find_options.forward = !(find_options & EWK_FIND_OPTIONS_BACKWARDS);
- web_find_options.match_case =
- !(find_options & EWK_FIND_OPTIONS_CASE_INSENSITIVE);
- web_find_options.find_next = find_next;
+ auto find_options = blink::mojom::FindOptions::New();
+ find_options->forward = !(ewk_find_options & EWK_FIND_OPTIONS_BACKWARDS);
+ find_options->match_case =
+ !(ewk_find_options & EWK_FIND_OPTIONS_CASE_INSENSITIVE);
- web_contents_->Find(current_find_request_id_, find_text, web_find_options);
-#endif
+ web_contents_->Find(current_find_request_id_, find_text,
+ std::move(find_options));
}
void EWebView::SetScale(double scale_factor) {