sra@google.com
6ba51b6707
Remove trivially redundant tests from html_dart2js dispatches.
...
Review URL: https://chromiumcodereview.appspot.com//10869029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11257 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 20:53:54 +00:00
blois@google.com
ef7c57676a
Revert "Adding Element.AddHTML and Element.addText methods."
...
This reverts commit f1b1dc4f51ebbfa5f37e65cff0a638c80217f5d9.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10878027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11251 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 19:04:27 +00:00
blois@google.com
810807a7b3
Adding Element.AddHTML and Element.addText methods.
...
These are to make it easier to append HTML and text to existing DOM nodes.
BUG=3685
Review URL: https://chromiumcodereview.appspot.com//10854208
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11249 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 18:36:29 +00:00
sra@google.com
5e134e6b8b
Conversions between JavaScript objects and Maps.
...
Review URL: https://chromiumcodereview.appspot.com//10870030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11208 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 03:50:16 +00:00
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
vsm@google.com
c69e3285d2
Regen html_dart2js - fix for dartc
...
TBR=efortuna@google.com
Review URL: https://chromiumcodereview.appspot.com//10869016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11184 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 20:39:02 +00:00
vsm@google.com
769cfa00b1
Support proxying of objects between JS and Dart.
...
Review URL: https://chromiumcodereview.appspot.com//10827462
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11182 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 20:13:36 +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
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
fe4a885a84
Fix dartdoc change with XMLHttpRequest
...
Review URL: https://chromiumcodereview.appspot.com//10829458
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11072 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:49:40 +00:00
efortuna@google.com
bad51b1f63
Update XMLHttpRequest documentation.
...
Review URL: https://chromiumcodereview.appspot.com//10860050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11071 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:56 +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
vsm@google.com
9259b263fd
Support general serializing of functions between JS and Dart
...
Anton: This expands on your earlier CL. Do you mind taking a look?
Review URL: https://chromiumcodereview.appspot.com//10834426
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11066 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:59:54 +00:00
antonm@google.com
ff6957c372
Remove now unused file.
...
TBR=sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10824375
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10981 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 15:28:13 +00:00
antonm@google.com
5f8ff75236
Rebuild dart:html.
...
TBR=sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10836338
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10961 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:43:23 +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
dgrove@google.com
d689e37dba
Remove unused generated files.
...
Review URL: https://chromiumcodereview.appspot.com//10855223
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10909 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 17:44:23 +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
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
sra@google.com
0dff21b626
Regenerate dart:html
...
Review URL: https://chromiumcodereview.appspot.com//10834344
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10778 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 23:18:55 +00:00
antonm@google.com
0e9ad86574
Move function serialization to sync ports.
...
For now only dart to JS serialization.
R=sammccall@google.com ,vsm@google.com
Review URL: https://chromiumcodereview.appspot.com//10690142
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10750 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 16:58:36 +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
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
rnystrom@google.com
0bc9b19740
Rename BadNumberFormatException -> FormatException.
...
Review URL: https://chromiumcodereview.appspot.com//10850034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +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
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
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
johnniwinther@google.com
c6d70857e4
Several new features and improvements for dartdoc.
...
* Dartdoc now works on multiple libraries and entrypoints.
* A dartdoc/dartdoc.bat script is generated into dart-sdk/bin
* The API libraries recognized by dart2js using the 'dart:' prefix
have been updated to use the 'dart:*' name in their library tags.
This makes the libraries show up with the correct prefix in the API docs.
* The processed libraries can be selected or limited, API
libraries are not processed by default, and links to api.dartlang.org
can be generated for API libraries.
Because of the changed library tags on API libraries, the generated
links don't current match the addresses on api.dartlang.org.
For instance, the docs for Object is currently located in
api.dartlang.org/core/Object.html, but with the new library
tag 'dart:core', the address will be api.dartlang.org/dart_core/Object.html.
The links will thus not work until api.dartlang.org have been updated with
this patch.
* Code and pre blocks use overflow-x:auto to support wide lines.
BUG=2656,2686,3533,4029,4145,3555
Review URL: https://chromiumcodereview.appspot.com//10809035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9843 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 09:16:33 +00:00
vsm@google.com
ff7ee386e2
Provide noSuchMethod hook for UnknownElement
...
The test passes on dartium, fails on dart2js. The latter appears to be a dart2js bug related to noSuchMethod. Still need to update the html.status file.
TEST=unknownelement_test.dart
Review URL: https://chromiumcodereview.appspot.com//10817019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9839 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 06:06:43 +00:00
vsm@google.com
9997255c59
Roll IDL to multivm@713
...
Added quota and gamepad modules.
Review URL: https://chromiumcodereview.appspot.com//10800075
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9814 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 15:50:59 +00:00
vsm@google.com
3fedf84a1f
Cleanup queryAll to return List<Element>.
...
BUG=3867
TEST=html/queryall-test.dart
Review URL: https://chromiumcodereview.appspot.com//10806016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9784 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-20 17:08:53 +00:00
sra@google.com
7b24c8ac90
Add MutationObserver constructor
...
Add custom MutationObserver.observe method
The observe method supports configuration by dictionary and optional arguments:
observer.observe(node, {'subtree': true});
observer.observe(node, subtree: true);
If both are given, they are merged.
Review URL: https://chromiumcodereview.appspot.com//10696209
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9752 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 02:16:09 +00:00
vsm@google.com
ad4c250f7b
Roll IDL to multivm@707
...
TBR=sra
Review URL: https://chromiumcodereview.appspot.com//10800016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9743 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-18 17:48:17 +00:00
sra@google.com
c6d7a98104
ArrayBuffer constructor
...
Dartium custom constructor still needs to be written.
Review URL: https://chromiumcodereview.appspot.com//10780029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9718 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-17 19:58:24 +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