|
Revision 327:b0d7eb5bd76c, 0.9 kB
(checked in by John Reimer <terminal.node@gmail.com>, 3 years ago)
|
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
|
| Line | |
|---|
| 1 |
module dwt.internal.mozilla.nsIObserverService; |
|---|
| 2 |
|
|---|
| 3 |
import dwt.internal.mozilla.Common; |
|---|
| 4 |
import dwt.internal.mozilla.nsID; |
|---|
| 5 |
import dwt.internal.mozilla.nsISupports; |
|---|
| 6 |
import dwt.internal.mozilla.nsIObserver; |
|---|
| 7 |
import dwt.internal.mozilla.nsISimpleEnumerator; |
|---|
| 8 |
|
|---|
| 9 |
const char[] NS_IOBSERVERSERVICE_IID_STR = "d07f5192-e3d1-11d2-8acd-00105a1b8860"; |
|---|
| 10 |
|
|---|
| 11 |
const nsIID NS_IOBSERVERSERVICE_IID= |
|---|
| 12 |
{0xd07f5192, 0xe3d1, 0x11d2, |
|---|
| 13 |
[ 0x8a, 0xcd, 0x00, 0x10, 0x5a, 0x1b, 0x88, 0x60 ]}; |
|---|
| 14 |
|
|---|
| 15 |
interface nsIObserverService : nsISupports { |
|---|
| 16 |
|
|---|
| 17 |
static const char[] IID_STR = NS_IOBSERVERSERVICE_IID_STR; |
|---|
| 18 |
static const nsIID IID = NS_IOBSERVERSERVICE_IID; |
|---|
| 19 |
|
|---|
| 20 |
extern(System): |
|---|
| 21 |
nsresult AddObserver(nsIObserver anObserver, char *aTopic, PRBool ownsWeak); |
|---|
| 22 |
nsresult RemoveObserver(nsIObserver anObserver, char *aTopic); |
|---|
| 23 |
nsresult NotifyObservers(nsISupports aSubject, char *aTopic, PRUnichar *someData); |
|---|
| 24 |
nsresult EnumerateObservers(char *aTopic, nsISimpleEnumerator *_retval); |
|---|
| 25 |
|
|---|
| 26 |
} |
|---|