Bug 604451 - Max length ding support in Win32 widget. r=robarnold, sr=roc
authorBrian R. Bondy <netzen@gmail.com>
Thu, 08 Sep 2011 11:16:33 -0400
changeset 76715 4a5eb5183ed9aca942b1de86b59c797fd067f13f
parent 76714 8948238c6e6adf1d076cbd315ea5c6f736de298b
child 76716 9401940db9d2f05c581e191ac34234e4d2d626c9
push id1794
push userbbondy@mozilla.com
push dateThu, 08 Sep 2011 15:18:05 +0000
treeherdermozilla-inbound@4a5eb5183ed9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrobarnold, roc
bugs604451
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 604451 - Max length ding support in Win32 widget. r=robarnold, sr=roc
widget/public/nsISound.idl
widget/src/windows/nsSound.cpp
--- a/widget/public/nsISound.idl
+++ b/widget/public/nsISound.idl
@@ -36,17 +36,17 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 #include "nsISupports.idl"
 
 interface nsIURL;
 
-[scriptable, uuid(86B75B05-DB60-4c3e-97A7-82B363A41A01)]
+[scriptable, uuid(C3C28D92-A17F-43DF-976D-4EEAE6F995FC)]
 interface nsISound : nsISupports
 {
   void play(in nsIURL aURL);
   /**
    * for playing system sounds
    *
    * NS_SYSSOUND_* params are obsolete. The new events will not be supported by
    * this method.  You should use playEventSound method instaed.
@@ -70,16 +70,17 @@ interface nsISound : nsISupports
    */
   const unsigned long EVENT_NEW_MAIL_RECEIVED           = 0;
   const unsigned long EVENT_ALERT_DIALOG_OPEN           = 1;
   const unsigned long EVENT_CONFIRM_DIALOG_OPEN         = 2;
   const unsigned long EVENT_PROMPT_DIALOG_OPEN          = 3;
   const unsigned long EVENT_SELECT_DIALOG_OPEN          = 4;
   const unsigned long EVENT_MENU_EXECUTE                = 5;
   const unsigned long EVENT_MENU_POPUP                  = 6;
+  const unsigned long EVENT_EDITOR_MAX_LEN              = 7;
   void playEventSound(in unsigned long aEventId);
 };
 
 %{C++
 
 /**
  * NS_SYSSOUND_* can be used for playSystemSound but they are obsolete.
  * Use nsISound::playEventSound instead.
--- a/widget/src/windows/nsSound.cpp
+++ b/widget/src/windows/nsSound.cpp
@@ -308,16 +308,19 @@ NS_IMETHODIMP nsSound::PlayEventSound(PR
       sound = L"SystemQuestion";
       break;
     case EVENT_MENU_EXECUTE:
       sound = L"MenuCommand";
       break;
     case EVENT_MENU_POPUP:
       sound = L"MenuPopup";
       break;
+    case EVENT_EDITOR_MAX_LEN:
+      sound = L".Default";
+      break;
     default:
       // Win32 plays no sounds at NS_SYSSOUND_PROMPT_DIALOG and
       // NS_SYSSOUND_SELECT_DIALOG.
       return NS_OK;
   }
   NS_ASSERTION(sound, "sound is null");
 
   nsCOMPtr<nsIRunnable> player = new nsSoundPlayer(this, sound);