Bug 589868 - Qt widget/EGL does not work on Maemo anymore. r=dougt a=blocking-fennec

This commit is contained in:
Oleg Romashin 2010-08-31 09:35:57 -07:00
Родитель 4467f2eef3
Коммит 8313173ea6
2 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -1972,6 +1972,26 @@ nsWindow::Create(nsIWidget *aParent,
return NS_OK;
}
already_AddRefed<nsIWidget>
nsWindow::CreateChild(const nsIntRect& aRect,
EVENT_CALLBACK aHandleEventFunction,
nsIDeviceContext* aContext,
nsIAppShell* aAppShell,
nsIToolkit* aToolkit,
nsWidgetInitData* aInitData,
PRBool /*aForceUseIWidgetParent*/)
{
//We need to force parent widget, otherwise GetTopLevelWindow doesn't work
return nsBaseWidget::CreateChild(aRect,
aHandleEventFunction,
aContext,
aAppShell,
aToolkit,
aInitData,
PR_TRUE); // Force parent
}
NS_IMETHODIMP
nsWindow::SetWindowClass(const nsAString &xulWinType)
{

Просмотреть файл

@ -130,6 +130,16 @@ public:
nsIAppShell *aAppShell,
nsIToolkit *aToolkit,
nsWidgetInitData *aInitData);
virtual already_AddRefed<nsIWidget>
CreateChild(const nsIntRect& aRect,
EVENT_CALLBACK aHandleEventFunction,
nsIDeviceContext* aContext,
nsIAppShell* aAppShell = nsnull,
nsIToolkit* aToolkit = nsnull,
nsWidgetInitData* aInitData = nsnull,
PRBool aForceUseIWidgetParent = PR_TRUE);
NS_IMETHOD Destroy(void);
NS_IMETHOD SetParent(nsIWidget* aNewParent);
virtual nsIWidget *GetParent(void);