Commit Graph

195 Commits

Author SHA1 Message Date
mhammond%skippinet.com.au
59642b96db GetVariantValue is a much better name than UnwrapVariant.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182145 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-13 01:34:00 +00:00
mhammond%skippinet.com.au
c580abc59f Add new variant functions, and NS_DEBUG constant.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182142 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-13 00:59:56 +00:00
mhammond%skippinet.com.au
336d59ea03 Add PyXPCOM_Log() public function.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182141 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-13 00:59:07 +00:00
mhammond%skippinet.com.au
6f3ccab486 Add keypress event test and image element.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182067 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-12 05:48:35 +00:00
mhammond%skippinet.com.au
ae0fff78ae Work around the fact that XBL bindings are not exposed via nsIClassInfo
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182065 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-12 05:26:02 +00:00
mhammond%skippinet.com.au
1e249cf5dd Have repr() print all interfaces, including ones explicitly QId for. Factor
this into a function so nsdom can use it.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182064 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-12 05:24:25 +00:00
mhammond%skippinet.com.au
3fbb6d453d OnFinalize moves back to its original intent (now I can see what that
was :) and nsIScriptContext::FinalizeClasses renamed to ClearScope


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181975 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-11 05:34:51 +00:00
mhammond%skippinet.com.au
5123eca29d Make things a little prettier when run under unittest
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181960 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-11 00:54:35 +00:00
mhammond%skippinet.com.au
79014c9b78 Get the automated tests all passing again.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181932 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 22:30:35 +00:00
mhammond%skippinet.com.au
324e377a91 Test our event handlers can have too few arguments declared.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181905 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 13:55:26 +00:00
mhammond%skippinet.com.au
6064c983c7 Move to new pyxpcom (sane!) reference management model
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181904 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 13:54:08 +00:00
mhammond%skippinet.com.au
0b760dfeed Protect multiple includes.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181903 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 13:52:28 +00:00
mhammond%skippinet.com.au
35ba95442a Move everything to unittest based tests.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181902 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 13:50:26 +00:00
mhammond%skippinet.com.au
bc15957bed Drop all concept of 'bAddRef' param to simply xpcom reference counting
semantics and clean up some error cases.  Debug modes QI to check the
IID is as we exepct.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181901 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 13:49:47 +00:00
mhammond%skippinet.com.au
e14bdef514 Add comments, remove prints, change repr(), and support event functions
not declaring some/all params.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181898 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 10:02:05 +00:00
mhammond%skippinet.com.au
8acd27b54c Fold in patch to bug 129216 - Darwin build changes and *nix checks for
dynamic Python builds.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181890 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 03:57:25 +00:00
mhammond%skippinet.com.au
b032d89c5f Make things much prettier and add some automated tests.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181848 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 10:43:30 +00:00
mhammond%skippinet.com.au
97230e2a43 Change wrapping process.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181847 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 10:39:27 +00:00
mhammond%skippinet.com.au
7c58f19535 New functions in _nsdom and changes to wrapping process.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181846 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 10:33:13 +00:00
mhammond%skippinet.com.au
20205c380d Allow PYXPCOM_LOG_LEVEL and PYXPCOM_LOG_FILE from the environment to change
the logfile behaviour.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181844 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 09:18:26 +00:00
mhammond%skippinet.com.au
3b4e6118e8 Add PyObject_FromNSInterface as a public function.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181843 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 08:55:22 +00:00
mhammond%skippinet.com.au
c73211d45d Finish rename of logger to 'xpcom'
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181710 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-06 09:48:34 +00:00
mhammond%skippinet.com.au
cca222aacd Normalize the exception before printing it.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181705 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-06 07:29:54 +00:00
mhammond%skippinet.com.au
1742d0ad46 Only the caller of PrErr_Fetch can call PyErr_NormalizeException - it may
change the pointers!


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181704 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-06 07:29:20 +00:00
mhammond%skippinet.com.au
cd03200213 Go further in the concept of a "wrapped native". DOM objects get their
own nsISupports wrapper, which has support in context.py for expandos,
and all object returned by these objects are also this custom object.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181687 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:21:35 +00:00
mhammond%skippinet.com.au
e459c4c4f1 Avoid looking for _eq_ and _neq_ attributes, and always pass the raw
object to XPTC_InvokeByIndex.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181686 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:14:51 +00:00
mhammond%skippinet.com.au
00644c99bf Chage log name to simply 'xpcom' to match the package name.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181685 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:13:53 +00:00
mhammond%skippinet.com.au
22d53280da Few more nsVariant tests
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181684 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:13:06 +00:00
mhammond%skippinet.com.au
fc11431a03 Allow a Py_nsISupports object to control how interface objects obtained
from its methods or attributes are created.  Various nsVariant fixes


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181683 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:12:21 +00:00
mhammond%skippinet.com.au
ea52fe66cc Compiler package is different in Python 2.4.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181555 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 04:18:35 +00:00
mhammond%skippinet.com.au
abf7b92d6e CompileEventHandler new args, and delegate most stuff to Python.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181534 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 02:10:34 +00:00
mhammond%skippinet.com.au
ee774d5992 Add nsdom package
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181533 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 02:07:27 +00:00
mhammond%skippinet.com.au
0bc2eb5a5f Oops - checked in Makefile instead of Makefile.in
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181530 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 01:35:41 +00:00
mhammond%skippinet.com.au
679e0eb9ca nsdom package, which does most of the grunt work.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181529 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 01:34:21 +00:00
mhammond%skippinet.com.au
8ec88ff7b4 Add error event tests
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181528 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 01:32:10 +00:00
mhammond%skippinet.com.au
16deaf6871 Delete stale module.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181519 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:39:08 +00:00
mhammond%skippinet.com.au
6f223094ae new xpcom.primitives module for nsISupportsPrimitive interface helpers
and tests.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181517 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:36:36 +00:00
mhammond%skippinet.com.au
d6a450b609 2nd param to Component() is optional, and correct typo in docstring.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181515 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:35:06 +00:00
mhammond%skippinet.com.au
a077cf0cc8 Add public PyObject_AsNSString, and refactor VariantUtils to use it when
appropriate.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181514 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:33:58 +00:00
mhammond%skippinet.com.au
8e66ae6d1a scripttype->script-type
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181461 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-03 09:51:50 +00:00
mhammond%skippinet.com.au
3d082bdfe0 Brings things up to date with the rest of the world.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181434 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-02 13:29:11 +00:00
mhammond%skippinet.com.au
4686cd2578 * Bring nsISupportsPrimitives support into the unicode world.
* test_isupports_primitives moves to unittest and tests unicode.
* More overloads for PyObject_FromNSString, dropping PyUnicode_FromPRUnichar.
* PyExc_MemoryError translated to NS_ERROR_OUT_OF_MEMORY
* PyXPCOM_FormatCurrentException becomes public.
* Add more type slots, even though we don't use them yet.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181432 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-02 13:00:15 +00:00
mhammond%skippinet.com.au
a16fa16c39 Fix type in comments.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180643 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 12:37:59 +00:00
mhammond%skippinet.com.au
8327630cde Add a test of different attributes with different default languages.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180641 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 12:00:07 +00:00
mhammond%skippinet.com.au
329bdfca9f Get things working with the new event regime.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180486 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 09:00:40 +00:00
mhammond%skippinet.com.au
7ab59c55da Updates some comments.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179986 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 14:18:56 +00:00
mhammond%skippinet.com.au
a3f788386c Tweak leak checking.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179985 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 14:18:01 +00:00
mhammond%skippinet.com.au
8db0a2b899 Fail if a version string is specified, so we can define the semantics later
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179984 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 14:03:07 +00:00
mhammond%skippinet.com.au
0dd0630a4e Clear the current Python error when returning an error code to xpcom
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179903 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 14:36:29 +00:00
mhammond%skippinet.com.au
985422a570 Consolidate the compilation functions and tried (but failed) to trick
Python into using the line-number as specified.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179902 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 14:35:19 +00:00