WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98793
[EFL][WK2] Revisit setting API names and documentation
https://bugs.webkit.org/show_bug.cgi?id=98793
Summary
[EFL][WK2] Revisit setting API names and documentation
Jinwoo Song
Reported
2012-10-09 10:50:35 PDT
API names are inconsistent and some comment of parameters are missing.
Attachments
Patch
(10.71 KB, patch)
2012-10-09 13:21 PDT
,
Jinwoo Song
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
patch for landing.
(10.71 KB, patch)
2012-10-09 20:08 PDT
,
Jinwoo Song
no flags
Details
Formatted Diff
Diff
Patch
(13.15 KB, patch)
2012-10-11 01:13 PDT
,
Jinwoo Song
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jinwoo Song
Comment 1
2012-10-09 13:21:50 PDT
Created
attachment 167834
[details]
Patch
WebKit Review Bot
Comment 2
2012-10-09 15:02:15 PDT
Comment on
attachment 167834
[details]
Patch
Attachment 167834
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14249098
New failing tests: accessibility/media-controls.html
Ryuan Choi
Comment 3
2012-10-09 16:21:24 PDT
Thank you. I didn't follow this decision while upstreaming tizen code. LGTM.
Jinwoo Song
Comment 4
2012-10-09 20:08:53 PDT
Created
attachment 167900
[details]
patch for landing.
Laszlo Gombos
Comment 5
2012-10-09 21:29:41 PDT
Comment on
attachment 167900
[details]
patch for landing. View in context:
https://bugs.webkit.org/attachment.cgi?id=167900&action=review
> Source/WebKit2/ChangeLog:3 > + [EFL][WK2] Refine the setting API names and comments
Technically it might be a comment in the code, but I think it is more descriptive to use the word documentation instead of comment - as the patch fixes API documentation. How about "Revisit setting API names and documentation"
> Source/WebKit2/ChangeLog:9 > + and some comment of parameters are missing.
--> "add missing documentation for API arguments"
> Source/WebKit2/UIProcess/API/efl/ewk_settings.h:74 > + * By default, the javascript excuting is enabled.
--> "JavaScript execution is enabled".
> Source/WebKit2/UIProcess/API/efl/ewk_settings.h:85 > + * Returns whether the javascript is executable or not.
Returns whether JavaScript execution is enabled.
Grzegorz Czajkowski
Comment 6
2012-10-10 00:10:14 PDT
Frankly speaking I like the original API syntax which you are changing at the moment. IMHO ewk_settings_enable_frame_flattening_set sounds/looks better than ewk_settings_frame_flattening_enabled_set because: 1) WK1 uses similar API, for example: ewk_view_setting_enable_frame_flattening_set 2) Verb next to another verb (enabled_set) doesn't looks/sounds well. 3) I'd rather prefer not using plural in API (enabled -> enable) 4) The Spelling API
bug 91854
proposes API syntax based on above suggestions (as during work on this there wasn't ewk2-settings yet). So we will have consistent API. I suppose author of an origin API has created it mainly based on WKPreferences.h: WKPreferencesSetFrameFlatteningEnabled -> ewk_settings_frame_flattening_enabled_set If there is no objections I'd rather adjust the other API similar to ewk_settings_enable_frame_flattening_set Feel free to express your opinion about it.
Jinwoo Song
Comment 7
2012-10-10 02:07:25 PDT
(In reply to
comment #5
)
> (From update of
attachment 167900
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=167900&action=review
> > > Source/WebKit2/ChangeLog:3 > > + [EFL][WK2] Refine the setting API names and comments > > Technically it might be a comment in the code, but I think it is more descriptive to use the word documentation instead of comment - as the patch fixes API documentation. > > How about "Revisit setting API names and documentation" >
Exactly right, I'll change the title as your suggestion.
> > Source/WebKit2/ChangeLog:9 > > + and some comment of parameters are missing. > > --> "add missing documentation for API arguments" >
I'll fix it.
> > Source/WebKit2/UIProcess/API/efl/ewk_settings.h:74 > > + * By default, the javascript excuting is enabled. > > --> "JavaScript execution is enabled". > > > Source/WebKit2/UIProcess/API/efl/ewk_settings.h:85 > > + * Returns whether the javascript is executable or not. > > Returns whether JavaScript execution is enabled.
I'll fix it.
Jinwoo Song
Comment 8
2012-10-10 03:15:05 PDT
(In reply to
comment #6
)
> Frankly speaking I like the original API syntax which you are changing at the moment. > > IMHO ewk_settings_enable_frame_flattening_set sounds/looks better than > ewk_settings_frame_flattening_enabled_set because: > > 1) WK1 uses similar API, for example: ewk_view_setting_enable_frame_flattening_set > 2) Verb next to another verb (enabled_set) doesn't looks/sounds well. > 3) I'd rather prefer not using plural in API (enabled -> enable) > 4) The Spelling API
bug 91854
proposes API syntax based on above suggestions (as during work on this there wasn't ewk2-settings yet). So we will have consistent API. > > I suppose author of an origin API has created it mainly based on WKPreferences.h: > WKPreferencesSetFrameFlatteningEnabled -> ewk_settings_frame_flattening_enabled_set > > If there is no objections I'd rather adjust the other API similar to ewk_settings_enable_frame_flattening_set > > Feel free to express your opinion about it.
I think your guessing is right that API authors referenced the WKPreferences APIs. Then I'll ask the opinions about the naming through the webkit-efl mailing list and change the API names according to the consensus. Actually, I vote to your opinion. :) FYI, GTK uses set_enable_frame_flattening() and Qt uses setFrameFlatteningEnabled().
Grzegorz Czajkowski
Comment 9
2012-10-10 03:26:18 PDT
(In reply to
comment #8
)
> (In reply to
comment #6
) > > Frankly speaking I like the original API syntax which you are changing at the moment. > > > > IMHO ewk_settings_enable_frame_flattening_set sounds/looks better than > > ewk_settings_frame_flattening_enabled_set because: > > > > 1) WK1 uses similar API, for example: ewk_view_setting_enable_frame_flattening_set > > 2) Verb next to another verb (enabled_set) doesn't looks/sounds well. > > 3) I'd rather prefer not using plural in API (enabled -> enable) > > 4) The Spelling API
bug 91854
proposes API syntax based on above suggestions (as during work on this there wasn't ewk2-settings yet). So we will have consistent API. > > > > I suppose author of an origin API has created it mainly based on WKPreferences.h: > > WKPreferencesSetFrameFlatteningEnabled -> ewk_settings_frame_flattening_enabled_set > > > > If there is no objections I'd rather adjust the other API similar to ewk_settings_enable_frame_flattening_set > > > > Feel free to express your opinion about it. > > I think your guessing is right that API authors referenced the WKPreferences APIs. > Then I'll ask the opinions about the naming through the webkit-efl mailing list and change the API names according to the consensus. > Actually, I vote to your opinion. :)
Ok thanks, I will support you :)
Grzegorz Czajkowski
Comment 10
2012-10-10 03:30:31 PDT
Comment on
attachment 167900
[details]
patch for landing. Clearing flags as API syntax is being discussed.
Grzegorz Czajkowski
Comment 11
2012-10-10 23:48:47 PDT
Summarizing discussion (
http://lists.webkit.org/pipermail/webkit-efl/2012-October/000336.html
) WK2-EFL should keep consistent with the vast majority of Efl libraries: ewk_foo_bar_enabled_{get,set} Jinwoo, Your idea was ok and we have approval to change the API as you proposed so please apply Laszlo's suggestions and submit the patch.
Jinwoo Song
Comment 12
2012-10-11 01:05:43 PDT
(In reply to
comment #11
)
> Summarizing discussion (
http://lists.webkit.org/pipermail/webkit-efl/2012-October/000336.html
) WK2-EFL should keep consistent with the vast majority of Efl libraries: > > ewk_foo_bar_enabled_{get,set} > > Jinwoo, > Your idea was ok and we have approval to change the API as you proposed so please apply Laszlo's suggestions and submit the patch.
Okay, I'll upload patch.
Jinwoo Song
Comment 13
2012-10-11 01:13:58 PDT
Created
attachment 168161
[details]
Patch
WebKit Review Bot
Comment 14
2012-10-11 02:13:29 PDT
Comment on
attachment 168161
[details]
Patch Clearing flags on attachment: 168161 Committed
r131031
: <
http://trac.webkit.org/changeset/131031
>
WebKit Review Bot
Comment 15
2012-10-11 02:13:34 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.
Top of Page
Format For Printing
XML
Clone This Bug