Closed Bug 502799 Opened 16 years ago Closed 16 years ago

add new nsISound method for the event sounds

Categories

(Core :: Widget, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

Attached patch Patch v1.0Splinter Review
I added to some event sounds to nsISound::playSystemSound but the method only has a *string* param. And they are only defined in C++ (NS_SYSSOUND_*). So, javascript caller cannot use the predefined consts. I think the param should be an unsigned long. It has some advantages, we can compare quickly, we can use switch-case statement and Javascript callers can use nsISound.*. I'm going to add some sound events for improving the shell integration. It will increase the string param checking counts. So, it can make damage for the performance of playSystemSound. Therefore, I think I should add a new API now.
Attachment #387157 - Flags: superreview?(roc)
Attachment #387157 - Flags: review?(roc)
Attachment #387157 - Flags: superreview?(roc)
Attachment #387157 - Flags: superreview+
Attachment #387157 - Flags: review?(roc)
Attachment #387157 - Flags: review+
Comment on attachment 387157 [details] [diff] [review] Patch v1.0 Thank you, roc. And I'd like Neil to review the nsPIPromptService related part.
Attachment #387157 - Flags: review?(neil)
I wrote a document of nsISound. I'll update it after I land the patch. https://developer.mozilla.org/en/nsISound After that, please fix the English text by the native speakers ;-)
Attachment #387157 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
(In reply to comment #2) > After that, please fix the English text by the native speakers ;-) I'm not a native speaker and the text looks fine, but I wonder if you meant to name EVENT_NEW_MAIL_RECIEVED like this. Not a bit deal, though...
Was the naming of EVENT_AELRT_DIALOG_OPEN on purpose, or is this also a typo?
(In reply to comment #4) > (In reply to comment #2) > > After that, please fix the English text by the native speakers ;-) > > I'm not a native speaker and the text looks fine, but I wonder if you meant to > name EVENT_NEW_MAIL_RECIEVED like this. Not a bit deal, though... (In reply to comment #5) > Was the naming of EVENT_AELRT_DIALOG_OPEN on purpose, or is this also a typo? Oh, thank you for pointing out the misspellings in the const names.
probably, this fixes them... (checking on tryserver now.)
Attachment #387775 - Flags: superreview?(roc)
Attachment #387775 - Flags: review?(roc)
Comment on attachment 387775 [details] [diff] [review] Patch for misspelling ok, all green on tryserver.
Attachment #387775 - Flags: superreview?(roc)
Attachment #387775 - Flags: superreview+
Attachment #387775 - Flags: review?(roc)
Attachment #387775 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: