RESOLVED FIXED 61260
[Chromium] Call setToolTipText() in WebPopupMenuImpl mouse move handler to show tool tip in select popup window.
https://bugs.webkit.org/show_bug.cgi?id=61260
Summary [Chromium] Call setToolTipText() in WebPopupMenuImpl mouse move handler to sh...
Naoki Takano
Reported 2011-05-22 22:45:49 PDT
[Chromium]Call setToolTipText() in WebPopupMenuImpl mouse move handler to show tool tip in select popup window.
Attachments
Patch (6.69 KB, patch)
2011-05-22 22:52 PDT, Naoki Takano
no flags
Patch (8.01 KB, patch)
2011-05-24 19:44 PDT, Naoki Takano
no flags
Patch (8.98 KB, patch)
2011-05-27 19:24 PDT, Naoki Takano
no flags
Ignore this. (1.31 KB, text/plain)
2011-06-06 16:29 PDT, Abhishek Arya
no flags
Naoki Takano
Comment 1 2011-05-22 22:52:05 PDT
Naoki Takano
Comment 2 2011-05-22 22:53:59 PDT
Comment on attachment 94369 [details] Patch Please review.
Kent Tamura
Comment 3 2011-05-23 16:58:08 PDT
Comment on attachment 94369 [details] Patch Does this patch work with all Chromium platforms? I'm afraid for Mac.
Naoki Takano
Comment 4 2011-05-23 17:03:42 PDT
Ah, you are right, I have to look into more Mac... But I don't think the patch harms Mac code like crash. But how about Win and Linux? Is the direction is right? Especially I'm a bit afraid of static_cast<PopupContainer*>(), but it looks Ok after I analyzed statically with code search. Thanks, (In reply to comment #3) > (From update of attachment 94369 [details]) > Does this patch work with all Chromium platforms? I'm afraid for Mac.
Kent Tamura
Comment 5 2011-05-23 17:22:07 PDT
(In reply to comment #4) > Ah, you are right, I have to look into more Mac... But I don't think the patch harms Mac code like crash. > > But how about Win and Linux? Is the direction is right? Especially I'm a bit afraid of static_cast<PopupContainer*>(), but it looks Ok after I analyzed statically with code search. The patch would be a right direction if we ignored Mac. However we should have a solution for Mac, and the solution might be applied to all platforms. So I don't accept this patch at this moment.
Naoki Takano
Comment 6 2011-05-23 17:23:21 PDT
Sure, I try to fix also on Mac. My Mac is really slow though... (In reply to comment #5) > (In reply to comment #4) > > Ah, you are right, I have to look into more Mac... But I don't think the patch harms Mac code like crash. > > > > But how about Win and Linux? Is the direction is right? Especially I'm a bit afraid of static_cast<PopupContainer*>(), but it looks Ok after I analyzed statically with code search. > > The patch would be a right direction if we ignored Mac. However we should have a solution for Mac, and the solution might be applied to all platforms. So I don't accept this patch at this moment.
Naoki Takano
Comment 7 2011-05-24 00:44:36 PDT
Right now, I'm looking into Mac side source code. And I noticed very interesting thing. The change for Mac is completely independent from Linux and Win change. As you know, Mac uses PopupMenuHelper::ShowPopupMenu() to show popup window, and we can pass the whole tool tip text at once right before the window pops up. Right now, I'm writing the code and I will be able to upload tomorrow. Thanks, (In reply to comment #6) > Sure, I try to fix also on Mac. > > My Mac is really slow though... > > (In reply to comment #5) > > (In reply to comment #4) > > > Ah, you are right, I have to look into more Mac... But I don't think the patch harms Mac code like crash. > > > > > > But how about Win and Linux? Is the direction is right? Especially I'm a bit afraid of static_cast<PopupContainer*>(), but it looks Ok after I analyzed statically with code search. > > > > The patch would be a right direction if we ignored Mac. However we should have a solution for Mac, and the solution might be applied to all platforms. So I don't accept this patch at this moment.
Naoki Takano
Comment 8 2011-05-24 19:44:44 PDT
Naoki Takano
Comment 9 2011-05-24 19:45:31 PDT
Comment on attachment 94730 [details] Patch Please review. It includes Mac change.
Naoki Takano
Comment 10 2011-05-26 23:23:49 PDT
Could you review? As you know,
Naoki Takano
Comment 11 2011-05-26 23:24:29 PDT
Eric or Kent-san, Could you review my patch? I already got LGTM in Mac part. Thanks,
Eric Seidel (no email)
Comment 12 2011-05-27 07:14:07 PDT
I'm not very useful for chromium WebKit reviews. WebCore does have manual tests. You could add a manual test which allowed us to test across all webcore implementations that we do RTL tooltips correctly, etc.
Darin Fisher (:fishd, Google)
Comment 13 2011-05-27 10:28:13 PDT
Comment on attachment 94730 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=94730&action=review > Source/WebKit/chromium/public/WebWidgetClient.h:86 > + virtual void setToolTipText(const WebString&, WebTextDirection hint) { } be sure to cleanup the chromium side so that the methods are declared in the proper order in render_view.{h,cc}.
Naoki Takano
Comment 14 2011-05-27 10:52:18 PDT
Thank you for your review, fishd. Here is the chromium side patch, http://codereview.chromium.org/6974007/ If you have time, could you review it too? Also we need to commit this patch at the same time with chromium and webkit. How I can commit them at the same time? BTW, I cannot find you e-mail address, fishd@chromium.org in Chromium CL. Do you have another e-mail? Thanks, (In reply to comment #13) > (From update of attachment 94730 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=94730&action=review > > > Source/WebKit/chromium/public/WebWidgetClient.h:86 > > + virtual void setToolTipText(const WebString&, WebTextDirection hint) { } > > be sure to cleanup the chromium side so that the methods are declared in the > proper order in render_view.{h,cc}.
Darin Fisher (:fishd, Google)
Comment 15 2011-05-27 11:24:00 PDT
(In reply to comment #14) > Thank you for your review, fishd. > > Here is the chromium side patch, > http://codereview.chromium.org/6974007/ > If you have time, could you review it too? > > Also we need to commit this patch at the same time with chromium and webkit. > How I can commit them at the same time? It is really necessary in this case? It looks like render_view.cc should still compile and work properly if only this WebKit change lands. If I'm wrong, then what we sometimes do is add a #define to a WebKit API header. Then, we land a Chromium patch that is conditional on that #define to implement either the old API or the new API. So land that Chromium patch first. Then land the WebKit patch. Then land a Chromium patch to clean out the conditional code. Then go back and land another WebKit patch to remove the #define. Lot's of back-n-forth, but it is fairly easy once you get used to it. Not sure it is necessary in this case though. > BTW, I cannot find you e-mail address, fishd@chromium.org in Chromium CL. > Do you have another e-mail? Use darin@chromium.org. Sorry for the confusion. I only use the fishd alias on WebKit to avoid confusion with Darin Adler. Bugzilla has a habit of only showing usernames, dropping the @domain part :-P
Naoki Takano
Comment 16 2011-05-27 11:33:38 PDT
I couldn't build correctly at the last time because of virtual derivation. But I'll check it again. Once it looks Ok, I'll add manual-test and then ask again. Thanks, (In reply to comment #15) > (In reply to comment #14) > > Thank you for your review, fishd. > > > > Here is the chromium side patch, > > http://codereview.chromium.org/6974007/ > > If you have time, could you review it too? > > > > Also we need to commit this patch at the same time with chromium and webkit. > > How I can commit them at the same time? > > It is really necessary in this case? It looks like render_view.cc should still compile and work properly if only this WebKit change lands. If I'm wrong, then what we sometimes do is add a #define to a WebKit API header. Then, we land a Chromium patch that is conditional on that #define to implement either the old API or the new API. So land that Chromium patch first. Then land the WebKit patch. Then land a Chromium patch to clean out the conditional code. Then go back and land another WebKit patch to remove the #define. Lot's of back-n-forth, but it is fairly easy once you get used to it. Not sure it is necessary in this case though. > > > > BTW, I cannot find you e-mail address, fishd@chromium.org in Chromium CL. > > Do you have another e-mail? > > Use darin@chromium.org. Sorry for the confusion. I only use the fishd alias on WebKit to avoid confusion with Darin Adler. Bugzilla has a habit of only showing usernames, dropping the @domain part :-P
Naoki Takano
Comment 17 2011-05-27 19:24:14 PDT
Naoki Takano
Comment 18 2011-05-27 19:25:31 PDT
Comment on attachment 95245 [details] Patch Added manual test. Also I made sure we don't have to land the patch at once btw Chromium and WebKit. So please land this patch.
Naoki Takano
Comment 19 2011-05-31 10:32:32 PDT
Darin, Could you review again? As I wrote here, I just added manual test. Thanks, (In reply to comment #18) > (From update of attachment 95245 [details]) > Added manual test. > > Also I made sure we don't have to land the patch at once btw Chromium and WebKit. > > So please land this patch.
Naoki Takano
Comment 20 2011-06-01 09:42:09 PDT
Can anybody review my patch? The main c++ part review is already done. Just I want to make sure manual test is Ok or not. Thanks, (In reply to comment #19) > Darin, > > Could you review again? > > As I wrote here, I just added manual test. > > Thanks, > > (In reply to comment #18) > > (From update of attachment 95245 [details] [details]) > > Added manual test. > > > > Also I made sure we don't have to land the patch at once btw Chromium and WebKit. > > > > So please land this patch.
Naoki Takano
Comment 21 2011-06-02 09:40:54 PDT
Does anybody review my patch? Chromium side review is done, but I cannot commit without this patch landing. (In reply to comment #20) > Can anybody review my patch? > > The main c++ part review is already done. > > Just I want to make sure manual test is Ok or not. > > Thanks, > > (In reply to comment #19) > > Darin, > > > > Could you review again? > > > > As I wrote here, I just added manual test. > > > > Thanks, > > > > (In reply to comment #18) > > > (From update of attachment 95245 [details] [details] [details]) > > > Added manual test. > > > > > > Also I made sure we don't have to land the patch at once btw Chromium and WebKit. > > > > > > So please land this patch.
Naoki Takano
Comment 22 2011-06-02 19:06:46 PDT
Eric, Could you land my patch? As you see, I just added manual test here as you suggested me. So I believe you can review it. Thanks, (In reply to comment #21) > Does anybody review my patch? > > Chromium side review is done, but I cannot commit without this patch landing. > > (In reply to comment #20) > > Can anybody review my patch? > > > > The main c++ part review is already done. > > > > Just I want to make sure manual test is Ok or not. > > > > Thanks, > > > > (In reply to comment #19) > > > Darin, > > > > > > Could you review again? > > > > > > As I wrote here, I just added manual test. > > > > > > Thanks, > > > > > > (In reply to comment #18) > > > > (From update of attachment 95245 [details] [details] [details] [details]) > > > > Added manual test. > > > > > > > > Also I made sure we don't have to land the patch at once btw Chromium and WebKit. > > > > > > > > So please land this patch.
Eric Seidel (no email)
Comment 23 2011-06-03 07:40:34 PDT
Comment on attachment 95245 [details] Patch rs=me based on fishd's previous r+.
WebKit Commit Bot
Comment 24 2011-06-03 09:00:38 PDT
Comment on attachment 95245 [details] Patch Clearing flags on attachment: 95245 Committed r88021: <http://trac.webkit.org/changeset/88021>
WebKit Commit Bot
Comment 25 2011-06-03 09:00:44 PDT
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 26 2011-06-03 09:23:16 PDT
The commit-queue encountered the following flaky tests while processing attachment 95245 [details]: http/tests/websocket/tests/frame-length-longer-than-buffer.html bug 61837 (author: abarth@webkit.org) The commit-queue is continuing to process your patch.
Abhishek Arya
Comment 27 2011-06-06 16:29:23 PDT
Created attachment 96149 [details] Ignore this.
Abhishek Arya
Comment 28 2011-06-06 16:30:31 PDT
Sorry wrong bug.
Note You need to log in before you can comment on or make changes to this bug.