Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / browser / photon / src / EmbedComponents.cpp.in
blob11b5e772736ac0d2deab84c5d4e1d5a592cbb830
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
16 * The Original Code is mozilla.org code.
18 * The Initial Developer of the Original Code is
19 * Netscape Communications Corporation.
20 * Portions created by the Initial Developer are Copyright (C) 2001
21 * the Initial Developer. All Rights Reserved.
23 * Contributor(s):
24 * Christopher Seawood <cls@seawood.org>
25 * Chris Waterson <waterson@netscape.com>
27 * Alternatively, the contents of this file may be used under the terms of
28 * either the GNU General Public License Version 2 or later (the "GPL"), or
29 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30 * in which case the provisions of the GPL or the LGPL are applicable instead
31 * of those above. If you wish to allow use of your version of this file only
32 * under the terms of either the GPL or the LGPL, and not to allow others to
33 * use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL or the LGPL.
39 * ***** END LICENSE BLOCK ***** */
41 #line 26 "nsStaticComponents.cpp.in"
42 #define XPCOM_TRANSLATE_NSGM_ENTRY_POINT 1
44 #include "nsIGenericFactory.h"
45 #include "nsStaticComponent.h"
47 /**
48 * Construct a unique NSGetModule entry point for a generic module.
50 #define NSGETMODULE(_name) _name##_NSGetmodule
52 /**
53 * Declare an NSGetModule() routine for a generic module.
55 #define DECL_NSGETMODULE(_name) \
56 extern nsModuleInfo NSMODULEINFO(_name); \
57 extern "C" NS_EXPORT nsresult \
58 NSGETMODULE(_name) (nsIComponentManager* aCompMgr, \
59 nsIFile* aLocation, \
60 nsIModule** aResult) \
61 { \
62 return NS_NewGenericModule2(&NSMODULEINFO(_name), aResult);\
65 // NSGetModule entry points
66 %DECL_NSGETMODULES%
67 #line 52 "nsStaticComponents.cpp.in"
69 /**
70 * The nsStaticModuleInfo
72 static nsStaticModuleInfo gStaticModuleInfo[] = {
73 #define MODULE(_name) { (#_name), NSGETMODULE(_name) }
74 %MODULE_LIST%
75 #line 60 "nsStaticComponents.cpp.in"
78 /**
79 * Our NSGetStaticModuleInfoFunc
81 nsresult
82 ph_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count)
84 *info = gStaticModuleInfo;
85 *count = sizeof(gStaticModuleInfo) / sizeof(gStaticModuleInfo[0]);
86 return NS_OK;