Граф коммитов

160 Коммитов

Автор SHA1 Сообщение Дата
Benjamin Smedberg 1feb3e5e7d Implement compatibility wrapper so that binary components can be compatible with both Firefox 3.6 and Firefox 4, as a result of registration changes from bug 568691.
--HG--
rename : xpcom/components/GenericFactory.cpp => xpcom/glue/GenericFactory.cpp
rename : xpcom/components/GenericFactory.h => xpcom/glue/GenericFactory.h
2010-06-24 16:36:27 -04:00
Benjamin Smedberg 0f844b3cb5 Address review from bug 568691 comments 31 and 34 2010-06-23 13:43:02 -04:00
Benjamin Smedberg a73308ef4b Bug 568691 - Add CID data back to classinfo because it's required for fastload to work correctly. 2010-06-22 12:59:57 -04:00
Benjamin Smedberg 5d8c2e8024 Bug 568691 - Fix XPCOMUtils.jsm to generate NSGetFactory, and fix nsSample.js to use XPCOMUtils 2010-06-21 14:29:32 -04:00
Benjamin Smedberg 233311ac72 Bug 568691 - build components.manifest instead of components.list, and switch the sample JS component to use standard EXTRA_COMPONENTS machinery. 2010-06-21 13:59:58 -04:00
Benjamin Smedberg edbd474f05 Bug 568691 part C - Register all components based on reading .manifest files from the components directories. Binary components auto-register using "binary-component name.dll". JS components register using "component CID file.js" "contract @mozilla.org/contract;1 CID" and "category categoryname keyname value".
This patch has some bugs, specifically we stop looking for .manifest files in chrome/. I will fix that in a followup. It also probably breaks non-libxul builds because of ordering issues.

Another followup will actually fix our in-tree JS components and add build machinery for creating a proper components.manifest file.
2010-06-11 16:13:26 -04:00
Benjamin Smedberg c611ebcd81 Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files 2010-06-10 14:11:11 -04:00
Michael Kohler 6c0f59f4a6 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Mitchell Field 41c8798093 Bug 514665 - fix stupid module name differences on windows. r=ted 2009-09-25 18:41:16 +02:00
Phil Ringnalda 6fce97e58d Bug 495228 - Remove checks for mac MOZ_WIDGET_TOOLKIT, r=ted 2009-09-18 19:59:53 -07:00
Dão Gottwald 7724726ab5 Backed out changeset 2df29cb1ed93 2009-02-07 15:07:36 +01:00
Tyler Downer ca2d87685b Bug 471930 - Strip User Docs from XPCOM. r=bsmedberg 2009-02-07 13:54:47 +01:00
Phil Ringnalda fcb2f41673 Bug 243621 - (Back out) Standardize QueryInterface without throw, r=timeless, sr=sicking 2009-01-15 20:02:21 -08:00
Daniel Holbert 5492039225 Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe 2008-10-01 23:49:45 -07:00
hg@mozilla.com 05e5d33a57 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00
timeless%mozdev.org 536dae940c Bug 336989 Useless null check of aOwner in nsPluginHostImpl::InstantiateEmbeddedPlugin
Also fixing a spelling error which happens to appear in pluginhostimpl and xpconnect sample
r=jst sr=jst
2006-06-03 23:23:45 +00:00
cbiesinger%web.de 51a89a8b1e bug 335180 Remove win32.order, mozilla-bin.order, --enable-reorder, and
associated code. These options do not really work anymore.

