Evas_Object* ewk_view_add_with_context(Evas* canvas, Ewk_Context* context) { EwkContext* ewkContext = ewk_object_cast<EwkContext*>(context); EINA_SAFETY_ON_NULL_RETURN_VAL(ewkContext, nullptr); EINA_SAFETY_ON_NULL_RETURN_VAL(ewkContext->wkContext(), nullptr); return EWKViewCreate(ewkContext->wkContext(), 0, canvas, 0); }
Evas_Object* ewk_view_smart_add(Evas* canvas, Evas_Smart* smart, Ewk_Context* context, Ewk_Page_Group* pageGroup) { EwkContext* ewkContext = ewk_object_cast<EwkContext*>(context); EwkPageGroup* ewkPageGroup = ewk_object_cast<EwkPageGroup*>(pageGroup); EINA_SAFETY_ON_NULL_RETURN_VAL(ewkContext, nullptr); EINA_SAFETY_ON_NULL_RETURN_VAL(ewkContext->wkContext(), nullptr); EINA_SAFETY_ON_NULL_RETURN_VAL(ewkPageGroup, nullptr); EINA_SAFETY_ON_NULL_RETURN_VAL(ewkPageGroup->wkPageGroup(), nullptr); return EWKViewCreate(ewkContext->wkContext(), ewkPageGroup->wkPageGroup(), canvas, smart); }