Skip to content
Snippets Groups Projects
Commit facaf916 authored by axel%pike.org's avatar axel%pike.org
Browse files

not part of build, testcase. to use selections in outliner, the view needs to...

not part of build, testcase. to use selections in outliner, the view needs to support nsIClassInfo. Based on code by peterv in bug 80926
parent e4ac8d52
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment