Commit Graph

61 Commits

Author SHA1 Message Date
vsm@google.com 3e370fe74e Enable html_dartium to be built as part of dartium build
Review URL: https://chromiumcodereview.appspot.com//10126002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6752 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:52:46 +00:00
podivilov@google.com 2899757ad2 Move custom to dart conversion logic to IDLTypeInfo implementations.
This change is the first step towards removing overloaded toDartValue.

R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6736 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 11:45:31 +00:00
podivilov@google.com d80b32703f Introduce CompositeIDLTypeInfo and clean up the code that deals with sequences.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6735 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 11:26:22 +00:00
vsm@google.com 0bcfad872a Update fremontcut with current chrome feature defines
This will bring dart2js / html up to date with Chrome generated dom.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6714 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 22:19:12 +00:00
vsm@google.com 2a115d4420 Roll WebCore IDL to multivm@418
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6704 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 17:56:36 +00:00
podivilov@google.com 1bce834627 Generate proper wrapper types for ActiveDOMObjects.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6688 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 14:17:47 +00:00
podivilov@google.com c330e105b1 Drop DatabaseBuilder.set_same_signatures method.
It doesn't affect code generation at all.

R=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6677 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:40:37 +00:00
podivilov@google.com 658817482f Remove unnecessary renames from dartdomgenerator.py.
AbstractView is not referenced by other idls so we can just ignore AbstractView.idl
like v8 bindings do.

Function -> EventListener rename also doesn't affect anything.

R=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6676 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:31:32 +00:00
sra@google.com 4a81499920 Map IDBAny and IDBKey to Dynamic
Specialize printing of Dynamic depending on context.
Interfaces try to print it as /*IDLType*/ in operation signatures.
Generated C++ is unchanged.

Replace the arg_info tuple with a ParamInfo object.
Rename arg_infos to param_infos.

   void postMessage(Dynamic message, [List messagePorts]);
-> void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]);

   String createObjectURL(var blob_OR_stream);
-> String createObjectURL(blob_OR_stream);

   final Dynamic key;
-> final /*IDBKey*/ key;

   Dynamic strokeStyle;
-> var strokeStyle;

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6665 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 23:20:28 +00:00
podivilov@google.com 009efe078a Do not delete DOMStringMap and DOMStringList types from idl database.
R=antonm@chromium.org,sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6623 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 10:30:34 +00:00
sra@google.com 83161ea194 Fix fremontcutbuilder bug
Also regenerate dom.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6611 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:40:58 +00:00
antonm@google.com 0ddf992c6b Cleanup old phasing code.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6571 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:53:00 +00:00
antonm@google.com 6df48f184a 1st phasing of transition to new API.
Now list of files should be passed directly, and not via some artificial file.

R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6562 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 09:51:48 +00:00
antonm@google.com 593ac870ad Refresh libs.
Review URL: https://chromiumcodereview.appspot.com//10089002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6529 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 16:03:29 +00:00
antonm@google.com 43e8440b4a Some additional Utils functions.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6520 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:31:51 +00:00
podivilov@google.com 45f10a7f63 Remove EventListener attributes from Dart DOM API.
All idl interfaces that have EventListener attributes are EventTargets and implement
addEventListener/removeEventListener methods. We can safely drop this JavaScript legacy now.

The changes in dom and html libs are due to interfaces that are now treated as EventTargets
(the list of EventTargets in webkit-supplemental were not full).

R=sra@chromium.org,jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6519 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:26:49 +00:00
antonm@google.com cace678244 Allow to configure feature when building a database.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6513 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 12:35:56 +00:00
jacobr@google.com af8e09788d Fix ApiDoc to work with new dart:html code. Tweak dart:html generator to generate clearer @domName annotations.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6505 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 09:27:20 +00:00
sra@google.com c3a9e3d08c Remove unused tables from generator.
Review URL: https://chromiumcodereview.appspot.com//10010048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6471 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 20:01:10 +00:00
podivilov@google.com 1428e47120 Put Dartium generated idl in a separate directory so they don't interfere with JS DOM generation.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6465 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 14:47:15 +00:00
antonm@google.com 9775f593a8 Chrome roll 131728->131883.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6450 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 05:13:03 +00:00
podivilov@google.com d27d59080e Remove unnecessary renames from fremontcutbuilder.
R=sra@chromium.org,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6411 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 12:48:24 +00:00
podivilov@google.com 23d913005e Build fix: add DOMStringMap.h conversion include where needed.
TBR=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6410 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 12:37:32 +00:00
podivilov@google.com c6f2a29238 Get rid of _idl_to_dart_type_conversions map.
This info is already contained in _idl_type_registry.

R=antonm@chromium.org,sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6408 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 11:58:16 +00:00
podivilov@google.com 6089c40ffd DOM libraries generation should not fail when database cache don't exist.
Fallback to loading from file system so it's possible to always pass --use-database-cache.

