mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Renaming onaction to oncommand. Also adding getIID to nsIFocusableContent, since
I'll need to be using that later on.
This commit is contained in:
parent
0c67c7e7d4
commit
e0dcec9718
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user