зеркало из https://github.com/mozilla/gecko-dev.git
not part of build, testcase. to use selections in outliner, the view needs to support nsIClassInfo. Based on code by peterv in bug 80926
This commit is contained in:
Родитель
e4ac8d52ba
Коммит
facaf916c4
|
@ -50,6 +50,21 @@ var view = ({
|
|||
return "XXX in "+ col+" and "+i;
|
||||
}
|
||||
},
|
||||
// nsIClassInfo
|
||||
flags : Components.interfaces.nsIClassInfo.DOM_OBJECT,
|
||||
classDescription : "OutlinerView",
|
||||
getInterfaces: function() {},
|
||||
getHelperForLanguage: function(aLang) {},
|
||||
|
||||
QueryInterface: function(iid) {
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
if (!iid.equals(Components.interfaces.nsISupports) &&
|
||||
!iid.equals(Components.interfaces.nsIOutlinerView) &&
|
||||
!iid.equals(Components.interfaces.nsIClassInfo))
|
||||
throw Components.results.NS_ERROR_NO_INTERFACE;
|
||||
|
||||
return this;
|
||||
},
|
||||
// privates
|
||||
names : null,
|
||||
purps : null,
|
||||
|
|
Загрузка…
Ссылка в новой задаче