Bug 97861 - [EFL][WK2] Move timeout callback to the CallbackDataTimer class.
Summary: [EFL][WK2] Move timeout callback to the CallbackDataTimer class.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Byungwoo Lee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-27 22:06 PDT by Byungwoo Lee
Modified: 2012-10-09 18:41 PDT (History)
7 users (show)

See Also:


Attachments
Patch (5.31 KB, patch)
2012-09-27 23:37 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff
Patch (5.61 KB, patch)
2012-09-28 09:17 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff
Patch (5.57 KB, patch)
2012-10-03 23:05 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff
Patch (5.38 KB, patch)
2012-10-09 07:40 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Byungwoo Lee 2012-09-27 22:06:00 PDT
Timeout callback implementation can be moved to the CallbackDataTimer class.
Comment 1 Byungwoo Lee 2012-09-27 23:37:25 PDT
Created attachment 166150 [details]
Patch
Comment 2 Byungwoo Lee 2012-09-28 09:17:04 PDT
Created attachment 166264 [details]
Patch
Comment 3 Gyuyoung Kim 2012-10-03 20:57:39 PDT
Comment on attachment 166264 [details]
Patch

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

Looks good refactoring.

> Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:85
> +    CallbackDataTimer(double timeoutSeconds)

Missing explicit keyword
Comment 4 Byungwoo Lee 2012-10-03 23:05:17 PDT
Created attachment 167036 [details]
Patch
Comment 5 Byungwoo Lee 2012-10-03 23:09:24 PDT
(In reply to comment #3)
> (From update of attachment 166264 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=166264&action=review
> 
> Looks good refactoring.
> 
> > Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:85
> > +    CallbackDataTimer(double timeoutSeconds)
> 
> Missing explicit keyword
I added this~
Comment 6 Gyuyoung Kim 2012-10-09 06:02:35 PDT
Comment on attachment 167036 [details]
Patch

LGTM.
Comment 7 Gyuyoung Kim 2012-10-09 06:05:32 PDT
Comment on attachment 167036 [details]
Patch

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

> Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:117
> +    virtual void onTimeOut() { }

I think it would be good to add onTimeOut() when it is needed actually. Please remove this before landing.
Comment 8 Byungwoo Lee 2012-10-09 06:51:34 PDT
(In reply to comment #7)
> (From update of attachment 167036 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=167036&action=review
> 
> > Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:117
> > +    virtual void onTimeOut() { }
> 
> I think it would be good to add onTimeOut() when it is needed actually. Please remove this before landing.

Ok~ I'll remove it.
Comment 9 Kenneth Rohde Christiansen 2012-10-09 07:02:10 PDT
> Ok~ I'll remove it.

What is up with all those ~ signs? I have no idea what this might even mean.
Comment 10 Gyuyoung Kim 2012-10-09 07:24:53 PDT
(In reply to comment #9)
> > Ok~ I'll remove it.
> 
> What is up with all those ~ signs? I have no idea what this might even mean.

Do you mean you can't  know what this patch mean ?  I understood this patch moves timeout callback   into the CallbackDataTimer class as member variable. Because waitUntilXXX functions should pass its callback function to  ctor of CallbackDataTimer. Beside all callback functions do same work. Do you think this patch is redundant ?
Comment 11 Byungwoo Lee 2012-10-09 07:30:08 PDT
(In reply to comment #10)
> (In reply to comment #9)
> > > Ok~ I'll remove it.
> > 
> > What is up with all those ~ signs? I have no idea what this might even mean.
> 
> Do you mean you can't  know what this patch mean ?  I understood this patch moves timeout callback   into the CallbackDataTimer class as member variable. Because waitUntilXXX functions should pass its callback function to  ctor of CallbackDataTimer. Beside all callback functions do same work. Do you think this patch is redundant ?

Maybe kenneth asked about the '~' character that I used in the comment. (is it?)

It means nothing, just like dot character.
If you have some confusion about the character, I'll not use it :)
Comment 12 Gyuyoung Kim 2012-10-09 07:31:58 PDT
Oops, if so, sorry about misunderstanding. :-)
Comment 13 Byungwoo Lee 2012-10-09 07:40:15 PDT
Created attachment 167752 [details]
Patch
Comment 14 Kenneth Rohde Christiansen 2012-10-09 07:45:08 PDT
(In reply to comment #12)
> Oops, if so, sorry about misunderstanding. :-)

Exactly it is not really used in English so better not confuse people :-) It could be a "." for me or a ";" no idea.
Comment 15 Byungwoo Lee 2012-10-09 09:28:42 PDT
(In reply to comment #14)
> (In reply to comment #12)
> > Oops, if so, sorry about misunderstanding. :-)
> 
> Exactly it is not really used in English so better not confuse people :-) It could be a "." for me or a ";" no idea.

Thanks for your kind comment. I'll remember that :-)
Comment 16 WebKit Review Bot 2012-10-09 18:41:26 PDT
Comment on attachment 167752 [details]
Patch

Clearing flags on attachment: 167752

Committed r130836: <http://trac.webkit.org/changeset/130836>
Comment 17 WebKit Review Bot 2012-10-09 18:41:31 PDT
All reviewed patches have been landed.  Closing bug.