sra@google.com
c53570687c
Revert "Revert "Conversions between Dart code and DOM code.""
...
Adjust html.status
Review URL: https://chromiumcodereview.appspot.com//10868035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11202 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 01:13:39 +00:00
sra@google.com
4fcc448e4c
Revert "Conversions between Dart code and DOM code."
...
Review URL: https://chromiumcodereview.appspot.com//10879025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11194 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 23:53:08 +00:00
sra@google.com
7103096a77
Conversions between Dart code and DOM code.
...
Arguments passed to and values returned by JavaScript code sometimes need to be converted. dart:html for dart2js specifies these conversions in a table indexed by type and, optionally, operation.
If an operation has any overloads that require conversion, a dispatch is generated to identify the values needing conversion, and to ensure the native method is called with the same number of arguments as the original user call site.
Review URL: https://chromiumcodereview.appspot.com//10827428
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11193 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 23:30:17 +00:00
antonm@google.com
daa167bc1c
Refactor conversion to native.
...
generator.py should be only aware of details, but shouldn't emit the code directly.
Review URL: https://chromiumcodereview.appspot.com//10831035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11172 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:36:41 +00:00
vsm@google.com
282cf2fc15
Restore js interop code
...
Create a copy of the formerly shared serialization code for now to unblock js interop work. We can discuss if/how it makes sense to merge these.
Review URL: https://chromiumcodereview.appspot.com//10878010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11171 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:35:43 +00:00
antonm@google.com
37ec166a4a
Improve the problem description.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10829462
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11166 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 15:51:32 +00:00
antonm@google.com
6141f9b57b
Map ObjectArray to List.
...
I am not sure WebKit IDL usage of ObjectArray is the best approach in the first place,
but at least let's do something about it.
R=podivilov@chromium.org ,sra@google.com ,vsm@google.com
BUG=1888
Review URL: https://chromiumcodereview.appspot.com//10877007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11139 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 12:43:07 +00:00
ajohnsen@google.com
019a64e947
Re-introduce the _dispatchEvent function in lib/html/src/Isolates.dart.
...
Removed by accident.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10878006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11134 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 11:51:09 +00:00
ajohnsen@google.com
a94492e7f0
Remove the shared js_isolate_impl and the current js/dart interop implementation.
...
The implementation dependent on the private implementation
implementation of isolates in of dart2js. The tests have been marked as
Fail for now.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10877009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11133 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 11:24:25 +00:00
ajohnsen@google.com
0d078037e2
Re-apply 'Unify dart:isolate.' with fixes for autogenerated dart2js and dartium html files.
...
Old Review URL: https://chromiumcodereview.appspot.com//10828410
BUG=
Review URL: https://chromiumcodereview.appspot.com//10828411
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11084 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:47:43 +00:00
efortuna@google.com
742e1ffcbe
Rename XMLHttpRequest to HttpRequest.
...
Review URL: https://chromiumcodereview.appspot.com//10823352
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11070 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:35 +00:00
antonm@google.com
b919b0c4ae
Remove semicolon.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10860064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11048 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:11:56 +00:00
antonm@google.com
689c8a2fc5
Split to dart conversion and argument expression logic.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10827046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11043 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:53:12 +00:00
antonm@google.com
c68e205c29
Remove now unused implementation.
...
TBR=sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10825449
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10959 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:38:10 +00:00
antonm@google.com
e8e62cca87
Roll IDL to mutlivm@775.
...
TBR=vsm@google.com
Review URL: https://chromiumcodereview.appspot.com//10831389
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10954 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:23:31 +00:00
antonm@google.com
acb2ba84bf
IDBOpenDBRequest is now in WebKit IDLs.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10860040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10951 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:05:20 +00:00
antonm@google.com
f220c80640
Preparing Chrome roll.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10860038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10940 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 11:05:47 +00:00
sra@google.com
1d36a8f5a5
Remove old feature for generating canned native bodies.
...
It is obsolete - it was used only for the deprecated dom library.
Review URL: https://chromiumcodereview.appspot.com//10825438
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10937 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-19 02:25:39 +00:00
antonm@google.com
ddf391f393
Add an optional argument to HTMLCanvasElement.toDataURL.
...
That brings us closer to the spec and actual usage.
R=vsm@google.com
Review URL: https://chromiumcodereview.appspot.com//10827399
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10896 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 13:51:07 +00:00
sra@google.com
d31e5df37d
Fix for Issue 3039.
...
Review URL: https://chromiumcodereview.appspot.com//10825393
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10853 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 18:38:06 +00:00
antonm@google.com
fbca909095
Autogenerate typed array toDart methods.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10829357
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10830 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:30:55 +00:00
sra@google.com
fa28528dca
Enable (HTML)DataListElement
...
Add test and convenience constructor.
Fixes Issue 4474.
Review URL: https://chromiumcodereview.appspot.com//10824326
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10786 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 02:30:15 +00:00
vsm@google.com
8aea752058
Don't auto-send credentials on XHR.get
...
I've introduced an alternative XHR.getWithCredentials to make this an
explicit opt-in.
BUG=4481
Review URL: https://chromiumcodereview.appspot.com//10831314
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10683 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:10:59 +00:00
vsm@google.com
154358d55e
Roll IDL to multivm@762
...
TBR=sra
Review URL: https://chromiumcodereview.appspot.com//10825350
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10681 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 21:54:06 +00:00
antonm@google.com
8a68bcf033
Proper dispatch in the presence of optional arguments.
...
Formerly for the methods like foo([Optional] x, [Opional] y), the following
dispatcher was emitted:
foo([x = _null, y = _null]) {
if (y === _null) {
return _foo_1(x); // WRONG!
}
if (x === _null) {
return _foo_2();
}
return _foo_3(x, y);
}
Now correct code is emitted:
foo([x = _null, y = _null]) {
if (y !== _null) {
return _foo_1(x, y);
}
if (x !== _null) {
return _foo_2(x);
}
return _foo_3();
}
TBR=podivilov@chromium.org
BUG=4487
Review URL: https://chromiumcodereview.appspot.com//10832300
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10661 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 18:14:57 +00:00
antonm@google.com
935a049d07
Migrate to testRunner from layoutTestController.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10826304
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10651 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:48:30 +00:00
antonm@google.com
71a4066af9
Allow static modifier for attributes.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10832267
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10554 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 08:25:55 +00:00
antonm@google.com
946ae9f792
Support typed arrays constructor templates.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10834271
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10501 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 12:55:21 +00:00
vsm@google.com
74aaac772a
Implement spawnDomFunction
...
Removed the spawnDomIsolate in favor of spawnDomFunction. The signature of this function matches spawnFunction.
Review URL: https://chromiumcodereview.appspot.com//10837088
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10474 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 00:05:46 +00:00
antonm@google.com
0bb4674052
Allow spaces in ext attr values.
...
TBR=podivilov@chromium.org ,sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10831190
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10331 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 11:44:28 +00:00
vsm@google.com
c9c8d17cfd
Move noSuchMethod hook from UnknownElement to Element
...
Review URL: https://chromiumcodereview.appspot.com//10826146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10245 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 20:09:55 +00:00
sra@google.com
c4a7f117c2
Make more native DOM array-like objects known to compiler.
...
This improves Dromaeo traversal benchmarks up from ~100 to ~160. (They still need more work - target is ~400.)
Review URL: https://chromiumcodereview.appspot.com//10823140
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10158 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 10:26:36 +00:00
vsm@google.com
8c40dc703d
Partially rollback noSuchMethod for UnknownElement until we figure out code size issue
...
jacob: This won't effect Dartium. Just rolling back for dart2js, which wasn't working anyway.
Review URL: https://chromiumcodereview.appspot.com//10843022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10118 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 14:19:08 +00:00
vsm@google.com
7de22f0c61
Roll IDL to multivm@733
...
TBR=sra
Review URL: https://chromiumcodereview.appspot.com//10837033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10104 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 01:15:12 +00:00
antonm@google.com
f697b7f0b3
Minor refactoring to streamline the logic.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10830038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9959 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 19:20:57 +00:00
antonm@google.com
c42f43099e
Reapply the fix.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10833036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9942 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 15:28:48 +00:00
antonm@google.com
bc4831e99f
Unify null treatment.
...
Always use WithNullCheck suffix instead of a special flag.
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10829037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9940 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:59:48 +00:00
antonm@google.com
da56474cea
Quick fix to make bbs green.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10833035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9938 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:48:26 +00:00
antonm@google.com
537abe2e71
Unify processing of the cases when argument is declared optional in IDLs and is not optional in WebKit.
...
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10828031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9937 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:16:02 +00:00
antonm@google.com
243aab2472
Add new event names.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10827035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9932 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 10:58:06 +00:00
dgrove@google.com
9f3b6b13ce
Change #library("dom") to #library("dart:dom_deprecated") .
...
Change #library("html") to #library("dart:html") .
Fix issue 4194.
Review URL: https://chromiumcodereview.appspot.com//10826023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9919 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 23:41:18 +00:00
antonm@google.com
c8e6b41aa3
Minor rework of argument emission.
...
Inline the method and minor cosmetics.
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10834008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9894 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 17:14:20 +00:00
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
antonm@google.com
dc479ea389
Automatically support fancy Console methods.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10821010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9887 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 15:29:14 +00:00
antonm@google.com
b2c06f655d
Use nested emitter idiom.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10824012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9886 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 14:08:30 +00:00
antonm@google.com
318574c80a
Refactor invocation emission.
...
Now cpp_arguments are built inside a single method and invocation
is emitted in the main mega-method.
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10822009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9885 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 13:41:50 +00:00
antonm@google.com
a8daaa9d6a
Emit parameters directly, w/o auxilary emitter.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10820011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9884 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 13:09:51 +00:00
antonm@google.com
43c4f2d2cd
Minor refactoring.
...
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10824010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9883 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 12:56:46 +00:00
antonm@google.com
64cc3e0925
Refactor callback emission.
...
Move most of the logic into common part.
Review URL: https://chromiumcodereview.appspot.com//10818037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9882 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 12:43:07 +00:00
antonm@google.com
000fb5ed2c
Communication optionality of priority in CSSStyleDeclaration.setProperty via dart.idl.
...
R=podivilov@chromium.org ,sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10829008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9877 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 10:21:49 +00:00