Bug 44931 - [EFL] Add setting API for enabling page cache.
Summary: [EFL] Add setting API for enabling page cache.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 23:36 PDT by Gyuyoung Kim
Modified: 2010-09-13 15:05 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.97 KB, patch)
2010-08-30 23:42 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gyuyoung Kim 2010-08-30 23:36:41 PDT
Add APIs to enable / disable page cache.
Comment 1 Gyuyoung Kim 2010-08-30 23:42:39 PDT
Created attachment 66017 [details]
Patch
Comment 2 Kenneth Rohde Christiansen 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!
Comment 3 Gyuyoung Kim 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.
Comment 4 Kenneth Rohde Christiansen 2010-09-13 00:01:09 PDT
What do you EFL guys think?
Comment 5 Rafael Antognolli 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.
Comment 6 Kenneth Rohde Christiansen 2010-09-13 13:44:49 PDT
Comment on attachment 66017 [details]
Patch

We can change the method names as a separate patch
Comment 7 WebKit Commit Bot 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>
Comment 8 WebKit Commit Bot 2010-09-13 15:05:48 PDT
All reviewed patches have been landed.  Closing bug.