RESOLVED FIXED 91956
[EFL] Change prototype of run_open_panel
https://bugs.webkit.org/show_bug.cgi?id=91956
Summary [EFL] Change prototype of run_open_panel
Kihong Kwon
Reported 2012-07-22 21:15:12 PDT
There are many attributes for fileChooser. And we need to use capture attribute to implement HTML media capture on the EFL. But we can not use that, because function prototype is like below. - Eina_Bool (*run_open_panel)(Ewk_View_Smart_Data *sd, Evas_Object *frame, Eina_Bool allows_multiple_files, Eina_List *accept_types, Eina_List **selected_filenames); We can used only two attributes with this prototype.(allows_multiple_files and accept_types) Therefore I think we need to change this prototype to like this. - Eina_Bool (*run_open_panel)(Ewk_View_Smart_Data *sd, Evas_Object *frame, Ewk_File_Chooser_Settings *settings, Eina_List **selected_filenames);
Attachments
Patch (7.22 KB, patch)
2012-07-25 03:50 PDT, Kihong Kwon
no flags
Patch (7.64 KB, patch)
2012-07-26 19:38 PDT, Kihong Kwon
no flags
Kihong Kwon
Comment 1 2012-07-25 03:50:46 PDT
Raphael Kubo da Costa (:rakuco)
Comment 2 2012-07-25 07:56:37 PDT
Comment on attachment 154315 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154315&action=review > Source/WebKit/efl/ChangeLog:10 > + i.e., change "Eina_Bool allows_multiple_files, Eina_List *accpet_types" Nit: s/accpet/accept/ > Source/WebKit/efl/ewk/ewk_view.h:191 > - Eina_Bool (*run_open_panel)(Ewk_View_Smart_Data *sd, Evas_Object *frame, Eina_Bool allows_multiple_files, Eina_List *accept_types, Eina_List **selected_filenames); > + Eina_Bool (*run_open_panel)(Ewk_View_Smart_Data *sd, Evas_Object *frame, Ewk_File_Chooser *file_chooser, Eina_List **selected_filenames); Whenever you change this public smart class you must update EWK_VIEW_SMART_CLASS_VERSION below.
Chris Dumez
Comment 3 2012-07-25 08:06:07 PDT
Comment on attachment 154315 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154315&action=review > Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp:487 > filenames.append((char*)filename); I know this is not related to your patch but since you're touching this part of the code: We should probably use here: filenames.append(String::fromUTF8(static_cast<char*>(filename)));
Kihong Kwon
Comment 4 2012-07-26 19:33:46 PDT
Comment on attachment 154315 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154315&action=review >> Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp:487 >> filenames.append((char*)filename); > > I know this is not related to your patch but since you're touching this part of the code: > We should probably use here: filenames.append(String::fromUTF8(static_cast<char*>(filename))); OK, I will do that. >> Source/WebKit/efl/ewk/ewk_view.h:191 >> + Eina_Bool (*run_open_panel)(Ewk_View_Smart_Data *sd, Evas_Object *frame, Ewk_File_Chooser *file_chooser, Eina_List **selected_filenames); > > Whenever you change this public smart class you must update EWK_VIEW_SMART_CLASS_VERSION below. Done.
Kihong Kwon
Comment 5 2012-07-26 19:38:18 PDT
Raphael Kubo da Costa (:rakuco)
Comment 6 2012-07-26 20:06:33 PDT
Comment on attachment 154816 [details] Patch Looks fine.
Kentaro Hara
Comment 7 2012-07-26 22:36:05 PDT
Comment on attachment 154816 [details] Patch rs=me
WebKit Review Bot
Comment 8 2012-07-27 00:56:57 PDT
Comment on attachment 154816 [details] Patch Clearing flags on attachment: 154816 Committed r123847: <http://trac.webkit.org/changeset/123847>
WebKit Review Bot
Comment 9 2012-07-27 00:57:02 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.