Bug 97861

Summary: [EFL][WK2] Move timeout callback to the CallbackDataTimer class.
Product: WebKit Reporter: Byungwoo Lee <bw80.lee>
Component: WebKit EFLAssignee: Byungwoo Lee <bw80.lee>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, gyuyoung.kim, kenneth, laszlo.gombos, lucas.de.marchi, rakuco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Byungwoo Lee
Reported 2012-09-27 22:06:00 PDT
Timeout callback implementation can be moved to the CallbackDataTimer class.
Attachments
Patch (5.31 KB, patch)
2012-09-27 23:37 PDT, Byungwoo Lee
no flags
Patch (5.61 KB, patch)
2012-09-28 09:17 PDT, Byungwoo Lee
no flags
Patch (5.57 KB, patch)
2012-10-03 23:05 PDT, Byungwoo Lee
no flags
Patch (5.38 KB, patch)
2012-10-09 07:40 PDT, Byungwoo Lee
no flags
Byungwoo Lee
Comment 1 2012-09-27 23:37:25 PDT
Byungwoo Lee
Comment 2 2012-09-28 09:17:04 PDT
Gyuyoung Kim
Comment 3 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
Byungwoo Lee
Comment 4 2012-10-03 23:05:17 PDT
Byungwoo Lee
Comment 5 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~
Gyuyoung Kim
Comment 6 2012-10-09 06:02:35 PDT
Comment on attachment 167036 [details] Patch LGTM.
Gyuyoung Kim
Comment 7 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.
Byungwoo Lee
Comment 8 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.
Kenneth Rohde Christiansen
Comment 9 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.
Gyuyoung Kim
Comment 10 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 ?
Byungwoo Lee
Comment 11 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 :)
Gyuyoung Kim
Comment 12 2012-10-09 07:31:58 PDT
Oops, if so, sorry about misunderstanding. :-)
Byungwoo Lee
Comment 13 2012-10-09 07:40:15 PDT
Kenneth Rohde Christiansen
Comment 14 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.
Byungwoo Lee
Comment 15 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 :-)
WebKit Review Bot
Comment 16 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>
WebKit Review Bot
Comment 17 2012-10-09 18:41:31 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.