зеркало из https://github.com/mozilla/pjs.git
Add registering of nsIDocumentStateListeners.
This commit is contained in:
Родитель
b974dca11f
Коммит
2e89403a0e
|
@ -20,6 +20,7 @@
|
||||||
#include "domstubs.idl"
|
#include "domstubs.idl"
|
||||||
#include "nsIFileSpec.idl"
|
#include "nsIFileSpec.idl"
|
||||||
#include "nsISupportsArray.idl"
|
#include "nsISupportsArray.idl"
|
||||||
|
#include "nsIDocumentStateListener.idl"
|
||||||
|
|
||||||
%{C++
|
%{C++
|
||||||
|
|
||||||
|
@ -58,6 +59,19 @@ interface nsIEditorShell : nsISupports
|
||||||
void SetWebShellWindow(in nsIDOMWindow win);
|
void SetWebShellWindow(in nsIDOMWindow win);
|
||||||
void LoadUrl(in wstring url);
|
void LoadUrl(in wstring url);
|
||||||
|
|
||||||
|
/* Register a doc state listener. This gets added to a list of listeners
|
||||||
|
which are registered with the editor when that gets instantiated.
|
||||||
|
If the LoadUrl fails, this listener will not receive any notifcations.
|
||||||
|
If you call this after the editor has been instantiated, it calls through
|
||||||
|
to editor::AddDocumentStateListener().
|
||||||
|
*/
|
||||||
|
void RegisterDocumentStateListener(in nsIDocumentStateListener docListener);
|
||||||
|
/* Unregister a listener.
|
||||||
|
If you call this after the editor has been instantiated, it calls through
|
||||||
|
to editor::RemoveDocumentStateListener().
|
||||||
|
*/
|
||||||
|
void UnregisterDocumentStateListener(in nsIDocumentStateListener docListener);
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
/* Commands */
|
/* Commands */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче