Stub out calls to DidCancelDialog and DidReplaceDateTime in InputPicker.cc
authorAntonio Gomes <a1.gomes@sisa.samsung.com>
Wed, 30 Jul 2014 18:18:29 +0000 (14:18 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
These methods were ChromiumEFL additions to WebContentsImpl
(src/content/browser/web_contents/web_contents_impl.cc).

tizen_src/impl/browser/inputpicker/InputPicker.cc

index 311adcc..241543a 100755 (executable)
@@ -871,7 +871,9 @@ void InputPicker::ewk_datetime_popup(const char* inputValue, bool local) {
 
 Eina_Bool InputPicker::removeDatetimePicker(void* data) {
   InputPicker* inputPicker = static_cast<InputPicker*>(data);
+#if !defined(EWK_BRINGUP)
   inputPicker->web_contents_delegate_->web_contents()->DidCancelDialog();
+#endif
 
   if (!inputPicker->m_pickerLayout)
     return ECORE_CALLBACK_CANCEL;
@@ -966,7 +968,9 @@ void InputPicker::_date_popup_response_cb(void* data,  Evas_Object* obj, void* e
   char dateStr[20] = { 0, };
   strftime(dateStr, 20, "%F" , &currentTime);
 
+#if !defined(EWK_BRINGUP)
   inputPicker->web_contents_delegate_->web_contents()->DidReplaceDateTime(std::string(dateStr));
+#endif
 }
 
 void InputPicker::_week_popup_response_cb(void* data,  Evas_Object* obj, void* event_info) {
@@ -981,7 +985,9 @@ void InputPicker::_week_popup_response_cb(void* data,  Evas_Object* obj, void* e
   char dateStr[20] = { 0, };
   strftime(dateStr, 20, "%G-W%V", &currentTime);
 
+#if !defined(EWK_BRINGUP)
   inputPicker->web_contents_delegate_->web_contents()->DidReplaceDateTime(std::string(dateStr));
+#endif
 }
 
 void InputPicker::_time_popup_response_cb(void* data,  Evas_Object* obj, void* event_info) {
@@ -996,7 +1002,9 @@ void InputPicker::_time_popup_response_cb(void* data,  Evas_Object* obj, void* e
   char dateStr[20] = { 0, };
   strftime(dateStr, 20, "%R", &currentTime);
 
+#if !defined(EWK_BRINGUP)
   inputPicker->web_contents_delegate_->web_contents()->DidReplaceDateTime(std::string(dateStr));
+#endif
 }
 
 void InputPicker::_month_popup_response_cb(void* data,  Evas_Object* obj, void* event_info) {
@@ -1011,7 +1019,9 @@ void InputPicker::_month_popup_response_cb(void* data,  Evas_Object* obj, void*
   char dateStr[20] = { 0, };
   strftime(dateStr, 20, "%Y-%m", &currentTime);
 
+#if !defined(EWK_BRINGUP)
   inputPicker->web_contents_delegate_->web_contents()->DidReplaceDateTime(std::string(dateStr));
+#endif
 }
 
 void InputPicker::_datetime_popup_response_cb(void* data,  Evas_Object* obj, void* event_info) {
@@ -1029,7 +1039,9 @@ void InputPicker::_datetime_popup_response_cb(void* data,  Evas_Object* obj, voi
   else
     strftime(dateStr, 50, "%FT%RZ", &currentTime);
 
+#if !defined(EWK_BRINGUP)
   inputPicker->web_contents_delegate_->web_contents()->DidReplaceDateTime(std::string(dateStr));
+#endif
   inputPicker->web_contents_delegate_->web_view()->ExecuteEditCommand("Unselect", 0);
 
   inputPicker->deletePopupLayout();