Commit Graph

38 Commits

Author SHA1 Message Date
antonm@google.com 5233dfaf73 Make endianness named argument for DataView accessors.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com,vsm@google.com

Review URL: https://codereview.chromium.org//11234062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13994 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 07:25:37 +00:00
antonm@google.com c0b6dd849e Get rid of Dynamic.
R=podivilov@chromium.org,kasperl@google.com
BUG=6187

Review URL: https://codereview.chromium.org//11235060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13958 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 12:56:44 +00:00
antonm@google.com 00ffc1ba5a Start a whitelist of methods those optionals should be treated as named formals in dart:html.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com,vsm@google.com

Review URL: https://codereview.chromium.org//11236008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13925 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 08:08:15 +00:00
podivilov@google.com c3cec5113c Cleanup list-like interfaces generation.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11227024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13876 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-22 14:09:30 +00:00
podivilov@google.com a5d055806e Merge ListLikeIDLTypeInfo into InterfaceIDLType and add other list-like types to the registry.
The merge is needed to get html renames and svg tear-off support for list-like types.

R=antonm@google.com

Review URL: https://codereview.chromium.org//11236024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13872 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-22 13:31:34 +00:00
antonm@google.com 137370942a Force named arguments in constructors.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com,vsm@google.com

Review URL: https://codereview.chromium.org//11196020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13833 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 18:45:00 +00:00
antonm@google.com 8889337203 Unify formatting of parameters in interfaces and implementing classes.
R=podivilov@chromium.org

Review URL: https://codereview.chromium.org//11191026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13744 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 14:49:11 +00:00
podivilov@google.com dc0c8157bc Rename Dartium dart:html implementation classes.
Currently, Dartium implementation classes are named as "_<IDL_Name>Impl" while
dart2js implementation classes are named as "_<Dart_Name>Impl". The goal of
this patch is to unify the naming across the backends.

R=antonm@google.com

Review URL: https://codereview.chromium.org//11108017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13740 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 14:02:25 +00:00
antonm@google.com de3b284e8f Refactor common functionality.
R=podivilov@chromium.org

Review URL: https://codereview.chromium.org//11191024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13733 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 12:43:48 +00:00
podivilov@google.com f20ca10855 Remove ParamInfo.dart_type field.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11117025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13732 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 12:37:10 +00:00
antonm@google.com a6913b069c Remove unnecessary support for default values.
R=podivilov@chromium.org

Review URL: https://codereview.chromium.org//11196017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13730 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 12:10:11 +00:00
efortuna@google.com b9e2d45d8a Replace DOMStringList with List<String>.
Review URL: https://codereview.chromium.org//11140043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13699 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 20:02:33 +00:00
podivilov@google.com f6c129ce61 Move interface merging info to type registry.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11091046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13533 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 11:45:40 +00:00
podivilov@google.com f8762b2568 Introduce ListLikeIDLTypeInfo as a replacement for nativified_classes table.
IDLTypeInfo hierarchy is a convenient way to deal with idl type polymorfism.

R=antonm@google.com,efortuna@google.com,vsm@google.com

Review URL: https://codereview.chromium.org//11065042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13472 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 13:22:45 +00:00
podivilov@google.com 9d19336573 Add interface_name and implementation_name to IDLTypeInfo class and use them instead of dart_type.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11040059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13470 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 12:38:41 +00:00
vsm@google.com c40edf6954 Wrap Window in case it's a window from a different page / frame.
I also refactored inner_frame_test to explicitly notify if the subframe tests pass or fail.  This should make them more robust and (if they break) fail quickly instead of timing out.

BUG=1913

Review URL: https://codereview.chromium.org//11074005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13331 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:07:08 +00:00
sra@google.com 5c1a93e251 Convert between Dart and JavaScript SerializedScriptValues on postMessage.
Review URL: https://codereview.chromium.org//11065003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13311 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 19:19:16 +00:00
efortuna@google.com d20462a58b Finish Listifying html classes.
Review URL: https://codereview.chromium.org//11044023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13270 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 00:30:38 +00:00
podivilov@google.com 87cda6aa97 Move Dart type narrowing to TypeRegistry.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11027033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13248 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 17:55:30 +00:00
podivilov@google.com f892f55ecb Refactor idl to dart renaming logic for interfaces.
Make sure all types that comes to TypeRegistry.TypeInfo are either registered
or present in database. That is to fix the mess with idl vs. dart types.
Also, InterfaceIDLTypeInfo.dart_type now returns an already renamed type.

