Bug 117467

Summary: [EFL][WK2] Add ewk_view_navigate API
Product: WebKit Reporter: Ryuan Choi <ryuan.choi>
Component: WebKit EFLAssignee: Ryuan Choi <ryuan.choi>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, gyuyoung.kim, lucas.de.marchi, rakuco
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch cdumez: review+

Description Ryuan Choi 2013-06-10 18:58:38 PDT
Patch will be added.
Comment 1 Ryuan Choi 2013-06-10 19:10:12 PDT
Created attachment 204276 [details]
Patch
Comment 2 Chris Dumez 2013-06-10 22:59:19 PDT
Comment on attachment 204276 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=204276&action=review

> Source/WebKit2/ChangeLog:11
> +        (EwkBackForwardListItem::wkItem): Return WKBackForwardListItemRef for pate to navigate.

pate -> page

> Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:314
> +Eina_Bool ewk_view_navigate(Evas_Object* ewkView, int steps)

The application usually wants to navigate to a history item (i.e. back forward list item), not using a number of steps. I think this API should take a Ewk_Back_Forward_List_Item in argument and maybe rename to "ewk_view_navigate_to()".
Comment 3 Ryuan Choi 2013-06-10 23:20:58 PDT
(In reply to comment #2)
> (From update of attachment 204276 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=204276&action=review
> 
> > Source/WebKit2/ChangeLog:11
> > +        (EwkBackForwardListItem::wkItem): Return WKBackForwardListItemRef for pate to navigate.
> 
> pate -> page
> 

Oops, sorry I will fix it.

> > Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:314
> > +Eina_Bool ewk_view_navigate(Evas_Object* ewkView, int steps)
> 
> The application usually wants to navigate to a history item (i.e. back forward list item), not using a number of steps. I think this API should take a Ewk_Back_Forward_List_Item in argument and maybe rename to "ewk_view_navigate_to()".

It depends on application developers but make sense.

I choosed steps because I still consider consistency of legacy(ewebkit1 and elm_web).

I will update like you mentioned.
Comment 4 Ryuan Choi 2013-06-11 00:05:36 PDT
Created attachment 204293 [details]
Patch
Comment 5 Chris Dumez 2013-06-11 00:44:57 PDT
Comment on attachment 204293 [details]
Patch

Looks fine, r=me.
Comment 6 Ryuan Choi 2013-06-11 01:10:48 PDT
Committed r151427: <http://trac.webkit.org/changeset/151427>