aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozRegisterComponents.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-01 22:04:24 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-01 22:04:24 +0800
commit165179754e9c3a75b1c5405dd14dc6ea6939dca3 (patch)
treee76d6ba2a23d824e2c42458f68b705c7b24a157c /embed/mozilla/MozRegisterComponents.cpp
parentacb714c91f67a95851bada8d1c272e52b579f3ab (diff)
downloadgsoc2013-epiphany-165179754e9c3a75b1c5405dd14dc6ea6939dca3.tar.gz
gsoc2013-epiphany-165179754e9c3a75b1c5405dd14dc6ea6939dca3.tar.zst
gsoc2013-epiphany-165179754e9c3a75b1c5405dd14dc6ea6939dca3.zip
Simplify the class info implementation for EphySidebar.
2005-05-01 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphySidebar.cpp: * embed/mozilla/EphySidebar.h: * embed/mozilla/MozRegisterComponents.cpp: Simplify the class info implementation for EphySidebar.
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r--embed/mozilla/MozRegisterComponents.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp
index fcc8ee93e..4a8f8243f 100644
--- a/embed/mozilla/MozRegisterComponents.cpp
+++ b/embed/mozilla/MozRegisterComponents.cpp
@@ -70,7 +70,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSDialogs)
NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSKeyPairDialogs)
NS_GENERIC_FACTORY_CONSTRUCTOR(GtkNSSSecurityWarningDialogs)
#endif
-
+
+/* class information */
+NS_DECL_CLASSINFO(EphySidebar)
+
static NS_METHOD
RegisterContentPolicy(nsIComponentManager *aCompMgr, nsIFile *aPath,
const char *registryLocation, const char *componentType,
@@ -186,7 +189,13 @@ static const nsModuleComponentInfo sAppComps[] = {
EPHY_SIDEBAR_CID,
NS_SIDEBAR_CONTRACTID,
EphySidebarConstructor,
- RegisterSidebar
+ RegisterSidebar,
+ nsnull /* no unregister func */,
+ nsnull /* no factory destructor */,
+ NS_CI_INTERFACE_GETTER_NAME(EphySidebar),
+ nsnull /* no language helper */,
+ &NS_CLASSINFO_NAME(EphySidebar),
+ nsIClassInfo::DOM_OBJECT
},
};