RESOLVED FIXED 44931
[EFL] Add setting API for enabling page cache.
https://bugs.webkit.org/show_bug.cgi?id=44931
Summary [EFL] Add setting API for enabling page cache.
Gyuyoung Kim
Reported 2010-08-30 23:36:41 PDT
Add APIs to enable / disable page cache.
Attachments
Patch (3.97 KB, patch)
2010-08-30 23:42 PDT, Gyuyoung Kim
no flags
Gyuyoung Kim
Comment 1 2010-08-30 23:42:39 PDT
Kenneth Rohde Christiansen
Comment 2 2010-08-31 02:51:46 PDT
Comment on attachment 66017 [details] Patch > +Eina_Bool ewk_view_setting_page_cache_get(Evas_Object* o) why not page_cache_enabled? it returns a bool not a page cache!
Gyuyoung Kim
Comment 3 2010-08-31 03:29:12 PDT
(In reply to comment #2) > (From update of attachment 66017 [details]) > > > +Eina_Bool ewk_view_setting_page_cache_get(Evas_Object* o) > > why not page_cache_enabled? it returns a bool not a page cache! The ewk_view_setting_page_cache_get() just returns if page cache feature is enabled or not. This method doesn't return page cache. In ewk_view.cpp, settings features like local_storage also have similar method. Eina_Bool ewk_view_setting_spatial_navigation_get(Evas_Object* o) { EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE); EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE); return priv->settings.spatial_navigation; } Eina_Bool ewk_view_setting_local_storage_get(Evas_Object* o) { EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE); EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE); return priv->settings.local_storage; } ... I add a doxyzen for the method. However, if the naming can make confusion, I change the name.
Kenneth Rohde Christiansen
Comment 4 2010-09-13 00:01:09 PDT
What do you EFL guys think?
Rafael Antognolli
Comment 5 2010-09-13 12:14:36 PDT
(In reply to comment #4) > What do you EFL guys think? The naming is really not the best one, but as Gyuyoung told, it's following other ewk_view_setting functions. Maybe we should make a big change on all of them? Anyway, the patch looks good to me.
Kenneth Rohde Christiansen
Comment 6 2010-09-13 13:44:49 PDT
Comment on attachment 66017 [details] Patch We can change the method names as a separate patch
WebKit Commit Bot
Comment 7 2010-09-13 15:05:43 PDT
Comment on attachment 66017 [details] Patch Clearing flags on attachment: 66017 Committed r67413: <http://trac.webkit.org/changeset/67413>
WebKit Commit Bot
Comment 8 2010-09-13 15:05:48 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.