From 840872b28f7953c8d312dcb178863bf727b37807 Mon Sep 17 00:00:00 2001 From: Antonio Gomes Date: Wed, 30 Jul 2014 14:18:29 -0400 Subject: [PATCH] Stub out calls to DidCancelDialog and DidReplaceDateTime in InputPicker.cc These methods were ChromiumEFL additions to WebContentsImpl (src/content/browser/web_contents/web_contents_impl.cc). --- tizen_src/impl/browser/inputpicker/InputPicker.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tizen_src/impl/browser/inputpicker/InputPicker.cc b/tizen_src/impl/browser/inputpicker/InputPicker.cc index 311adccc32b0..241543a4b704 100755 --- a/tizen_src/impl/browser/inputpicker/InputPicker.cc +++ b/tizen_src/impl/browser/inputpicker/InputPicker.cc @@ -871,7 +871,9 @@ void InputPicker::ewk_datetime_popup(const char* inputValue, bool local) { Eina_Bool InputPicker::removeDatetimePicker(void* data) { InputPicker* inputPicker = static_cast(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" , ¤tTime); +#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", ¤tTime); +#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", ¤tTime); +#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", ¤tTime); +#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", ¤tTime); +#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(); -- 2.34.1