diff --git a/mozilla/xpcom/sample/xpconnect-sample.html b/mozilla/xpcom/sample/xpconnect-sample.html index 687537dd5f3..46796c4658b 100644 --- a/mozilla/xpcom/sample/xpconnect-sample.html +++ b/mozilla/xpcom/sample/xpconnect-sample.html @@ -39,7 +39,7 @@ The buttons on the form are connected to JavaScript event handlers which call the methods defined in C++. -
This is the interface declaration for the XPCOM object. It defines
two functions, their parameters, and one attribute. It also defines
the interface's id. The idl file is compiled by the xpidl compiler
@@ -53,7 +53,7 @@ of the interface used at runtime.
inherits from nsISample.h, the header dynamically created by the xpidl
compiler. The attribute Value has been expanded into a get and set
and the return values have been modified to NS_IMETHOD, a success status
-for the method. The macro NS_DECL_ISUPPORTS, defined in mozilla/xpcom/public/nsISupportsUtils.h
+for the method. The macro NS_DECL_ISUPPORTS, defined in mozilla/xpcom/public/nsISupportsUtils.h
defines the inherited methods from nsISupports.h.
NS_IMPL_ISUPPORTS(SampleImpl, nsISample::GetIID());
In the constructor, the macro NS_INIT_REFCNT is called which sets the
@@ -69,8 +69,7 @@ rather than having the implementations instatiate themselves in order to
increase portability of code. This factory inherits from nsFactory,
which is also an XPCOM object. To gain more knowledge of factories
see the generic
-factory document or the
-Modularization techniques document.
+factory document or the Modularization techniques document.
This file implements the nsISample interface, and associated factory glue, in JavaScript. @@ -111,7 +110,7 @@ page for more information. resource://res/samples/xpconnect-sample.html (i.e. what you're reading now). Pay attention to the console when clicking "write". Notice that the value -printed is calculated in C++ code defined in nsSample.cpp. +printed is calculated in C++ code defined in nsSample.cpp.