r=bsmedberg
2006-05-06 17:53:51 +00:00
benjamin%smedbergs.us 08887664c9 Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h
2006-05-03 16:11:14 +00:00
bryner%brianryner.com 4cd1e2b280 Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin. 2006-03-15 04:59:42 +00:00
timeless%mozdev.org eb9350f619 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan
2005-11-25 19:48:04 +00:00
bsmedberg%covad.net a7253270ad Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree. 2005-11-08 18:17:49 +00:00
gerv%gerv.net 35149ea17d Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-09-13 18:40:56 +00:00
bsmedberg%covad.net c212b869b8 Bug 298047 - Drop the dependencies of the XPCOM standalone glue on NSPR, try #2 - Re-landing this in such a way that we're not going to break non-xulrunner builds on mac with xcode < 1.5 until we have the tinderboxen and official build instructions upgraded properly (see the XXXNote in xpcom/sample/Makefile.in, and the continued ifdef MOZ_ENABLE_LIBXUL hack in config/autoconf.mk.in around MOZ_FIX_LINK_FLAGS). r=darin a=asa 2005-07-01 12:24:07 +00:00
bsmedberg%covad.net 2f43051925 Revert bug 298047. 2005-06-30 02:06:16 +00:00
bsmedberg%covad.net 9b68fa2754 Backout bug 298047 per Chase as it breaks some downrev mac systems unexpectedly. 2005-06-30 02:04:23 +00:00
bsmedberg%covad.net d7b586a56b Bug 298047 - Drop the dependencies of the XPCOM standalone glue on NSPR (this patch covers everything except dynamic linking) r=darin a=asa (The file xpcom/sample/nsTestSample.cpp moved to xpcom/sample/program/nsTestSample.cpp) 2005-06-29 18:53:30 +00:00
darin%meer.net 1b8a0df018 landing patch for bug 262218 "libxpcom.so should only export frozen symbols" r=bsmedberg sr=bryner 2005-06-29 18:32:50 +00:00
gerv%gerv.net 9c7b5bdb97 Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-06-29 18:32:49 +00:00
dougt%netscape.com b68bf96776 Final fix. This is the way this patch should have landed. including nsXPIDLCString when XPCOM_GLUE is defined is not a good idea 2005-06-29 18:32:48 +00:00
dougt%netscape.com 0edcf0a0a3 landing 172512. nsEmbedString for component developers and embeders. r=alec, sr=jag/darin, a=asa@mozilla.org 2005-06-29 18:32:47 +00:00
dougt%netscape.com 8fbc00d3ef Damn the nmake build system and the mac. 2005-06-29 18:32:46 +00:00
dougt%netscape.com 8ebc1aac5f More XPCOM Glue changes and fixes. r=waterson, sr=rpotts, 154262. 2005-06-29 18:32:45 +00:00
dougt%netscape.com a0af6ae482 adding #include for stdio for printf 2005-06-29 18:32:44 +00:00
dougt%netscape.com bded73c6d5 130405. Makes the xpcom glue library usable. Updates XPCOM Samples. Adds requires lines to a few implict string/category consumers sr=alecf, sr=brendan@mozilla.org a=asa@mozilla.org 2005-06-29 18:32:43 +00:00
dougt%netscape.com 77baa80dad 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com
2005-06-29 18:32:42 +00:00
dougt%netscape.com 9e34255b5b nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org
2005-06-29 18:32:41 +00:00
dougt%netscape.com a0b5e27034 API Freeze for nsIServiceManager r=shaver@mozilla.org, sr=rpotts@netscape.com bug 99147 2005-06-29 18:32:40 +00:00
gerv%gerv.net 386efdf0f1 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2005-06-29 18:32:39 +00:00
shaver%mozilla.org c346d1b256 67699: all your nsIClassInfo is belong to us
- teach nsGenericFactory about nsIClassInfo, and nsIClassInfo.idl to the
  builds
- add a heaping serving of macro love for classes that want to support it
- convert many modules to use nsGenericModule the new way
- handful of warning and modeline fixes
- nsSample and some XPConnect test classes now have nsIClassInfo support for
  testing
2005-06-29 18:32:38 +00:00
rayw%netscape.com f73c310032 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2005-06-29 18:32:37 +00:00
mang%subcarrier.org 0fc680b42a progid no longer defined in nsISample.idl
Part of previous fix to bug 10904
2005-06-29 18:32:36 +00:00
dp%netscape.com 8148c06a9d Sample XPCOM Application 2005-06-29 18:32:35 +00:00
bsmedberg%covad.net 7e03c0b224 Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin 2005-04-06 03:35:24 +00:00
darin%meer.net 52ac61d678 landing patch for bug 262218 "libxpcom.so should only export frozen symbols" r=bsmedberg sr=bryner 2004-10-25 19:34:45 +00:00
aaronleventhal%moonset.net e757042645 Comment fix. SingletonFactory no longer exists. r+sr=shaver 2004-09-02 15:38:56 +00:00
roc+%cs.cmu.edu 0f4150a4e5 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin 2004-06-17 00:13:25 +00:00
timeless%mozdev.org 55a5e5ddbf Bug 243621 Standardize QueryInterface without throw
r=neil sr=darin
2004-05-17 23:38:25 +00:00
timeless%mozdev.org df9ede2b39 Bug 241261 remove nsSample.js comment about bug 14460
r=dougt
2004-04-28 12:44:20 +00:00
gerv%gerv.net 31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
darin%meer.net 8d65e087ae landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00