RESOLVED FIXED 85907
[BlackBerry] Enable PAGE_POPUP in make file, and implement required methods
https://bugs.webkit.org/show_bug.cgi?id=85907
Summary [BlackBerry] Enable PAGE_POPUP in make file, and implement required methods
Crystal Zhang
Reported 2012-05-08 12:36:09 PDT
Enable PAGE_POPUP in make file, and implement required methods.
Attachments
patch (13.35 KB, patch)
2012-05-08 15:02 PDT, Crystal Zhang
no flags
Fix style issue and add more details in Changelog. (13.76 KB, patch)
2012-05-09 08:09 PDT, Crystal Zhang
rwlbuis: review-
fix small issue (13.66 KB, patch)
2012-05-09 08:47 PDT, Crystal Zhang
no flags
Crystal Zhang
Comment 1 2012-05-08 15:02:55 PDT
WebKit Review Bot
Comment 2 2012-05-08 15:07:13 PDT
Attachment 140793 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/WebKit/blackberry/Api..." exit_code: 1 Source/WebKit/blackberry/Api/WebPage.cpp:6106: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yong Li
Comment 3 2012-05-09 07:01:07 PDT
Comment on attachment 140793 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=140793&action=review > Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp:314 > + if (!hasOpenedPopup()) { > + webPopup = new PagePopupBlackBerry(m_webPagePrivate, client, > + rootViewToScreen(originBoundsInRootView)); > + m_webPagePrivate->m_webPage->popupOpened(webPopup); > + webPopup->sendCreatePopupWebViewRequest(); > + } else { > + webPopup = m_webPagePrivate->m_webPage->popup(); > + webPopup->closeWebPage(); > + webPopup->sendCreatePopupWebViewRequest(); > + } They can share one webPopup->sendCreatePopupWebViewRequest()?
Yong Li
Comment 4 2012-05-09 07:35:23 PDT
Comment on attachment 140793 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=140793&action=review > ChangeLog:6 > + Reviewed by NOBODY (OOPS!). Need more description after this line.
Yong Li
Comment 5 2012-05-09 07:35:46 PDT
Comment on attachment 140793 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=140793&action=review > Source/WebKit/blackberry/ChangeLog:7 > + Reviewed by NOBODY (OOPS!). > + Need detailed information here
Crystal Zhang
Comment 6 2012-05-09 07:38:00 PDT
Comment on attachment 140793 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=140793&action=review >> Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp:314 >> + } > > They can share one webPopup->sendCreatePopupWebViewRequest()? yes, it will check if it already exists on client side.
Crystal Zhang
Comment 7 2012-05-09 08:09:32 PDT
Created attachment 140947 [details] Fix style issue and add more details in Changelog.
Rob Buis
Comment 8 2012-05-09 08:32:18 PDT
Comment on attachment 140947 [details] Fix style issue and add more details in Changelog. View in context: https://bugs.webkit.org/attachment.cgi?id=140947&action=review Looks good, can be improved some more. > Source/WebKit/blackberry/Api/WebPage.cpp:378 > + You don't need the empty line. > Source/WebKit/blackberry/Api/WebPage.cpp:6106 > + return (d->m_selectPopup) ? false : true; It does not need to be this explicit, just say return d->m_selectPopup; > Source/WebKit/blackberry/Api/WebPage.h:341 > + WebCore::PagePopupBlackBerry* popup(); Can some be const, like hasOpenedPopup? > Source/WebKit/blackberry/Api/WebPage_p.h:544 > + No need for empty line. > Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp:314 > + } You can move the webPopup->sendCreatePopupWebViewRequest(); usage to here so you state it once.
Crystal Zhang
Comment 9 2012-05-09 08:47:58 PDT
Created attachment 140954 [details] fix small issue
Rob Buis
Comment 10 2012-05-09 08:53:58 PDT
Comment on attachment 140954 [details] fix small issue Looks good.
WebKit Review Bot
Comment 11 2012-05-09 09:30:40 PDT
Comment on attachment 140954 [details] fix small issue Clearing flags on attachment: 140954 Committed r116536: <http://trac.webkit.org/changeset/116536>
WebKit Review Bot
Comment 12 2012-05-09 09:30:46 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.