Bug 44319 - [EFL] Add setting API for enabling local storage.
Summary: [EFL] Add setting API for enabling local storage.
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-19 20:09 PDT by Gyuyoung Kim
Modified: 2010-08-25 23:14 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.25 KB, patch)
2010-08-19 20:12 PDT, Gyuyoung Kim
tonikitoo: review-
lucas.de.marchi: commit-queue-
Details | Formatted Diff | Diff
Patch (3.64 KB, patch)
2010-08-23 18:48 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-19 20:09:40 PDT
Add APIs to enable / disable local storage.
Comment 1 Gyuyoung Kim 2010-08-19 20:12:02 PDT
Created attachment 64924 [details]
Patch
Comment 2 Lucas De Marchi 2010-08-23 10:45:16 PDT
Comment on attachment 64924 [details]
Patch

> diff --git a/WebKit/efl/ChangeLog b/WebKit/efl/ChangeLog
> index de65885..d921cae 100644
> --- a/WebKit/efl/ChangeLog
> +++ b/WebKit/efl/ChangeLog
> @@ -1,3 +1,18 @@
> +2010-08-19  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        [EFL] Add setting API for enabling local storage.
> +        https://bugs.webkit.org/show_bug.cgi?id=44319
> +
> +        Add API for enabling/disabling local storage.
> +
> +        * ewk/ewk_view.cpp:
> +        (_ewk_view_priv_new):
> +        (ewk_view_setting_local_storage_get): Added
> +        (ewk_view_setting_local_storage_set): Added
> +        * ewk/ewk_view.h:
> +
>  2010-08-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
>  
>          Reviewed by Antonio Gomes.
> diff --git a/WebKit/efl/ewk/ewk_view.cpp b/WebKit/efl/ewk/ewk_view.cpp
> index 7a98bac..40794eb 100644
> --- a/WebKit/efl/ewk/ewk_view.cpp
> +++ b/WebKit/efl/ewk/ewk_view.cpp
> @@ -107,6 +107,7 @@ struct _Ewk_View_Private_Data {
>          Eina_Bool private_browsing:1;
>          Eina_Bool caret_browsing:1;
>          Eina_Bool spatial_navigation:1;
> +        Eina_Bool local_storage:1;
>          struct {
>              float w;
>              float h;
> @@ -593,6 +594,7 @@ static Ewk_View_Private_Data* _ewk_view_priv_new(Ewk_View_Smart_Data* sd)
>      priv->settings.resizable_textareas = priv->page_settings->textAreasAreResizable();
>      priv->settings.private_browsing = priv->page_settings->privateBrowsingEnabled();
>      priv->settings.caret_browsing = priv->page_settings->caretBrowsingEnabled();
> +    priv->settings.local_storage = priv->page_settings->localStorageEnabled();
>  
>      // Since there's no scale separated from zooming in webkit-efl, this functionality of
>      // viewport meta tag is implemented using zoom. When scale zoom is supported by webkit-efl,
> @@ -2627,6 +2629,25 @@ Eina_Bool ewk_view_setting_spatial_navigation_set(Evas_Object* o, Eina_Bool enab
>      return EINA_TRUE;
>  }
>  
> +Eina_Bool ewk_view_setting_local_storage_get(Evas_Object* o)

Missing doxygen here.

> +{
> +    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;
> +}
> +

Missing doxygen here too.

> +Eina_Bool ewk_view_setting_local_storage_set(Evas_Object* o, Eina_Bool enable)
> +{
> +    EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
> +    EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
> +    enable = !!enable;
> +    if (priv->settings.spatial_navigation != enable) {

local_storage not spatial_navigation




About the doxygen, yes, we don't have that on all exported functions, but let's try to keep it to a minimum.
Comment 3 Antonio Gomes 2010-08-23 10:54:25 PDT
Comment on attachment 64924 [details]
Patch

It needs another round.
Comment 4 Gyuyoung Kim 2010-08-23 18:48:25 PDT
Created attachment 65199 [details]
Patch

Oops, there was very stupid mistake. Thanks.

I fix it and add doxyzen. Please review again.
Comment 5 Lucas De Marchi 2010-08-24 05:29:55 PDT
(In reply to comment #4)
> Created an attachment (id=65199) [details]
> Patch
> 
> Oops, there was very stupid mistake. Thanks.
> 
> I fix it and add doxyzen. Please review again.

OK, it looks good now.
Comment 6 WebKit Commit Bot 2010-08-25 23:14:08 PDT
Comment on attachment 65199 [details]
Patch

Clearing flags on attachment: 65199

Committed r66080: <http://trac.webkit.org/changeset/66080>
Comment 7 WebKit Commit Bot 2010-08-25 23:14:14 PDT
All reviewed patches have been landed.  Closing bug.