Source/WebKit/efl/ewk/ewk_frame.cpp
Eina_Bool ewk_frame_contents_alternate_set(Evas_Object* o, const char* contents, size_t contents_size, const char* mime_type, const char* encoding, const char* base_uri, const char* unreachable_uri)
{
    EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    EINA_SAFETY_ON_FALSE_RETURN_VAL(sd->frame, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(contents, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(unreachable_uri, EINA_FALSE);
    return _ewk_frame_contents_set_internal
        (sd, contents, contents_size, mime_type, encoding, base_uri,
         unreachable_uri);
}
/**
 * Requests loading alternative contents for unreachable URI in this frame.
 *
 * This is similar to ewk_frame_contents_set(), but is used when some
 * URI failed to load, using the provided content instead. The main
 * difference is that back-forward navigation list is not changed.
 *
 * @param o frame object to load document.
 * @param contents what to load into frame. Must not be @c NULL.
 * @param contents_size byte size of data in @a contents.
 *        If zero, strlen() is used.
 * @param mime_type type of @a contents data. If @c NULL "text/html" is assumed.
 * @param encoding used for @a contents data. If @c NULL "UTF-8" is assumed.
 * @param base_uri base uri to use for relative resources. May be @c NULL.
 *        If provided must be an absolute uri.
 * @param unreachable_uri the URI that failed to load and is getting the
 *        alternative representation.
 *
 * @return @c EINA_TRUE on successful request, @c EINA_FALSE on errors.
 */
Requests loading alternative contents for unreachable URI in this frame.
This is similar to ewk_frame_contents_set(), but is used when some
URI failed to load, using the provided content instead. The main
difference is that back-forward navigation list is not changed.

@param o frame object to load document.
@param contents what to load into frame. Must not be @c NULL.
@param contents_size byte size of data in @a contents.
If zero, strlen() is used.
@param mime_type type of @a contents data. If @c NULL "text/html" is assumed.
@param encoding used for @a contents data. If @c NULL "UTF-8" is assumed.
@param base_uri base uri to use for relative resources. May be @c NULL.
If provided must be an absolute uri.
@param unreachable_uri the URI that failed to load and is getting the
alternative representation.

@return @c EINA_TRUE on successful request, @c EINA_FALSE on errors.
Requests loading alternative contents for unreachable URI in this frame . This is similar to ewk_frame_contents_set () but is used when some URI failed to load using the provided content instead . The main difference is that back - forward navigation list is not changed . @param o frame object to load document . @param contents what to load into frame . Must not be @c NULL . @param contents_size byte size of data in @a contents . If zero strlen () is used . @param mime_type type of @a contents data . If @c NULL " text / html " is assumed . @param encoding used for @a contents data . If @c NULL " UTF - 8 " is assumed . @param base_uri base uri to use for relative resources . May be @c NULL . If provided must be an absolute uri . @param unreachable_uri the URI that failed to load and is getting the alternative representation . @return @c EINA_TRUE on successful request @c EINA_FALSE on errors .
Eina_Bool ewk_frame_contents_alternate_set(Evas_Object* o, const char* contents, size_t contents_size, const char* mime_type, const char* encoding, const char* base_uri, const char* unreachable_uri)
{
    EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    EINA_SAFETY_ON_FALSE_RETURN_VAL(sd->frame, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(contents, EINA_FALSE);
    EINA_SAFETY_ON_NULL_RETURN_VAL(unreachable_uri, EINA_FALSE);
    return _ewk_frame_contents_set_internal
        (sd, contents, contents_size, mime_type, encoding, base_uri,
         unreachable_uri);
}
Eina_Bool ewk_frame_contents_alternate_set ( Evas_Object * o , const char * contents , size_t contents_size , const char * mime_type , const char * encoding , const char * base_uri , const char * unreachable_uri ) { EWK_FRAME_SD_GET_OR_RETURN ( o , sd , EINA_FALSE ) ; EINA_SAFETY_ON_FALSE_RETURN_VAL ( sd -> frame , EINA_FALSE ) ; EINA_SAFETY_ON_NULL_RETURN_VAL ( contents , EINA_FALSE ) ; EINA_SAFETY_ON_NULL_RETURN_VAL ( unreachable_uri , EINA_FALSE ) ; return _ewk_frame_contents_set_internal ( sd , contents , contents_size , mime_type , encoding , base_uri , unreachable_uri ) ; }
Requests loading alternative contents for unreachable URI in this frame.
Requests loading alternative contents for unreachable URI in this frame .