#include "WKAPICast.h"
#include "WKFrame.h"
#include "WKPage.h"
+#include "WKRetainPtr.h"
#include "WKString.h"
#include <wtf/text/CString.h>
return true;
}
+Eina_Bool ewk_frame_can_show_mime_type(Ewk_Frame_Ref frame, char* mimeType)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(frame, false);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(mimeType, false);
+
+ WKFrameRef wkFrame = static_cast<WKFrameRef>(frame);
+ WKRetainPtr<WKStringRef> mimeTypeRef(AdoptWK, WKStringCreateWithUTF8CString(mimeType));
+ return WKFrameCanShowMIMEType(wkFrame, mimeTypeRef.get());
+}
\ No newline at end of file
*/
EAPI Eina_Bool ewk_frame_source_get(Ewk_Frame_Ref frame, Ewk_Frame_Source_Get_Callback callback, void* user_data);
+/**
+ * Returns that Whether or not a MIME type can be displayed.
+ *
+ * @param frame frame object
+ * @param mime_type a mime type
+ *
+ * @return @c EINA_TRUE if the MIME type can be displayed or @c EINA_FALSE otherwise
+ */
+EAPI Eina_Bool ewk_frame_can_show_mime_type(Ewk_Frame_Ref frame, char* mime_type);
+
#ifdef __cplusplus
}
#endif