00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "nsISupports.idl"
00030
00031 interface nsIDOMWindow;
00032
00049 interface sbICallWithWindowCallback;
00050
00051 [scriptable, uuid(93cf33df-770f-49ec-afb7-20db242dd366)]
00052 interface sbIWindowWatcher : nsISupports
00053 {
00059 readonly attribute boolean isShuttingDown;
00060
00061
00073
00074
00075 void callWithWindow(in AString aWindowType,
00076 in sbICallWithWindowCallback aCallback,
00077 [optional] in boolean aWait);
00078
00079
00092 nsIDOMWindow getWindow(in AString aWindowType);
00093
00094
00106 void waitForWindow(in AString aWindowType);
00107 };
00108
00109
00117 [scriptable, function, uuid(4052eb5e-fe52-4e31-abca-1263c2cfd009)]
00118 interface sbICallWithWindowCallback : nsISupports
00119 {
00126 void handleWindowCallback(in nsIDOMWindow aWindow);
00127 };
00128
00129
00130
00131
00132
00133
00134 %{C++
00135 #define SB_WINDOWWATCHER_CONTRACTID \
00136 "@songbirdnest.com/Songbird/window-watcher;1"
00137 %}C++
00138