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;
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) {
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) {
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) {
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) {
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();