创建_XPCOM_组件

  • 版本网址缩略名: 创建_XPCOM_组件
  • 版本标题: 创建 XPCOM 组件
  • 版本 id: 275031
  • 创建于:
  • 创建者: Klp99
  • 是否是当前版本?
  • 评论 /* [[Creating XPCOM Components:An Overview of XPCOM|XPCOM 简介]] */

修订内容

{{template.Next("Creating XPCOM Components:Preface")}}

前言

谁该读这本书
本教程的组织
按照例子来学习
本书的体例
致谢

XPCOM 简介

XPCOM 解决方案
Gecko
组件
接口
接口与封装
nsISupports 基接口
XPCOM 的ID
CID
契约 ID
类厂
XPIDL 与类型库
XPCOM 服务
XPCOM 类型
方法类型
引用计数
状态码
变量映射
通用 XPCOM 错误码

Using XPCOM Components

Component Examples
Cookie Manager
The WebBrowserFind Component
The WebLock Component
Component Use in Mozilla
Finding Mozilla Components
Using XPCOM Components in Your Cpp
XPConnect: Using XPCOM Components From Script

Component Internals

Creating Components in Cpp
XPCOM Initialization
XPCOM Registry Manifests
Registration Methods in XPCOM
Autoregistration
The Shutdown Process
Three Parts of a XPCOM Component Library
XPCOM Glue
The Glue Library
XPCOM String Classes

Creating the Component Code

What We'll Be Working On
Component Registration
The regxpcom Program
Registration Alternatives
Overview of the WebLock Module Source
Digging In: Required Includes and Constants
Identifiers in XPCOM
Coding for the Registration Process
The Registration Methods
Creating an Instance of Your Component
webLock1.cpp

Using XPCOM Utilities to Make Things Easier

XPCOM Macros
Generic XPCOM Module Macros
Common Implementation Macros
Declaration Macros
webLock2.cpp
String Classes in XPCOM
Using Strings
nsEmbedString and nsEmbedCString
Smart Pointers

Starting WebLock

Getting Called at Startup
Registering for Notifications
Getting Access to the Category Manager
Providing Access to WebLock
Creating the WebLock Programming Interface
Defining the WebLock Interface in XPIDL
The XPIDL Syntax
Scriptable Interfaces
Subclassing nsISupports
The Web Locking Interface
Implementing WebLock
Declaration Macros
Representing Return Values in XPCOM
XPIDL Code Generation
Getting the WebLock Service from a Client
Implementing the iWebLock Interface
The Directory Service
Modifying Paths with nsIFile
Manipulating Files with nsIFile
Using nsILocalFile for Reading Data
Processing the White List Data
iWebLock Method By Method
Lock and Unlock
AddSite
RemoveSite
SetSites
GetNext
GetSites
HasMoreElements

Finishing the Component

Using Frozen Interfaces
Copying Interfaces Into Your Build Environment
Implementing the nsIContentPolicy Interface
Receiving Notifications
Implementing the nsIContentPolicy
Uniform Resource Locators
Checking the White List
Creating nsIURI Objects

Building the WebLock UI

User Interface Package List
Client Code Overview
XUL
The XUL Document
The Locking UI
Site Adding UI
weblock.xul
Overlaying New User Interface Into Mozilla
webLockOverlay.xul
Other Resources
weblock.css
Image Resources

Packaging WebLock

Component Installation Overview
Archiving Resources
The WebLock Installation Script
The WebLock Trigger Script
Distributing Your Component

Appendix A - Setting up the Gecko SDK

Downloading and Setting the SDK
Building a Microsoft Visual Cpp Project
Creating a New Project
Adding the Gecko SDK to the Project Settings
A Makefile for Unix

Appendix B - Resources

WebLock Resources
Gecko Resources
XPCOM Resources
General Development Resources

{{template.Next("Creating XPCOM Components:Preface")}} {{template.CXCLicenseBlock()}}

