Browser_Policy_Decision_Maker(Evas_Object *navi_bar, Browser_View *browser_view);
~Browser_Policy_Decision_Maker(void);
- void init(WKPageRef page_ref);
+ void init(Evas_Object *ewk_view);
void deinit(void);
void pause(void);
private:
};
/* ewk view event callback functions */
- static void __decide_policy_for_navigation_action(
- WKPageRef page, WKFrameRef frame, WKFrameNavigationType navigationType,
- WKEventModifiers modifiers, WKEventMouseButton mouseButton,
- WKURLRequestRef request, WKFramePolicyListenerRef listener,
- WKTypeRef userData, const void* clientInfo);
- static void __decide_policy_for_response_cb(WKPageRef page, WKFrameRef frame,
- WKURLResponseRef response, WKURLRequestRef request,
- WKFramePolicyListenerRef listener, WKTypeRef user_data,
- const void *client_info);
+ static void __decide_policy_for_navigation_action(void *data, Evas_Object *obj, void *event_info);
+ static void __decide_policy_for_response_cb(void *data, Evas_Object *obj, void *event_info);
/* download client callback functions */
static void __download_did_start_cb(const char *download_url, void *user_data);
static void __popup_response_cb(void *data, Evas_Object *obj, void *event_info);
static void __player_cb(void *data, Evas_Object *obj, void *event_info);
static void __internet_cb(void *data, Evas_Object *obj, void *event_info);
+ static bool __launch_matched_application_cb(service_h service, const char *package, void *data);
/* Warning : MUST free() returned char* */
- char *_convert_WKStringRef_to_cstring(WKStringRef string_ref);
- string _convert_WKStringRef_to_string(WKStringRef string_ref);
- int _decide_policy_type(WKFrameRef frame, WKStringRef content_type_ref, string &content_type);
- void _request_download(WKURLRequestRef request, WKURLResponseRef response, string& content_type);
+ void _request_download(Ewk_Policy_Decision *policy_decision);
Eina_Bool _launch_download_app(const char *url, const char *cookies = NULL);
string _get_extension_name_from_url(string &url);
Eina_Bool _show_app_list_popup(void);
const char *_get_app_name_from_pkg_name(string& pkg_name);
Eina_Bool _handle_exscheme(void);
- WKPageRef m_wk_page_ref;
+ Evas_Object *m_ewk_view;
Evas_Object *m_navi_bar;
Evas_Object *m_list_popup;
Evas_Object *m_app_list;
Browser_View *m_browser_view;
+ Eina_Bool m_found_matched_app;
string m_url;
string m_cookies;