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
5d7b0b56d0
Omit '= null' as default value in generated dart:html code.
...
Review URL: https://chromiumcodereview.appspot.com//10698056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9303 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 17:33:44 +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
50ab479fb8
Stop using ParameterAdapter<String> in generated code.
...
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10657047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9152 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:18:54 +00:00
podivilov@google.com
1d3895b567
Remove ParameterAdapters for all types except for String.
...
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10662047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9113 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:36:33 +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
sra@google.com
8931de0b9d
Fix DataView constructor and byte accessors.
...
Custom constructor is not yet implemented for Dartium.
Try again with Dartium and FF tests suppressed.
Review URL: https://chromiumcodereview.appspot.com//10540175
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8707 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 04:01:40 +00:00
sra@google.com
f13edb18ec
Revert "Fix DataView constructor and byte accessors."
...
Review URL: https://chromiumcodereview.appspot.com//10548065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8706 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 03:24:23 +00:00
sra@google.com
790589d941
Fix DataView constructor and byte accessors.
...
Custom constructor is not yet implemented for Dartium.
Review URL: https://chromiumcodereview.appspot.com//10539170
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8705 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 03:10:07 +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
antonm@google.com
7ce9049f3f
Support custom constructors with signature declaration.
...
For now Intent is the only IDL interface which has both CustomConstructor
attribute and singnature for the constructor. CustomConstructor should
trump the signature.
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10533064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8451 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 17:12:14 +00:00
podivilov@google.com
3ace6e9de0
Fix dart to native dispatch.
...
R=antonm@google.com ,sra@google.com
TEST=indexeddb_3_test
Review URL: https://chromiumcodereview.appspot.com//10543023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8341 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 15:12:18 +00:00
podivilov@google.com
16391d794c
Implement v8-like overload resolving.
...
This is needed to fix indexeddb_3_test and several bugs related to overload dispatching.
R=antonm@google.com
BUG=3353
TEST=indexeddb_3_test
Review URL: https://chromiumcodereview.appspot.com//10513004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8278 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 13:08:16 +00:00
podivilov@google.com
d699e26bae
Move splitting operations with optional arguments to generator.
...
To generate v8-like overload resolver we need original list of overloads.
It is much easier to slit operations in generator where needed than to split
them in databasebuilder and then combine again in generator.
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10517004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8277 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 12:02:53 +00:00
podivilov@google.com
c16bbe9f2f
Add PositionOptions type to registry.
...
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10483004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8242 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 10:24:52 +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
sra@google.com
b4b0bae90d
Revert "Rework Element constructors"
...
Review URL: https://chromiumcodereview.appspot.com//10451105
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8183 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 04:25:29 +00:00
sra@google.com
3614cf1500
Rework Element constructors
...
It turns out we want different types in the frog vs dartium bodies.
We want the implementation type for frog to help with live type analysis.
We can't use the only slightly less general interface type because the language mandates a warning.
So we now generate the factory constructors for each implementation system rather than once for the interfaces system.
I also extended the mechanism to handle multiple element constructors
and used it to generate HeadingElement.h1() through
HeadingElement.h6()
Review URL: https://chromiumcodereview.appspot.com//10442125
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8182 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 03:44:47 +00:00
antonm@google.com
55e3af5afb
Remove SVGViewSpec from pure interface list.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10463002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8111 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 16:14:51 +00:00
vsm@google.com
9be4ac00ed
Move dart:dom to dart:dom_deprecated
...
Brian: Can you please look at the editor / dartc changes?
Bob: Can you look at the apidoc changes?
Stephen/Pavel: Can you guys look at the rest?
Pavel: I will update, test, and land your Dartium CL along with this change.
Review URL: https://chromiumcodereview.appspot.com//10389097
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7587 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-13 04:10:43 +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
26876b95f2
Fix a build.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10384122
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7548 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 14:34:35 +00:00
antonm@google.com
a03ced9996
Some more __repr__s.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10310119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7547 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 14:31:27 +00:00
antonm@google.com
9fc596d693
Proper support for Uint8ClampedArray.
...
R=podivilov@chromium.org
TEST=dom/typed_array_{2,4}_test
Review URL: https://chromiumcodereview.appspot.com//10379024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7364 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-05 14:58:52 +00:00
podivilov@google.com
93e5b49bab
Remove ParameterAdapters for bindings classes.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10331015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7325 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 13:45:56 +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
podivilov@google.com
4f4665ea97
Cleanup ParameterAdapter for bindings classes.
...
ParameterAdapters should have just one template parameter - Dart bindings class.
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10314005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7271 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 09:12:39 +00:00
podivilov@google.com
cc8279d0b8
Get rid of overloaded toDartValue.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10217004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6951 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 15:40:56 +00:00
podivilov@google.com
db43d3cc2c
Generate DartDOMStringList binding.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10207019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6950 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 15:38:12 +00:00
vsm@google.com
d8b823b1d3
Roll IDL to multivm@439
...
Added mapping from Dictionary to Map.
TBR=sra
Review URL: https://chromiumcodereview.appspot.com//10211003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6906 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 18:05:44 +00:00
podivilov@google.com
1b33610e67
Do not use overloaded toDartValue for bindings classes.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10206017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6904 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 17:39:29 +00:00
podivilov@google.com
44c3346fc4
Support custom to native conversions.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10155027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6898 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 16:48:57 +00:00
antonm@google.com
cb826d4879
Reenable ENABLE_NOTIFICATIONS.
...
Now those APIs use Dictionary instead of OptionsObject.
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10180003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6846 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 15:31:12 +00:00
podivilov@google.com
e7f9fbc391
Do not use overloaded toDartValue for primitive types.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10122011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6797 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 13:50:48 +00:00
podivilov@google.com
2899757ad2
Move custom to dart conversion logic to IDLTypeInfo implementations.
...
This change is the first step towards removing overloaded toDartValue.
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10119009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6736 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 11:45:31 +00:00
podivilov@google.com
d80b32703f
Introduce CompositeIDLTypeInfo and clean up the code that deals with sequences.
...
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10116025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6735 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 11:26:22 +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
podivilov@google.com
009efe078a
Do not delete DOMStringMap and DOMStringList types from idl database.
...
R=antonm@chromium.org ,sra@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10080008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6623 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 10:30:34 +00:00
sra@google.com
c3a9e3d08c
Remove unused tables from generator.
...
Review URL: https://chromiumcodereview.appspot.com//10010048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6471 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 20:01:10 +00:00
podivilov@google.com
d27d59080e
Remove unnecessary renames from fremontcutbuilder.
...
R=sra@chromium.org ,vsm@google.com
Review URL: https://chromiumcodereview.appspot.com//10020023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6411 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 12:48:24 +00:00
podivilov@google.com
23d913005e
Build fix: add DOMStringMap.h conversion include where needed.
...
TBR=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//9969153
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6410 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 12:37:32 +00:00
podivilov@google.com
c6f2a29238
Get rid of _idl_to_dart_type_conversions map.
...
This info is already contained in _idl_type_registry.
R=antonm@chromium.org ,sra@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10021025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6408 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 11:58:16 +00:00
podivilov@google.com
9af05c07ee
Auto-generate TimeoutHandler.dart.
...
R=antonm@chromium.org ,sra@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10027017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6317 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-09 11:31:08 +00:00
antonm@google.com
81ccfbd823
Generate DOMStringMap implementation.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10008048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6314 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-09 10:10:48 +00:00
antonm@google.com
886c1a356c
IDBKey requires special ParameterAdapter handling.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10009042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6276 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 15:31:17 +00:00
antonm@google.com
7193fcd474
Support DOMStringMap in generators.
...
R=podivilov@chromium.org ,sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10005017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6267 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 12:10:52 +00:00
sra@google.com
bdb9cffa89
Remove unused typed array factory constructors.
...
Remove unused typed array factory constructors in the class as the
arrays are actually constructed in the factory constructor provider.
Use native renaming to get rid of hand generated code for typed array
'setElements' method.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9959048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6072 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-31 04:15:15 +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