зеркало из https://github.com/mozilla/pjs.git
Remove PreCreate method from nsComboBox.h added QueryInterface method to
nsTextWidget.cpp
This commit is contained in:
Родитель
ab748917dc
Коммит
c29039b0b0
|
@ -50,8 +50,6 @@ public:
|
|||
virtual void SelectItem(PRInt32 aPosition);
|
||||
virtual void Deselect() ;
|
||||
|
||||
virtual void PreCreateWidget(nsWidgetInitData *aInitData);
|
||||
|
||||
void Create(nsIWidget *aParent,
|
||||
const nsRect &aRect,
|
||||
EVENT_CALLBACK aHandleEventFunction,
|
||||
|
|
|
@ -117,12 +117,28 @@ void nsTextWidget::Create(nsIWidget *aParent,
|
|||
data->mPassword = "";
|
||||
XtVaSetValues(mWidget, XmNuserData, data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Query interface implementation
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
nsresult nsTextWidget::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
nsresult result = nsWindow::QueryInterface(aIID, aInstancePtr);
|
||||
|
||||
static NS_DEFINE_IID(kInsTextWidgetIID, NS_ITEXTWIDGET_IID);
|
||||
if (result == NS_NOINTERFACE && aIID.Equals(kInsTextWidgetIID)) {
|
||||
*aInstancePtr = (void*) ((nsITextWidget*)this);
|
||||
AddRef();
|
||||
result = NS_OK;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
void nsTextWidget::Create(nsNativeWidget aParent,
|
||||
const nsRect &aRect,
|
||||
|
|
Загрузка…
Ссылка в новой задаче