修订版来源

<p>
</p><p>{{template.Next("Creating XPCOM Components:Preface")}}
</p>
<h3 name=".E5.89.8D.E8.A8.80"> <a href="cn/Creating_XPCOM_Components/Preface">前言</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Preface#.E8.B0.81.E8.AF.A5.E8.AF.BB.E8.BF.99.E6.9C.AC.E4.B9.A6">谁该读这本书</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Preface#.E6.9C.AC.E6.95.99.E7.A8.8B.E7.9A.84.E7.BB.84.E7.BB.87">本教程的组织</a> 
</dd><dd> <a href="cn/Creating_XPCOM_Components/Preface#.E6.8C.89.E7.85.A7.E4.BE.8B.E5.AD.90.E6.9D.A5.E5.AD.A6.E4.B9.A0">按照例子来学习</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Preface#.E6.9C.AC.E4.B9.A6.E7.9A.84.E4.BD.93.E4.BE.8B">本书的体例</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Preface#.E8.87.B4.E8.B0.A2">致谢</a>
</dd></dl>
<h3 name="XPCOM_.E7.AE.80.E4.BB.8B"> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM">XPCOM 简介</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_.E8.A7.A3.E5.86.B3.E6.96.B9.E6.A1.88">XPCOM 解决方案</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#Gecko">Gecko</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E7.BB.84.E4.BB.B6">组件</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E6.8E.A5.E5.8F.A3">接口</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E6.8E.A5.E5.8F.A3.E4.B8.8E.E5.B0.81.E8.A3.85">接口与封装</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#nsISupports_.E5.9F.BA.E6.8E.A5.E5.8F.A3"><code>nsISupports</code> 基接口</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_.E7.9A.84ID">XPCOM 的ID</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#CID">CID</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#_.E5.A5.91.E7.BA.A6_ID"> 契约 ID</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E7.B1.BB.E5.8E.82">类厂</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPIDL_.E4.B8.8E.E7.B1.BB.E5.9E.8B.E5.BA.93">XPIDL 与类型库</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_.E6.9C.8D.E5.8A.A1">XPCOM 服务</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_.E7.B1.BB.E5.9E.8B">XPCOM 类型</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E6.96.B9.E6.B3.95.E7.B1.BB.E5.9E.8B">方法类型</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E5.BC.95.E7.94.A8.E8.AE.A1.E6.95.B0">引用计数</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E7.8A.B6.E6.80.81.E7.A0.81">状态码</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E5.8F.98.E9.87.8F.E6.98.A0.E5.B0.84">变量映射</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/An_Overview_of_XPCOM#.E9.80.9A.E7.94.A8_XPCOM_.E9.94.99.E8.AF.AF.E7.A0.81">通用 XPCOM 错误码</a>
</dd></dl>
</dd></dl>
<h3 name="Using_XPCOM_Components"> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components">Using XPCOM Components</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#Component_Examples">Component Examples</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#Cookie_Manager">Cookie Manager</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#The_WebBrowserFind_Component">The <b>WebBrowserFind</b> Component</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#The_WebLock_Component">The <b>WebLock</b> Component</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#Component_Use_in_Mozilla">Component Use in Mozilla</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#Finding_Mozilla_Components">Finding Mozilla Components</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#Using_XPCOM_Components_in_Your_Cpp">Using XPCOM Components in Your Cpp</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Components#XPConnect:_Using_XPCOM_Components_From_Script">XPConnect: Using XPCOM Components From Script</a>
</dd></dl>
</dd></dl>
<h3 name="Component_Internals"> <a href="cn/Creating_XPCOM_Components/Component_Internals">Component Internals</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#Creating_Components_in_Cpp">Creating Components in Cpp</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#XPCOM_Initialization">XPCOM Initialization</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#XPCOM_Registry_Manifests">XPCOM Registry Manifests</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#Registration_Methods_in_XPCOM">Registration Methods in XPCOM</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#Autoregistration">Autoregistration</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#The_Shutdown_Process">The Shutdown Process</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#Three_Parts_of_a_XPCOM_Component_Library">Three Parts of a XPCOM Component Library</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#XPCOM_Glue">XPCOM Glue</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#The_Glue_Library">The Glue Library</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Component_Internals#XPCOM_String_Classes">XPCOM String Classes</a>
</dd></dl>
</dd></dl>
<h3 name="Creating_the_Component_Code"> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code">Creating the Component Code</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#What_We.27ll_Be_Working_On">What We'll Be Working On</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Component_Registration">Component Registration</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#The_regxpcom_Program">The <code>regxpcom</code> Program</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Registration_Alternatives">Registration Alternatives</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Overview_of_the_WebLock_Module_Source">Overview of the <b>WebLock</b> Module Source</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Digging_In:_Required_Includes_and_Constants">Digging In: Required Includes and Constants</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Identifiers_in_XPCOM">Identifiers in XPCOM</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Coding_for_the_Registration_Process">Coding for the Registration Process</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#The_Registration_Methods">The Registration Methods</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#Creating_an_Instance_of_Your_Component">Creating an Instance of Your Component</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Creating_the_Component_Code#webLock1.cpp"><code>webLock1.cpp</code></a>
</dd></dl>
<h3 name="Using_XPCOM_Utilities_to_Make_Things_Easier"> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier">Using XPCOM Utilities to Make Things Easier</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#XPCOM_Macros">XPCOM Macros</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Generic_XPCOM_Module_Macros">Generic XPCOM Module Macros</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Common_Implementation_Macros">Common Implementation Macros</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Declaration_Macros">Declaration Macros</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#webLock2.cpp"><code>webLock2.cpp</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#String_Classes_in_XPCOM">String Classes in XPCOM</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Using_Strings">Using Strings</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#nsEmbedString_and_nsEmbedCString"><code>nsEmbedString</code> and <code>nsEmbedCString</code></a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Smart_Pointers">Smart Pointers</a>
</dd></dl>
<h3 name="Starting_WebLock"> <a href="cn/Creating_XPCOM_Components/Starting_WebLock">Starting <b>WebLock</b></a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Getting_Called_at_Startup">Getting Called at Startup</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Registering_for_Notifications">Registering for Notifications</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Getting_Access_to_the_Category_Manager">Getting Access to the Category Manager</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Providing_Access_to_WebLock">Providing Access to <b>WebLock</b></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Creating_the_WebLock_Programming_Interface">Creating the <b>WebLock</b> Programming Interface</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Defining_the_WebLock_Interface_in_XPIDL">Defining the <b>WebLock</b> Interface in XPIDL</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#The_XPIDL_Syntax">The XPIDL Syntax</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Scriptable_Interfaces">Scriptable Interfaces</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Subclassing_nsISupports">Subclassing <code>nsISupports</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#The_Web_Locking_Interface">The Web Locking Interface</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Implementing_WebLock">Implementing <b>WebLock</b></a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Declaration_Macros">Declaration Macros</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Representing_Return_Values_in_XPCOM">Representing Return Values in XPCOM</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#XPIDL_Code_Generation">XPIDL Code Generation</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Getting_the_WebLock_Service_from_a_Client">Getting the <b>WebLock</b> Service from a Client</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Implementing_the_iWebLock_Interface">Implementing the <code>iWebLock</code> Interface</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#The_Directory_Service">The Directory Service</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Modifying_Paths_with_nsIFile">Modifying Paths with <code>nsIFile</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Manipulating_Files_with_nsIFile">Manipulating Files with <code>nsIFile</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Using_nsILocalFile_for_Reading_Data">Using <code>nsILocalFile</code> for Reading Data</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Processing_the_White_List_Data">Processing the White List Data</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#iWebLock_Method_By_Method"><code>iWebLock</code> Method By Method</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#Lock_and_Unlock"><code>Lock</code> and <code>Unlock</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#AddSite"><code>AddSite</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#RemoveSite"><code>RemoveSite</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#SetSites"><code>SetSites</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#GetNext"><code>GetNext</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#GetSites"><code>GetSites</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Starting_WebLock#HasMoreElements"><code>HasMoreElements</code></a>
</dd></dl>
</dd></dl>
<h3 name="Finishing_the_Component"> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component">Finishing the Component</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Using_Frozen_Interfaces">Using Frozen Interfaces</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Copying_Interfaces_Into_Your_Build_Environment">Copying Interfaces Into Your Build Environment</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Implementing_the_nsIContentPolicy_Interface">Implementing the <code>nsIContentPolicy</code> Interface</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Receiving_Notifications">Receiving Notifications</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Implementing_the_nsIContentPolicy">Implementing the <code>nsIContentPolicy</code></a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Uniform_Resource_Locators">Uniform Resource Locators</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Checking_the_White_List">Checking the White List</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Finishing_the_Component#Creating_nsIURI_Objects">Creating <code>nsIURI</code> Objects</a>
</dd></dl>
</dd></dl>
<h3 name="Building_the_WebLock_UI"> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI">Building the <b>WebLock</b> UI</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#User_Interface_Package_List">User Interface Package List</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#Client_Code_Overview">Client Code Overview</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#XUL">XUL</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#The_XUL_Document">The XUL Document</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#The_Locking_UI">The Locking UI</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#Site_Adding_UI">Site Adding UI</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#weblock.xul"><code>weblock.xul</code></a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#Overlaying_New_User_Interface_Into_Mozilla">Overlaying New User Interface Into Mozilla</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#webLockOverlay.xul"><code>webLockOverlay.xul</code></a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#Other_Resources">Other Resources</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#weblock.css"><code>weblock.css</code></a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Building_the_WebLock_UI#Image_Resources">Image Resources</a>
</dd></dl>
</dd></dl>
<h3 name="Packaging_WebLock"> <a href="cn/Creating_XPCOM_Components/Packaging_WebLock">Packaging WebLock</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Packaging_WebLock#Component_Installation_Overview">Component Installation Overview</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Packaging_WebLock#Archiving_Resources">Archiving Resources</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Packaging_WebLock#The_WebLock_Installation_Script">The <b>WebLock</b> Installation Script</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Packaging_WebLock#The_WebLock_Trigger_Script">The <b>WebLock</b> Trigger Script</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Packaging_WebLock#Distributing_Your_Component">Distributing Your Component</a>
</dd></dl>
<h3 name="Appendix_A_-_Setting_up_the_Gecko_SDK"> <a href="cn/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK">Appendix A - Setting up the Gecko SDK</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Downloading_and_Setting_the_SDK">Downloading and Setting the SDK</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Building_a_Microsoft_Visual_Cpp_Project">Building a Microsoft Visual Cpp Project</a>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Creating_a_New_Project">Creating a New Project</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Adding_the_Gecko_SDK_to_the_Project_Settings">Adding the Gecko SDK to the Project Settings</a>
</dd></dl>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#A_Makefile_for_Unix">A Makefile for Unix</a>
</dd></dl>
<h3 name="Appendix_B_-_Resources"> <a href="cn/Creating_XPCOM_Components/Resources">Appendix B - Resources</a> </h3>
<dl><dd> <a href="cn/Creating_XPCOM_Components/Resources#WebLock_Resources">WebLock Resources</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Resources#Gecko_Resources">Gecko Resources</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Resources#XPCOM_Resources">XPCOM Resources</a>
</dd><dd> <a href="cn/Creating_XPCOM_Components/Resources#General_Development_Resources">General Development Resources</a>
</dd></dl>
<p>{{template.Next("Creating XPCOM Components:Preface")}}
{{template.CXCLicenseBlock()}}
</p>
恢复到这个版本