R=antonm@google.com

Review URL: https://codereview.chromium.org//11026039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13247 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 17:54:04 +00:00
podivilov@google.com 97255190cd Get rid of webkit renames.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11033024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13244 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 17:33:06 +00:00
podivilov@google.com 4f396585c4 Remove global DartType function.
R=antonm@google.com

Review URL: https://codereview.chromium.org//11030027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13241 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 16:13:57 +00:00
blois@google.com f36360ec8b Converting NodeList to List<Node>.
This keeps the NodeList class because other classes depend on it (notably RadioNodeList), but converts all APIs over to List<Node>.

BUG=2712

Review URL: https://codereview.chromium.org//11055009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13188 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 17:47:48 +00:00
efortuna@google.com e73afc3647 Reapply FooList -> List<Foo> with Gamepad fix for dartium.
Review URL: https://codereview.chromium.org//10982053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12939 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 23:23:54 +00:00
vsm@google.com 700da179e7 Roll IDL to multivm@910, Take #2
I had to suppress the Window.indexedDB and Element.remove methods in favor of the existing custom code.

Review URL: https://codereview.chromium.org//10993053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12937 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 23:05:10 +00:00
efortuna@google.com 3f3417c68d Revert r12808.
Review URL: https://codereview.chromium.org//10981005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12810 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 21:43:42 +00:00
efortuna@google.com 42a03cb5a3 Reapply 12799.
Review URL: https://codereview.chromium.org//10957066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12808 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 21:23:36 +00:00
efortuna@google.com 23a4b72d67 Revert 12799.
Review URL: https://codereview.chromium.org//10957064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12802 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 19:54:37 +00:00
efortuna@google.com a41389ac03 Don't generate FooList if it behaves like List<Foo> exactly.
Review URL: https://codereview.chromium.org//10941047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12799 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 19:42:16 +00:00
blois@google.com e5caa173b5 Removing interfaces.
This converts all interfaces in dart:html to abstract classes and changes the factory providers from factory methods to static methods.

This CL represents the minimal initial change to remove interfaces, but there's quite a bit of further cleanup which can be done after this (eliminating the factory providers in favor of redirecting factory constructors).

Also I'll be splitting the dartdoc changes out to a separate CL since that's a fairly large change in itself.

BUG=4525

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12580 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 17:30:49 +00:00
antonm@google.com 1ce3d9003a Support sequence<T> as return type.
R=podivilov@chromium.org

Review URL: https://codereview.chromium.org//10911307

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12389 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 15:30:31 +00:00
antonm@google.com 5d81898a10 Support sequence<T> as native bindings arguments.
R=podivilov@chromium.org

Review URL: https://codereview.chromium.org//10905265

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12381 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 12:36:21 +00:00
antonm@google.com 48876ada8d Support proper parsing of sequence<T>.
And minor refactoring.

R=podivilov@chromium.org

Review URL: https://codereview.chromium.org//10916286

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12337 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 16:18:56 +00:00
antonm@google.com 5661fd2288 Also require v8 scope for ScriptValue.
For now only for any, will get added for others too.

TBR=podivilov@chromium.org

Review URL: https://codereview.chromium.org//10914261

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12325 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 13:06:37 +00:00
antonm@google.com 708d060ab8 Map any to ScriptValue.
At least that's the way IDB in WebKit does it.

TBR=podivilov@chromium.org

Review URL: https://codereview.chromium.org//10933071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12324 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 12:58:19 +00:00
antonm@google.com d8c1c3a830 Rework overloads/optionals dispatch to use new ?a syntax.
Also remove all the ugly hacks we used to have.

R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12118 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 14:58:55 +00:00
antonm@google.com f41e803c91 Render rest of arguments optional once met first optional argument.
Plus refactorings to signature generation.

R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12112 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 13:38:00 +00:00
efortuna@google.com 880f4d814a Remove lib/dom directory!
Review URL: https://chromiumcodereview.appspot.com//10913125

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12082 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 23:52:00 +00:00