ewk changed run_open_panel interface since webkit's r123847

In order to support all of <file> attribute, run_open_panel was changed since r123847.
For more information, please see https://bugs.webkit.org/show_bug.cgi?id=91956
This commit is contained in:
Ryuan Choi 2013-07-22 08:03:12 +09:00
parent b93ba7b894
commit 07c8f3e011
1 changed files with 6 additions and 5 deletions

View File

@ -686,8 +686,7 @@ _view_smart_run_javascript_prompt(Ewk_View_Smart_Data *esd,
static Eina_Bool
_view_smart_run_open_panel(Ewk_View_Smart_Data *esd,
Evas_Object *frame __UNUSED__,
Eina_Bool allows_multiple_files,
Eina_List *accept_types,
Ewk_File_Chooser *request,
Eina_List **selected_filenames)
{
View_Smart_Data *vsd = (View_Smart_Data *)esd;
@ -700,12 +699,14 @@ _view_smart_run_open_panel(Ewk_View_Smart_Data *esd,
if (sd->hook.file_selector)
diag = sd->hook.file_selector(sd->hook.file_selector_data, obj,
allows_multiple_files, accept_types,
ewk_file_chooser_allows_multiple_files_get(request),
ewk_file_chooser_accept_mimetypes_get(request),
selected_filenames, &response);
else
diag = _run_dialog(view, DIALOG_FILE_SELECTOR, NULL, NULL, NULL,
allows_multiple_files, accept_types, selected_filenames,
&response);
ewk_file_chooser_allows_multiple_files_get(request),
ewk_file_chooser_accept_mimetypes_get(request),
selected_filenames, &response);
if (diag) _exec_dialog(diag);
return response;