Commit Graph

57 Commits

Author SHA1 Message Date
kasperl@google.com a3c813ae2d Update corelib/ and lib/ to use the new try-catch syntax.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11504 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 09:58:07 +00:00
whesse@google.com 4789857341 Remove List.copyFrom from VM and from tests. It was removed from the List interface in r941.
BUG=dart:1953

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11437 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 12:06:45 +00:00
blois@google.com b128fea156 Adding .toggle method to Element.classes to match the JS element.classList.toggle method.
BUG=1063

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11420 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 21:22:11 +00:00
vsm@google.com 47e90c2a71 Cache function proxies. This ensures that we forward invocations to the original send port.
Review URL: https://chromiumcodereview.appspot.com//10876084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11410 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 20:21:37 +00:00
iposva@google.com 43c364c8e5 - Change "static final" to "static const" in the lib/ directory.
Review URL: https://chromiumcodereview.appspot.com//10880068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11401 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 18:28:29 +00:00
vsm@google.com a53b84b156 Fix syntax error
It appears that dart2js is not catching this, but dartc and the dartvm are.

TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11366 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-26 22:06:42 +00:00
vsm@google.com 8802f83208 Serialize Elements through PortSync
Review URL: https://chromiumcodereview.appspot.com//10883037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11365 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-26 21:55:31 +00:00
vsm@google.com d7b836f226 Support methods, getters, and setters on JS proxies.
Review URL: https://chromiumcodereview.appspot.com//10873037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11345 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 21:40:18 +00:00
sra@google.com f261cf4f11 dart2js dart:html conversions for serialized script values.
This fixes issue 1883.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11331 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 18:45:13 +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 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
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
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 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
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
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
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
antonm@google.com dd491625ca Simplify ReceivePortSync.receive implementation.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9553 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 16:55:44 +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
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
vsm@google.com d2624ab46f Enable cross frame window operations
This should get everything working for dart2js besides the location
and history getters.

BUG=3472
TEST=window_open_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8988 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:36:15 +00:00
ager@google.com 4806b28e5e Remove string + uses from dart:html.
R=kasperl@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8791 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 13:21:48 +00:00
antonm@google.com 2b23a9c3b1 Some more + cleanups.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8771 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 09:36:40 +00:00
sra@google.com e3ce628065 Wrap Location object on Firefox.
This is a fix for Issue 3152.
https://code.google.com/p/dart/issues/detail?id=3152

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8635 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 23:40:30 +00:00
vsm@google.com 751b6d816e Remove _ from params
BUG=3496

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8557 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 17:51:48 +00:00
sra@google.com 161d21ec06 indexedDB work
Make string 'mode' argument to IDBDatabase.transaction work on older browsers.

Make window.indexedDB available.  Does not yet work of Firefox for other
reasons.

Add interface IDBOpenDBRequest.  IDBFactory.open returns this in the most recent spec, and is implemented by Firefox.

Next, I will try to use the new event kinds on IDBOpenDBRequest to get Firefox to open a database.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8369 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 23:19:36 +00:00
vsm@google.com 207a0bbb35 Fix bug in Dromaeo to use the proper generated html file.
Review URL: https://chromiumcodereview.appspot.com//10484004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8216 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 21:49:24 +00:00
podivilov@google.com 2f43f86528 Fix indexeddb_4_test.
R=sra@google.com,vsm@google.com,antonm@google.com
BUG=3301

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8185 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 07:23:45 +00:00
podivilov@google.com 088d36e93b Remove other occurencies of _unwrap from dart:html.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8160 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 15:44:14 +00:00
podivilov@google.com 18d4d45f4c Remove now useless top level _wrap and _unwrap from dart:html.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8156 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 14:18:09 +00:00
podivilov@google.com aa58f2ceee Wrapperless dart:html for Dartium.
R=antonm@google.com,sra@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8113 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 16:19:05 +00:00
podivilov@google.com 1df52df3ed Move dart:dom implementation classes to dart:html library.
Rename dom implementation classes to _<Interface>DOMImpl to avoid clashes with html
implementation classes, and import dom implementation classes directly into dart:html.
Temporary introduce fake dom interfaces for overload dispatching (dom implementation classes
don't implement html interfaces yet).

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7954 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 17:05:23 +00:00
vsm@google.com bdd5ab5fd8 Minimal fix to get cross frame tests working, take #2.
See patches for minor fixes.

TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7528 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 04:26:45 +00:00
vsm@google.com 8dab28a81e Revert "Minimal fix to get cross frame tests working."
A couple more complications than I expected on the dartium side.  I'm
reverting and redoing.

TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7481 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 05:38:36 +00:00
vsm@google.com 5f33455489 Minimal fix to get cross frame tests working.
I'm working on a more general fix that should obsolete this change.

BUG=http://code.google.com/p/dart/issues/detail?id=2774
TEST=cross_frame_test,inner_frame_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7480 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 04:09:12 +00:00
sra@google.com c14588e1ef Add IDBKeyRange to dart:html, port two indexeddb tests
Review URL: https://chromiumcodereview.appspot.com//10378004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7310 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 00:09:24 +00:00
sra@google.com 31b413e555 Revert "Add IDBKeyRange to dart:html, port two indexeddb tests"
Review URL: https://chromiumcodereview.appspot.com//10382002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7309 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 00:03:29 +00:00
sra@google.com 098a27d1af Add IDBKeyRange to dart:html, port two indexeddb tests
... with .status fixes

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7308 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 23:54:30 +00:00
sra@google.com 21b2c6302a Revert "Add IDBKeyRange to dart:html, port two indexeddb tests"
Review URL: https://chromiumcodereview.appspot.com//10378003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7307 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 23:44:28 +00:00
sra@google.com 6defeeb156 Add IDBKeyRange to dart:html, port two indexeddb tests
Review URL: https://chromiumcodereview.appspot.com//10352021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7306 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 23:28:18 +00:00
vsm@google.com 94344cd762 Rename getTEMPNAME to get
BUG=2584
TEST=xhr_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7212 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 04:20:45 +00:00
vsm@google.com 0787331c69 Fix html TypedArray constructors
TBR=jacobr

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6821 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-21 05:22:42 +00:00