Adding SetDOMNode and GetDOMNOde to Photon UI

This commit is contained in:
Jerry.Kirk%Nexwarecorp.com 1999-08-10 00:57:57 +00:00
parent 3ccf557440
commit 8cb978981d
2 changed files with 16 additions and 1 deletions

View File

@ -539,7 +539,19 @@ NS_METHOD nsMenuItem::DoCommand()
rv = contentNode->HandleDOMEvent(*presContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
return rv;
}
//-------------------------------------------------------------------------
NS_METHOD nsMenuItem::SetDOMNode(nsIDOMNode * aDOMNode)
{
PR_LOG(PhWidLog, PR_LOG_ERROR,("nsMenuItem::SetDOMNode\n"));
return NS_OK;
}
//-------------------------------------------------------------------------
NS_METHOD nsMenuItem::GetDOMNode(nsIDOMNode ** aDOMNode)
{
PR_LOG(PhWidLog, PR_LOG_ERROR,("nsMenuItem::GetDOMNode\n"));
return NS_OK;
}
//-------------------------------------------------------------------------
NS_METHOD nsMenuItem::SetDOMElement(nsIDOMElement * aDOMElement)
{

View File

@ -23,6 +23,7 @@
#include "nsString.h"
#include "nsIMenuListener.h"
class nsIDOMNode;
class nsIMenu;
class nsIPopUpMenu;
class nsIWidget;
@ -64,6 +65,8 @@ public:
NS_IMETHOD AddMenuListener(nsIMenuListener * aMenuListener);
NS_IMETHOD RemoveMenuListener(nsIMenuListener * aMenuListener);
NS_IMETHOD IsSeparator(PRBool & aIsSep);
NS_IMETHOD SetDOMNode(nsIDOMNode *aDOMNode);
NS_IMETHOD GetDOMNode(nsIDOMNode ** aDOMNode);
NS_IMETHOD SetShortcutChar(const nsString &aText);
NS_IMETHOD GetShortcutChar(nsString &aText);