[M108 Migration] Remove EWK_BRINGUP from EWebView::Find 78/286878/2
authorBakka Uday Kiran <b.kiran@samsung.com>
Mon, 16 Jan 2023 07:36:47 +0000 (13:06 +0530)
committerBakka Uday Kiran <b.kiran@samsung.com>
Mon, 16 Jan 2023 07:47:26 +0000 (13:17 +0530)
This patch removes EWK_BRINGUP from EWebView::Find.

Reference: https://review.tizen.org/gerrit/c/273287

Change-Id: Idd59f673439176c6e8b61380a1458bb1878dc579
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
tizen_src/ewk/efl_integration/eweb_view.cc

index 18b8468..f8af786 100644 (file)
@@ -1171,7 +1171,7 @@ void EWebView::CancelContextMenu(int request_id) {
     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);
 
@@ -1180,15 +1180,13 @@ void EWebView::Find(const char* text, Ewk_Find_Options find_options) {
     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) {