Cocoa widget bustage fix following bug 46177

This commit is contained in:
mark%moxienet.com 2006-08-01 01:25:43 +00:00
Родитель 71cd5bcecc
Коммит d264b05e10
4 изменённых файлов: 32 добавлений и 3 удалений

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

@ -87,6 +87,7 @@ public:
NS_IMETHOD DispatchDOMEvent(const nsString &eventName, PRBool *preventDefaultCalled);
NS_IMETHOD SetModifiers(PRUint8 aModifiers);
NS_IMETHOD GetModifiers(PRUint8 * aModifiers);
NS_IMETHOD SetupIcon();
// nsIMenuListener interface
nsEventStatus MenuItemSelected(const nsMenuEvent & aMenuEvent);

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

@ -490,3 +490,10 @@ nsMenuItemX::ContentInserted(nsIDocument *aDocument, nsIContent *aChild, PRInt32
listener->SetRebuild(PR_TRUE);
return NS_OK;
} // ContentInserted
NS_IMETHODIMP
nsMenuItemX::SetupIcon()
{
return NS_ERROR_NOT_IMPLEMENTED;
}

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

@ -115,6 +115,10 @@ public:
NS_IMETHOD AddMenuItem(nsIMenuItem * aMenuItem);
NS_IMETHOD AddMenu(nsIMenu * aMenu);
NS_IMETHOD ChangeNativeEnabledStatusForMenuItem(nsIMenuItem* aMenuItem, PRBool aEnabled);
NS_IMETHOD GetMenuRefAndItemIndexForMenuItem(nsISupports* aMenuItem,
void** aMenuRef,
PRUint16* aMenuItemIndex);
NS_IMETHOD SetupIcon();
protected:
// Determines how many menus are visible among the siblings that are before me.

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

@ -959,10 +959,20 @@ nsresult nsMenuX::CountVisibleBefore(PRUint32* outVisibleBefore)
} // CountVisibleBefore
NS_IMETHODIMP nsMenuX::ChangeNativeEnabledStatusForMenuItem(nsIMenuItem* aMenuItem,
NS_IMETHODIMP
nsMenuX::ChangeNativeEnabledStatusForMenuItem(nsIMenuItem* aMenuItem,
PRBool aEnabled)
{
return NS_OK;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsMenuX::GetMenuRefAndItemIndexForMenuItem(nsISupports* aMenuItem,
void** aMenuRef,
PRUint16* aMenuItemIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
@ -1095,6 +1105,13 @@ NS_IMETHODIMP nsMenuX::ContentInserted(nsIDocument *aDocument, nsIContent *aChil
} // ContentInserted
NS_IMETHODIMP
nsMenuX::SetupIcon()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//
// Carbon event support
//