RESOLVED FIXED Bug 32550
[Qt] Implement combobox delegate for Qt
https://bugs.webkit.org/show_bug.cgi?id=32550
Summary [Qt] Implement combobox delegate for Qt
Luiz Agostini
Reported 2009-12-15 04:47:40 PST
Implementing a delegation API to enable combobox popup customizations.
Attachments
Moving list populate methods from PopupMenuQt to QWebPopup. (6.68 KB, patch)
2009-12-15 07:51 PST, Luiz Agostini
no flags
Creating abstract popup menu class. (6.75 KB, patch)
2009-12-15 09:13 PST, Luiz Agostini
no flags
Correcting coding style (8.51 KB, patch)
2009-12-15 10:37 PST, Luiz Agostini
kenneth: review-
Some more refactoring. (19.89 KB, patch)
2009-12-15 16:08 PST, Luiz Agostini
kenneth: review-
Abstract web popup factory (4.12 KB, patch)
2009-12-15 16:54 PST, Luiz Agostini
kenneth: review-
Refactoring of class QWebPopup. (20.21 KB, patch)
2009-12-16 08:22 PST, Luiz Agostini
no flags
Refactoring of class QWebPopup. (20.66 KB, patch)
2009-12-16 09:11 PST, Luiz Agostini
no flags
Abstract popup menu factory. (5.59 KB, patch)
2009-12-16 14:46 PST, Luiz Agostini
no flags
Luiz Agostini
Comment 1 2009-12-15 07:51:57 PST
Created attachment 44878 [details] Moving list populate methods from PopupMenuQt to QWebPopup. The methods that populate the combobox popup will be implemented by the popup customization class. They could not be in PopupMenu and were moved to QWebPopup.
WebKit Review Bot
Comment 2 2009-12-15 07:55:59 PST
style-queue ran check-webkit-style on attachment 44878 [details] without any errors.
Kenneth Rohde Christiansen
Comment 3 2009-12-15 08:01:31 PST
It should be noted that the patch just attached is just one of many needed to implement the feature.
Kenneth Rohde Christiansen
Comment 4 2009-12-15 08:03:51 PST
Comment on attachment 44878 [details] Moving list populate methods from PopupMenuQt to QWebPopup. LGTM
WebKit Commit Bot
Comment 5 2009-12-15 08:14:00 PST
Comment on attachment 44878 [details] Moving list populate methods from PopupMenuQt to QWebPopup. Clearing flags on attachment: 44878 Committed r52151: <http://trac.webkit.org/changeset/52151>
WebKit Commit Bot
Comment 6 2009-12-15 08:14:06 PST
All reviewed patches have been landed. Closing bug.
Luiz Agostini
Comment 7 2009-12-15 09:13:16 PST
Created attachment 44883 [details] Creating abstract popup menu class. Creating QAbstractPopupMenu class and QDefaultPopupMenu class that inherits from QAbstractPopupMenu. Custom combobox popup menu implementations will inherit from QAbstractPopupMenu. QDefaultPopupMenu needs to be improved to provide standard features that are missing in QtWebKit. No behaviour changes.
WebKit Review Bot
Comment 8 2009-12-15 09:17:35 PST
Attachment 44883 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/platform/PopupMenu.h:45: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1
Luiz Agostini
Comment 9 2009-12-15 10:37:07 PST
Created attachment 44888 [details] Correcting coding style
Luiz Agostini
Comment 10 2009-12-15 10:38:31 PST
Bug was closed by the commit-bot, but the feature is still not fully implemented.
WebKit Review Bot
Comment 11 2009-12-15 10:40:11 PST
style-queue ran check-webkit-style on attachment 44888 [details] without any errors.
Eric Seidel (no email)
Comment 12 2009-12-15 11:20:26 PST
Generally we try to do one patch per bug, and open additional bugs for additional patches. You can always use the "depends on" and "blocks" features to indicate that bugs are related.
Luiz Agostini
Comment 13 2009-12-15 16:08:20 PST
Created attachment 44920 [details] Some more refactoring. Class QWebPopup and QWebPopup.* files renamed to QtAbstractWebPopup. Class QDefaultWebPopup renamed to QtFallbackWebPopup and moved to its own file. No behavior changes.
Luiz Agostini
Comment 14 2009-12-15 16:54:26 PST
Created attachment 44925 [details] Abstract web popup factory No behavior changes.
Kenneth Rohde Christiansen
Comment 15 2009-12-16 04:52:44 PST
Comment on attachment 44920 [details] Some more refactoring. Could you merge this patch with the previous one? Due to the layering new delegate implementations cannot inherit directly from the QtAbstractWebPopup, so that should be more clear in the ChangeLog.
Kenneth Rohde Christiansen
Comment 16 2009-12-16 04:56:48 PST
Comment on attachment 44888 [details] Correcting coding style QAbstractPopupMenu and QDefaultPopupMenu are bad names as they are Qt specific WebCore classes, and not Qt public classes. In other places we have prefixes these with Qt* instead.
Kenneth Rohde Christiansen
Comment 17 2009-12-16 05:01:21 PST
Comment on attachment 44925 [details] Abstract web popup factory Please explain better in the ChangeLog where you are heading and why you did this particular change.
Luiz Agostini
Comment 18 2009-12-16 08:22:32 PST
Created attachment 44978 [details] Refactoring of class QWebPopup. Class QWebPopup has been split in QtAbstractWebPopup and QtFallbackWebPopup. Both new classes are now in corresponding files and files QWebPopup.* have been removed. Custom combo popup classes will inherit from QtAbstractWebPopup. It is not the public API as it is in WebCore and will not be visible by users of QtWebKit. It will be used in implementation of public QtWebKit combobox popup delegation API. Class QtFallbackWebPopup inherits from QtAbstractWebPopup and implements the currently used combobox popup. It needs to be improved to provide standard features that are missing like style or indentation.
WebKit Review Bot
Comment 19 2009-12-16 08:23:58 PST
Attachment 44978 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 Skipping input 'WebCore/platform/qt/QWebPopup.cpp': Can't open for reading WebCore/platform/qt/QtFallbackWebPopup.cpp:22: You should add a blank line after implementation file's own header. [build/include_order] [4] WebCore/platform/qt/QtAbstractWebPopup.cpp:22: You should add a blank line after implementation file's own header. [build/include_order] [4] Skipping input 'WebCore/platform/qt/QWebPopup.h': Can't open for reading WebCore/platform/qt/QtAbstractWebPopup.h:26: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 3
Luiz Agostini
Comment 20 2009-12-16 09:11:36 PST
Created attachment 44983 [details] Refactoring of class QWebPopup. Class QWebPopup has been split in QtAbstractWebPopup and QtFallbackWebPopup. Both new classes are now in corresponding files and files QWebPopup.* have been removed. Custom combo popup classes will inherit from QtAbstractWebPopup. It is not the public API as it is in WebCore and will not be visible by users of QtWebKit. It will be used in implementation of public QtWebKit combobox popup delegation API. Class QtFallbackWebPopup inherits from QtAbstractWebPopup and implements the currently used combobox popup. It needs to be improved to provide standard features that are missing like style or indentation.
WebKit Review Bot
Comment 21 2009-12-16 09:15:38 PST
style-queue ran check-webkit-style on attachment 44983 [details] without any errors.
WebKit Commit Bot
Comment 22 2009-12-16 09:27:16 PST
Comment on attachment 44983 [details] Refactoring of class QWebPopup. Clearing flags on attachment: 44983 Committed r52199: <http://trac.webkit.org/changeset/52199>
WebKit Commit Bot
Comment 23 2009-12-16 09:27:22 PST
All reviewed patches have been landed. Closing bug.
Luiz Agostini
Comment 24 2009-12-16 13:57:35 PST
Bug was closed by the commit-bot, but the feature is still not fully implemented. I am trying to send just really small patches on these first times. That is why I am sending several patches on this same bug. There is no sense on creating one bug for each such small patches.
Luiz Agostini
Comment 25 2009-12-16 14:46:55 PST
Created attachment 45015 [details] Abstract popup menu factory. The objective is to make it easy to replace the combobox popup at WebCore layer providing support to the combobox popup delegation API. Future patches will make it possible to replace the combobox popup at WebKit layer.
WebKit Review Bot
Comment 26 2009-12-16 14:51:34 PST
style-queue ran check-webkit-style on attachment 45015 [details] without any errors.
WebKit Commit Bot
Comment 27 2009-12-16 15:52:46 PST
Comment on attachment 45015 [details] Abstract popup menu factory. Clearing flags on attachment: 45015 Committed r52223: <http://trac.webkit.org/changeset/52223>
WebKit Commit Bot
Comment 28 2009-12-16 15:52:54 PST
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.