R=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6406 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 11:54:18 +00:00
podivilov@google.com 9af798c536 Support passing the list of idl files to fremontcutbuilder.
Chrome gyp files define the list of all idl files used for bindings generation.
We need a way to pass this list to idl database builder so we are always up to date.

R=antonm@chromium.org,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6403 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 11:45:32 +00:00
vsm@google.com 84ae71ef30 Roll IDL to multivm@375
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6376 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 18:45:21 +00:00
podivilov@google.com 9af05c07ee Auto-generate TimeoutHandler.dart.
R=antonm@chromium.org,sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6317 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-09 11:31:08 +00:00
antonm@google.com 81ccfbd823 Generate DOMStringMap implementation.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6314 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-09 10:10:48 +00:00
jacobr@google.com 5771e2c98d Add touchenter event even though it doesn't have an ontouchenter method in the DOM.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6289 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 18:12:35 +00:00
vsm@google.com c5338dc38c Add accidently omitted IDL files from last roll (to multivm@358)
This explains the inconsistencies we were hitting yesterday.  My fault!

This workflow should generally work to roll IDL forward if you're using git-cl:

./idlsync.py && git add ../../../third_party/WebCore/ && ./fremontcutbuilder.py && ./dartdomgenerator.py

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6287 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 17:25:52 +00:00
antonm@google.com 886c1a356c IDBKey requires special ParameterAdapter handling.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6276 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 15:31:17 +00:00
podivilov@google.com 896f335e43 Do not auto-generate instanceOf methods.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6268 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 12:27:12 +00:00
antonm@google.com 7193fcd474 Support DOMStringMap in generators.
R=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6267 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 12:10:52 +00:00
jacobr@google.com 4c1c8becf3 Add back @domName annotations to dart:html
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6248 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 21:32:39 +00:00
vsm@google.com cc87d5f312 Roll IDL forward to multivm@358
This is the result of:
./idlsync.py && ./fremontcutbuilder.py && ./dartdomgenerator.py

TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6238 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 18:45:22 +00:00
antonm@google.com 9defc048f9 Enable mutation observers for IDL generation.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6223 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 15:56:25 +00:00
podivilov@google.com 2e9862c927 Add support for DOM node vs DOM object separation.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6214 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 09:30:45 +00:00
vsm@google.com 14673f1529 Use non-pinned IDL for Dartium code gen
The Dartium build will uses the IDL in dart/third_party/WebCore first instead of third_party/WebKit/Source/WebCore due to my last CLs.

This CL should make it use the latter.  Please go ahead and commit if the next roll breaks on this.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6202 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-04 22:33:31 +00:00
vsm@google.com 69e44a8057 Update script to fetch new WebCore IDL
By default, fetch from the latest URL / revision used by Dartium.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6195 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-04 20:31:26 +00:00
nweiz@google.com d257b17273 Use a better error message when $!MEMBERS isn't used in a template file.
Review URL: https://chromiumcodereview.appspot.com//9963123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6157 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-04 00:20:01 +00:00
sra@google.com a0187f8928 Fix for Issue 2399 - broken []= on dartium dart:html typed arrays.
Also fix buggy lastIndexOf and add test.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6153 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 23:38:35 +00:00
floitsch@google.com 9d3ea53f2b Fix some warnings.
Partially fixes Issue 2142

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6119 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 09:42:27 +00:00
nweiz@google.com 6cabc53f79 Make Storage implement Map.
Review URL: https://chromiumcodereview.appspot.com//9956076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6117 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 22:51:57 +00:00
antonm@google.com 3cc89e4a5e Support 3-arg versions of .fromBuffer.
BUG=2362
TEST=TypedArrays2Test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6104 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 19:18:29 +00:00
sra@google.com bdb9cffa89 Remove unused typed array factory constructors.
Remove unused typed array factory constructors in the class as the
arrays are actually constructed in the factory constructor provider.

Use native renaming to get rid of hand generated code for typed array
'setElements' method.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6072 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-31 04:15:15 +00:00
sra@google.com 1c23709150 Fix factory dart:html typed array providers for dartium.
Revert "Revert "Typed array constructors with optional buffer offset and length.""

This reverts commit 70b6f43f35d3c022187cdb0ce4d516811a2a5dd1.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6071 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-31 01:01:08 +00:00
sra@google.com 66fad61228 Revert "Typed array constructors with optional buffer offset and length."
This reverts commit aaa5353b16edf040e21fff712757cc14001b2562.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6070 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-31 00:00:52 +00:00
sra@google.com cf763cf868 Typed array constructors with optional buffer offset and length.
A fix for Issue 2331

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6069 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 23:36:52 +00:00
jacobr@google.com dfbb12458f Use the new syntax for native methods that are just renames of other native methods.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6053 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 17:50:54 +00:00