Compare Revisions

XPCOMUtils.jsm

Change Revisions

Revision 339701:

Revision 339701 by teoli on

Revision 378199:

Revision 378199 by P.A. on

Title:
XPCOMUtils.jsm
XPCOMUtils.jsm
Slug:
Mozilla/JavaScript_code_modules/XPCOMUtils.jsm
Mozilla/JavaScript_code_modules/XPCOMUtils.jsm
Tags:
NeedsTechnicalReview, XPConnect, "XPCOM:Language Bindings"
"XPConnect", "NeedsTechnicalReview", "XPCOM:Language Bindings"
Content:

Revision 339701
Revision 378199
n138    <h4 id="Create_the_NSGetFactory()_or_NSGetModule()&nbsp;entryn138    <h4 id="Create_the_NSGetFactory()_or_NSGetModule().C2.A0entry
>_point">>_point">
n253        <code>aObject<br></code>n253        <code>aObject</code>
tt534    <h6 id="Remarks">
535      Remarks
536    </h6>
537    <p>
538      When you implement an interface that inherits from another 
 >one, you should generally list all the base interfaces explicitly
 >, except for {{ Interface("nsISupports") }}. For example, if your
 > component implements {{ Interface("nsIStreamConverter") }}:
539    </p>
540    <pre class="brush: js">
541MyComponent.prototype = {
542  QueryInterface: XPCOMUtils.generateQI([
543    Components.interfaces.nsIRequestObserver,
544    Components.interfaces.nsIStreamListener,
545    Components.interfaces.nsIStreamConverter,
546  ]),
547 
548  // ...methods...
549}
550</pre>

Back to History