gecko/dom
Boris Zbarsky 32c7f6e634 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
..
base Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
battery Bug 738825 - mirror Marionette Python client into gecko, a=testonly (npotb) 2012-03-26 12:40:25 -07:00
bindings Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
bluetooth Backed out changeset db5d4c1aece7 for B2g bustage. 2012-04-14 09:29:41 +02:00
contacts Bug 746933 - Create a JS helper module for common IndexedDB functionality. r=fabrice 2012-04-26 15:10:04 -07:00
imported-tests Bug 742938 - Move W3C-imported testharness.js tests to make the path shorter; r=jhammel 2012-04-14 15:05:48 +02:00
indexedDB Bug 747581. r=khuey. 2012-04-30 16:52:27 -07:00
interfaces Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
ipc Bug 747581. r=khuey. 2012-04-30 16:52:27 -07:00
locales Bug 712924 - Part 2: Return the proper role description for definition lists, with localization. r=surkov a=NPOTB 2012-04-17 17:31:03 -07:00
network Bug 729173 - Part 4: Fill in the MobileConnection DOM implementation. r=mounir 2012-04-19 18:33:25 -03:00
plugins Bug 748343: Remove support for "java" and "packages" objects from the DOM. r=jst sr=smaug a=ehsan CLOSED TREE 2012-05-01 16:47:35 -04:00
power Bug 745498 - Add testcases for DOM4 exception types. r=sicking 2012-04-26 09:42:26 -07:00
settings Bug 743336 - Settings API: Add service. r=fabrice 2012-04-27 16:21:31 -07:00
sms Bug 742775 - Turn off the debug mode by default on SmsDatabaseService.js. r=philikon 2012-04-11 10:05:35 -07:00
src Bug 749182 - crash in nsSessionStorageEntry::~nsSessionStorageEntry due to a double delete, r=bz 2012-04-26 23:07:51 +02:00
system Bug 750592 - B2G RIL: only enable RILQUIRKS_CALLSTATE_EXTRA_UINT32 on SGS2 gingerbread. r=qDot 2012-05-02 16:32:46 -07:00
telephony Bug 714968 - B2G telephony: support a second incoming call. r=philikon 2012-04-10 18:10:18 +08:00
tests Bug 539095 - Expose high-res timers to web content (performance.now()). r=bz, sr=smaug 2012-04-27 09:22:06 +02:00
webidl 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
wifi Bug 717122 - Network Manager interface for Wifi. r=gal,mrbkap a=b2g-only 2012-04-19 18:33:36 -03:00
workers Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent 2012-05-03 00:35:38 -04:00
dom-config.mk Bug 678695 - Settings API. r=sicking, fabrice, smaug 2012-03-26 14:49:38 -07:00
Makefile.in Bug 742938 - Move W3C-imported testharness.js tests to make the path shorter; r=jhammel 2012-04-14 15:05:48 +02:00