Commit Graph

25 Commits

Author SHA1 Message Date
antonm@google.com 088d5937cb Autogenerate additional arguments for fanky methods.
Methods with CallWith=ScriptArguments|CallStack are declared
w/o last argument in WebKit IDLs.  Formerly this last argument
was manually injected via dart.idl, but it's not robust in the
presence of IDL modifications.

TBR=podivilov@chromium.org,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10821012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9890 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 15:48:35 +00:00
dgrove@google.com 89dd99fdd0 Convert DOM and HTML frog to dart2js.
Review URL: https://chromiumcodereview.appspot.com//10800104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9871 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 22:45:59 +00:00
podivilov@google.com e79091fc3b Do not treat callbacks with no handlers as interfaces.
R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10789010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9734 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-18 10:45:06 +00:00
podivilov@google.com 6b19d0e60a Properly generate MutationCallback in dart:html.
* add support for custom callbacks (MutationCallback.handleEvent is custom)
* add MutationRecordArray to type registry, so MutationCallback.handleEvent
is not removed because of unknown parameter type

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10785035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9713 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-17 17:30:18 +00:00
sra@google.com d462048a9b Revert "Handle all registered types, not just 'Primitive' ones."
Review URL: https://chromiumcodereview.appspot.com//10779024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9689 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 23:56:02 +00:00
sra@google.com 26df219473 Handle all registered types, not just 'Primitive' ones.
This change preserves the name through to the generated C++ code.

Review URL: https://chromiumcodereview.appspot.com//10704219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9688 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 23:14:57 +00:00
podivilov@google.com 29f943e1af Extract interfaces and members renaming logic to a new HtmlRenamer class.
R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10703194

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9660 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 13:02:27 +00:00
podivilov@google.com 23cf5e33c2 Stop passing HtmlSystemShared around and move html renaming to IDLTypeInfo.
R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10698108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9636 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 16:28:43 +00:00
podivilov@google.com f7cc41b276 Introduce TypeRegistry class.
This is needed to optionally associate additional state like html renames
map with IDLTypeInfo instances.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10702202

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9634 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 16:16:17 +00:00
podivilov@google.com e9e1df043e Make HtmlFrogSystem and NativeImplementationSystem the backends for HtmlInterfacesSystem and remove HtmlDartiumSystem.
This will allow easy code reuse between all existing html systems.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10704008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9240 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 10:01:50 +00:00
podivilov@google.com 20fe182f7a Make per-interface generators an implementation detail of a system.
DartGenerator shouldn't know about per-interface generators
as it stiffles further refactoring and makes code reuse harder.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10700006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9239 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 09:37:12 +00:00
antonm@google.com 85a0c9635c Proper support for IDL arrays in generators.
R=podivilov@chromium.org,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10584031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8969 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 10:43:11 +00:00
podivilov@google.com a93c755ea2 Use original WebKit IDL database for dart:html generation.
This will allow us to use the same database to generate both frog and native implementations.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10542036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8458 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 18:03:10 +00:00
podivilov@google.com 6fef7739c5 Do not merge IDL interfaces in dartdomgenerator.
The merge is irreversible, and shouldn't be done too early.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10541029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8456 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 17:41:37 +00:00
podivilov@google.com 0b807ba37b Move interface members traverse logic to BaseGenerator.
AddMembers(merged_interface) will be used by systemhtml to add
all the members from HTMLElement to Element.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10532027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8438 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 13:47:01 +00:00
sra@google.com 4b4991d659 Revert "Revert "Rework Element constructors""
This CL is r8182 plus some other bug fixes to get to green.

The main change is that the first parent of an interface could be a
pure interface.  In that case, it should be treated as a secondary parent
interface, not as the primary implementation inheritance parent.

Review URL: https://chromiumcodereview.appspot.com//10443122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8184 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 07:14:14 +00:00
podivilov@google.com 91e5b9d239 Move systems creation to dartdomgenerator.py.
Wrapperless htmldartium system should use a database with html renames
for interface generation, and original database for c++ code generation.
This is hard to achieve with current layout because specific knowledge about html/dom
and frog/native is spread between dartdomgenerator and dartgenerator.

This patch moves all system creation logic to dartdomgenerator while dartgenerator
becomes a collection of helper methods for traversing idl database.

R=antonm@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10392147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7739 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 13:31:39 +00:00
podivilov@google.com c5a1152664 Move html events generation to domimpl.
R=antonm@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10332144

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7692 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-16 15:20:55 +00:00
antonm@google.com 3639e3ab3a Better support for the case of typed arrays inheriting from other typed arrays.
R=podivilov@chromium.org,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10388084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7580 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-12 08:52:09 +00:00
podivilov@google.com 5ab3ca32ef Merge wrapping system into native system.
R=antonm@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10388085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7546 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 14:28:20 +00:00
antonm@google.com 2806978be7 Rework static method support.
For now I just nuke them from all generators except for systemnative.

However, that remove two methods from DOMURL.  One of those should probably be a ctor.
The second one is funnier as it looks like legetimate static methods.

R=podivilov@chromium.org,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10334003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7320 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 11:05:29 +00:00
vsm@google.com 3e370fe74e Enable html_dartium to be built as part of dartium build
Review URL: https://chromiumcodereview.appspot.com//10126002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6752 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:52:46 +00:00
podivilov@google.com 45f10a7f63 Remove EventListener attributes from Dart DOM API.
All idl interfaces that have EventListener attributes are EventTargets and implement
addEventListener/removeEventListener methods. We can safely drop this JavaScript legacy now.

The changes in dom and html libs are due to interfaces that are now treated as EventTargets
(the list of EventTargets in webkit-supplemental were not full).

R=sra@chromium.org,jacobr@google.com

Review URL: https://chromiumcodereview.appspot.com//10014028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6519 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:26:49 +00:00
jacobr@google.com af8e09788d Fix ApiDoc to work with new dart:html code. Tweak dart:html generator to generate clearer @domName annotations.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10068019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6505 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 09:27:20 +00:00
dgrove@google.com 7d558789d6 Rename client/{dom,html} to lib/{dom,html} .
Review URL: http://codereview.chromium.org//9845043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5840 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 16:29:54 +00:00