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
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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,