Bug 502799 add new nsISound method for the event sounds r=roc+neil, sr=roc

This commit is contained in:
Masayuki Nakano
2009-07-09 10:55:46 +09:00
parent a28c341f82
commit 8cf4b22364
15 changed files with 168 additions and 34 deletions

View File

@@ -1181,7 +1181,7 @@ nsMenuFrame::Execute(nsGUIEvent *aEvent)
nsCOMPtr<nsISound> sound(do_CreateInstance("@mozilla.org/sound;1"));
if (sound)
sound->PlaySystemSound(NS_SYSSOUND_MENU_EXECUTE);
sound->PlayEventSound(nsISound::EVENT_MENU_EXECUTE);
nsXULPopupManager* pm = nsXULPopupManager::GetInstance();
if (pm && mMenuParent)