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
a785e89775
Do not split attributes on getters and setters in databasebuilder.
...
So we don't have to combine them again in generator.
R=antonm@google.com ,sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10704100
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9414 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-05 09:00:42 +00:00
sra@google.com
f0df31a05a
Remove unnecessary semicolons from Python code.
...
Review URL: https://chromiumcodereview.appspot.com//10692066
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9316 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 21:39:37 +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
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
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
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
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
sra@google.com
4a81499920
Map IDBAny and IDBKey to Dynamic
...
Specialize printing of Dynamic depending on context.
Interfaces try to print it as /*IDLType*/ in operation signatures.
Generated C++ is unchanged.
Replace the arg_info tuple with a ParamInfo object.
Rename arg_infos to param_infos.
void postMessage(Dynamic message, [List messagePorts]);
-> void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]);
String createObjectURL(var blob_OR_stream);
-> String createObjectURL(blob_OR_stream);
final Dynamic key;
-> final /*IDBKey*/ key;
Dynamic strokeStyle;
-> var strokeStyle;
Review URL: https://chromiumcodereview.appspot.com//10107010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6665 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 23:20:28 +00:00
sra@google.com
1c23709150
Fix factory dart:html typed array providers for dartium.
...
Revert "Revert "Typed array constructors with optional buffer offset and length.""
This reverts commit 70b6f43f35d3c022187cdb0ce4d516811a2a5dd1.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9950037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6071 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-31 01:01:08 +00:00
sra@google.com
66fad61228
Revert "Typed array constructors with optional buffer offset and length."
...
This reverts commit aaa5353b16edf040e21fff712757cc14001b2562.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9969036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6070 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-31 00:00:52 +00:00
sra@google.com
cf763cf868
Typed array constructors with optional buffer offset and length.
...
A fix for Issue 2331
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9969001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6069 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 23:36:52 +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