зеркало из https://github.com/mozilla/gecko-dev.git
Bug 589868 - Qt widget/EGL does not work on Maemo anymore. r=dougt a=blocking-fennec
This commit is contained in:
Родитель
4467f2eef3
Коммит
8313173ea6
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче