gecko/dom/workers
Boris Zbarsky 224115946f Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom.  General files not specific to an interface are also exported into
mozilla/dom.

In terms of namespaces, most things now live in mozilla::dom.  Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).

IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum.  We then typedef
EnumFooValues::valuelist to EnumFoo.  That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.

The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.

The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.

--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
..
test Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
ChromeWorkerScope.cpp Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
ChromeWorkerScope.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
DOMBindingBase.cpp Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
DOMBindingBase.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
DOMBindingInlines.h Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
EventListenerManager.cpp Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
EventListenerManager.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
Events.cpp Bug 737365 - stop using the cx during finalization, part 1. 2012-03-19 15:34:55 +01:00
Events.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
EventTarget.cpp Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
EventTarget.h Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
Exceptions.cpp Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
Exceptions.h Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
File.cpp Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
File.h bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo 2012-02-05 21:07:23 +01:00
FileReaderSync.cpp Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
FileReaderSync.h Bug 664783 - Implement FileReaderSync for Workers. r=bent+sicking. 2011-08-15 20:40:38 -07:00
FileReaderSyncPrivate.cpp Bug 590390 - deCOM nsICharsetAlias. r=smontagu 2012-03-05 12:57:51 +09:00
FileReaderSyncPrivate.h Bug 664783 - Implement FileReaderSync for Workers. r=bent+sicking. 2011-08-15 20:40:38 -07:00
ImageData.cpp Bug 743615 - Introduce the ImageData object/constructor in workers. r=bent 2012-04-24 12:58:08 +02:00
ImageData.h Bug 743615 - Introduce the ImageData object/constructor in workers. r=bent 2012-04-24 12:58:08 +02:00
Location.cpp Bug 737365 - stop using the cx during finalization, part 1. 2012-03-19 15:34:55 +01:00
Location.h
Makefile.in Bug 743615 - Introduce the ImageData object/constructor in workers. r=bent 2012-04-24 12:58:08 +02:00
Navigator.cpp Bug 737365 - stop using the cx during finalization, part 1. 2012-03-19 15:34:55 +01:00
Navigator.h
Principal.cpp bug 728250 - remove JSPrincipals::codebase. r=:luke,:bz 2012-03-09 10:48:50 +01:00
Principal.h
Queue.h
RuntimeService.cpp Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
RuntimeService.h Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
ScriptLoader.cpp Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
ScriptLoader.h Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Worker.cpp Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
Worker.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
WorkerFeature.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
WorkerInlines.h bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo 2012-02-05 21:07:23 +01:00
WorkerPrivate.cpp Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
WorkerPrivate.h Bug 743615 - Base worker structured clone tags on the dom ones to ensure against collisions. r=bent 2012-04-24 12:58:07 +02:00
Workers.h Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs 2012-04-24 20:47:13 -07:00
WorkerScope.cpp Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
WorkerScope.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
XMLHttpRequest.cpp Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
XMLHttpRequest.h Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
XMLHttpRequestEventTarget.cpp Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
XMLHttpRequestEventTarget.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
XMLHttpRequestUpload.cpp Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
XMLHttpRequestUpload.h Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00