[Webkit-unassigned] [Bug 114966] [Qt] QWebKitPlatformPlugin should export available Plugin interfaces
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 7 02:18:07 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114966
--- Comment #20 from Arunprasad Rajkumar <arurajku at cisco.com> 2013-05-07 02:16:31 PST ---
(In reply to comment #19)
> > I also added parent parameter to createExtension like below,
> >
> > virtual QObject* createExtension(Extension, QObject* parent = 0) const = 0;.
> >
> > What do you think?
>
> Can you explain why you would like to add the parent? (the ChangeLog does not mention why)
Sorry :(, I will describe it in ChangeLog. The need for parent may have more usecases.But from my view,
we can use _parent_ while creating any new widgets from plugin(if we didn't specify the widget will be created in new window), not only for this, objects lifetime can be associated with _parent_ so that destruction can be automated.
(Sample usecase, while creating a MultipleSelections widget using via plugin, we can assign the Popup's parent as _parent_ so that it won't need a separate window to show it)
_parent_ - denotes the parent passed as a parameter to QWebKitPlatformPlugin::createExtension()
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list