diff --git a/widget/src/photon/nsMenuItem.cpp b/widget/src/photon/nsMenuItem.cpp index b06694a55f40..6c472903e6ae 100644 --- a/widget/src/photon/nsMenuItem.cpp +++ b/widget/src/photon/nsMenuItem.cpp @@ -564,6 +564,39 @@ NS_METHOD nsMenuItem::SetWebShell(nsIWebShell * aWebShell) return NS_OK; } +//---------------------------------------------------------------------- +NS_IMETHODIMP nsMenuItem::SetShortcutChar(const nsString &aText) +{ + PR_LOG(PhWidLog, PR_LOG_ERROR,("nsMenuItem::SetShortcut - Not Implemented\n")); +// mKeyEquivalent = aText; + return NS_OK; +} + +//---------------------------------------------------------------------- +NS_IMETHODIMP nsMenuItem::GetShortcutChar(nsString &aText) +{ + PR_LOG(PhWidLog, PR_LOG_ERROR,("nsMenuItem::GetShortcut - Not Implemented\n")); +// aText = mKeyEquivalent; + return NS_OK; +} + +//---------------------------------------------------------------------- +NS_IMETHODIMP nsMenuItem::SetModifiers(PRUint8 aModifiers) +{ + PR_LOG(PhWidLog, PR_LOG_ERROR,("nsMenuItem::SetModifiers - Not Implemented\n")); + +// mModifiers = aModifiers; + return NS_OK; +} + +//---------------------------------------------------------------------- +NS_IMETHODIMP nsMenuItem::GetModifiers(PRUint8 * aModifiers) +{ + PR_LOG(PhWidLog, PR_LOG_ERROR,("nsMenuItem::GetModifiers - Not Implemented\n")); + +// *aModifiers = mModifiers; + return NS_OK; +} diff --git a/widget/src/photon/nsMenuItem.h b/widget/src/photon/nsMenuItem.h index 7a660ee6d95c..a54265ebe843 100644 --- a/widget/src/photon/nsMenuItem.h +++ b/widget/src/photon/nsMenuItem.h @@ -65,6 +65,11 @@ public: NS_IMETHOD RemoveMenuListener(nsIMenuListener * aMenuListener); NS_IMETHOD IsSeparator(PRBool & aIsSep); + NS_IMETHOD SetShortcutChar(const nsString &aText); + NS_IMETHOD GetShortcutChar(nsString &aText); + NS_IMETHOD SetModifiers(PRUint8 aModifiers); + NS_IMETHOD GetModifiers(PRUint8 * aModifiers); + // nsIMenuListener interface nsEventStatus MenuItemSelected(const nsMenuEvent & aMenuEvent); nsEventStatus MenuSelected(const nsMenuEvent & aMenuEvent);