Renaming onaction to oncommand. Also adding getIID to nsIFocusableContent, since

I'll need to be using that later on.
This commit is contained in:
hyatt%netscape.com 1999-08-20 22:56:15 +00:00
parent 0c67c7e7d4
commit e0dcec9718
6 changed files with 7 additions and 5 deletions

View File

@ -44,7 +44,7 @@ static char* mEventNames[] = {
"mouseout", "mousemove", "keydown", "keyup", "keypress",
"focus", "blur", "load", "unload", "abort", "error",
"submit", "reset", "change", "select", "paint" ,"text",
"create", "destroy", "action"
"create", "destroy", "command"
};
nsDOMEvent::nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent) {

View File

@ -362,7 +362,7 @@ nsresult nsEventListenerManager::GetIdentifiersForType(const nsString& aType, ns
aIID = kIDOMMenuListenerIID;
*aFlags = NS_EVENT_BITS_MENU_DESTROY;
}
else if (aType == "action") {
else if (aType == "command") {
aIID = kIDOMMenuListenerIID;
*aFlags = NS_EVENT_BITS_MENU_ACTION;
}

View File

@ -44,7 +44,7 @@ static char* mEventNames[] = {
"mouseout", "mousemove", "keydown", "keyup", "keypress",
"focus", "blur", "load", "unload", "abort", "error",
"submit", "reset", "change", "select", "paint" ,"text",
"create", "destroy", "action"
"create", "destroy", "command"
};
nsDOMEvent::nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent) {

View File

@ -362,7 +362,7 @@ nsresult nsEventListenerManager::GetIdentifiersForType(const nsString& aType, ns
aIID = kIDOMMenuListenerIID;
*aFlags = NS_EVENT_BITS_MENU_DESTROY;
}
else if (aType == "action") {
else if (aType == "command") {
aIID = kIDOMMenuListenerIID;
*aFlags = NS_EVENT_BITS_MENU_ACTION;
}

View File

@ -31,6 +31,8 @@ class nsIPresContext;
**/
class nsIFocusableContent : public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IFOCUSABLECONTENT_IID; return iid; }
/**
* Give focus to the content
* @param aPresContext the PesContext

View File

@ -140,7 +140,7 @@ protected:
// Examines the key node and builds the accelerator.
void BuildAcceleratorText(nsString& aAccelString);
// Called to execute our "onaction" handler.
// Called to execute our command handler.
void Execute();
// Called as a hook just before the menu gets opened.