Commit Graph

150 Commits

Author SHA1 Message Date
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 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 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 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 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
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
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
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
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
sra@google.com fc20e9356e Add template comments.
Lines starting with //$ are removed during preprocessing of the template.
This allows comments in the templates that are not copied to the generated text.

Update copyright in template file in anticipation of new uses.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9616 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 21:45:22 +00:00
sra@google.com 0e37190b18 Refresh dart:html
Review URL: https://chromiumcodereview.appspot.com//10701153

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9579 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 02:15:48 +00:00
vsm@google.com 9323a6d742 Add registerPort / lookupPort to generated interfaces with documentation
Note, the implementations are already there in Dartium and Dart2JS.
This will make the APIs show up in the Editor and dartdoc.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9537 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 23:54:37 +00:00
antonm@google.com b462d8dbd4 Support timers in DOM isolates.
R=podivilov@chromium.org
BUG=4013

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9511 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 15:06:13 +00:00
vsm@google.com 8231039baa Roll IDL to multivm@683
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9479 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 19:42:19 +00:00
vsm@google.com 9c4f5eda7f Added Dartium support for JS to Dart PortSync calls
I addressed your test comments from the last cl - sorry for missing the last time.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9431 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 09:33:34 +00:00
vsm@google.com d14ba572e8 Add support for JS->Dart and Dart->dart via *PortSync.
Review URL: https://chromiumcodereview.appspot.com//10695111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9427 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 08:09:58 +00:00
kasperl@google.com 41d66571ff Stop adding so many global functions in client/dart.js.
R=vsm@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9395 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 10:51:39 +00:00
podivilov@google.com 1b590a6185 Unfork html events generation in dart2js and dartium.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9342 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 11:39:16 +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 793232d1eb Extract common logic for element factory constructors generation.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9292 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 15:42:56 +00:00
sra@google.com 537b9b4f7b Revert "Revert "Blob constructor""
Also fix status file for web-chrome-win7 since chrome was updated.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9274 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 23:18:46 +00:00
sra@google.com 8ca722e162 Revert "Blob constructor"
Review URL: https://chromiumcodereview.appspot.com//10689052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9272 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 22:18:21 +00:00
sra@google.com a8929bc035 Blob constructor
Fix for http://code.google.com/p/dart/issues/detail?id=2181.

Needs custom constructor to be implemented to work on Dartium.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9267 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 20:52:59 +00:00
podivilov@google.com 08152ff81c Regenerate html_dartium.dart.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9248 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 13:38:02 +00:00
podivilov@google.com c3977d7b22 Get rid of DOMWrapperBase and DOMTypeBase.
These types are not needed anymore.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9242 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 10:21:25 +00:00
sra@google.com bd5f1e5d69 Regenerate lib/html/dartium/html_dartium.dart
(adds _DOMStringMapImpl)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9237 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 04:56:35 +00:00
podivilov@google.com f5a2e9cec8 Build fix for r9154.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9155 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 10:11:50 +00:00
podivilov@google.com 747ad87c2e Events operator [] shouldn't convert event name to lower case.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9154 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:36:56 +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