зеркало из https://github.com/mozilla/gecko-dev.git
Cocoa widget bustage fix following bug 46177
This commit is contained in:
Родитель
71cd5bcecc
Коммит
d264b05e10
|
@ -87,6 +87,7 @@ public:
|
||||||
NS_IMETHOD DispatchDOMEvent(const nsString &eventName, PRBool *preventDefaultCalled);
|
NS_IMETHOD DispatchDOMEvent(const nsString &eventName, PRBool *preventDefaultCalled);
|
||||||
NS_IMETHOD SetModifiers(PRUint8 aModifiers);
|
NS_IMETHOD SetModifiers(PRUint8 aModifiers);
|
||||||
NS_IMETHOD GetModifiers(PRUint8 * aModifiers);
|
NS_IMETHOD GetModifiers(PRUint8 * aModifiers);
|
||||||
|
NS_IMETHOD SetupIcon();
|
||||||
|
|
||||||
// nsIMenuListener interface
|
// nsIMenuListener interface
|
||||||
nsEventStatus MenuItemSelected(const nsMenuEvent & aMenuEvent);
|
nsEventStatus MenuItemSelected(const nsMenuEvent & aMenuEvent);
|
||||||
|
|
|
@ -490,3 +490,10 @@ nsMenuItemX::ContentInserted(nsIDocument *aDocument, nsIContent *aChild, PRInt32
|
||||||
listener->SetRebuild(PR_TRUE);
|
listener->SetRebuild(PR_TRUE);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
} // ContentInserted
|
} // ContentInserted
|
||||||
|
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMenuItemX::SetupIcon()
|
||||||
|
{
|
||||||
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
|
@ -115,6 +115,10 @@ public:
|
||||||
NS_IMETHOD AddMenuItem(nsIMenuItem * aMenuItem);
|
NS_IMETHOD AddMenuItem(nsIMenuItem * aMenuItem);
|
||||||
NS_IMETHOD AddMenu(nsIMenu * aMenu);
|
NS_IMETHOD AddMenu(nsIMenu * aMenu);
|
||||||
NS_IMETHOD ChangeNativeEnabledStatusForMenuItem(nsIMenuItem* aMenuItem, PRBool aEnabled);
|
NS_IMETHOD ChangeNativeEnabledStatusForMenuItem(nsIMenuItem* aMenuItem, PRBool aEnabled);
|
||||||
|
NS_IMETHOD GetMenuRefAndItemIndexForMenuItem(nsISupports* aMenuItem,
|
||||||
|
void** aMenuRef,
|
||||||
|
PRUint16* aMenuItemIndex);
|
||||||
|
NS_IMETHOD SetupIcon();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Determines how many menus are visible among the siblings that are before me.
|
// Determines how many menus are visible among the siblings that are before me.
|
||||||
|
|
|
@ -959,10 +959,20 @@ nsresult nsMenuX::CountVisibleBefore(PRUint32* outVisibleBefore)
|
||||||
} // CountVisibleBefore
|
} // CountVisibleBefore
|
||||||
|
|
||||||
|
|
||||||
NS_IMETHODIMP nsMenuX::ChangeNativeEnabledStatusForMenuItem(nsIMenuItem* aMenuItem,
|
NS_IMETHODIMP
|
||||||
PRBool aEnabled)
|
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
|
} // ContentInserted
|
||||||
|
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMenuX::SetupIcon()
|
||||||
|
{
|
||||||
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Carbon event support
|
// Carbon event support
|
||||||
//
|
//
|
||||||
|
|
Загрузка…
Ссылка в новой задаче