Commit Graph

131 Commits

Author SHA1 Message Date
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
kathyw@google.com b79fee7be2 Improve WebSocket and Storage docs.
Staged at:

http://kathy-02.dartlang-api.appspot.com/html/WebSocket.html
http://kathy-02.dartlang-api.appspot.com/html/Storage.html

BUG=3759,3091

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9146 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 04:28:10 +00:00
vsm@google.com a8b7e343e8 Fix ShadowRoot constructor for dart2js
Review URL: https://chromiumcodereview.appspot.com//10631016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9038 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 18:20:35 +00:00
vsm@google.com 36a2392f83 Regen html_frog
Forgot this on my last change.

TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9037 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 17:51:52 +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
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
sra@google.com 9d51dd1661 Use JavaScriptIndexingBehavior on typed arrays.
Review URL: https://chromiumcodereview.appspot.com//10560018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8882 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 00:26:35 +00:00
vsm@google.com 2a2c6a3ff6 Roll IDL to multivm@615
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8870 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 20:37:10 +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 d3add37df0 Rebuild dom libs.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8773 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 09:44:49 +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 8931de0b9d Fix DataView constructor and byte accessors.
Custom constructor is not yet implemented for Dartium.

Try again with Dartium and FF tests suppressed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8707 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 04:01:40 +00:00
sra@google.com f13edb18ec Revert "Fix DataView constructor and byte accessors."
Review URL: https://chromiumcodereview.appspot.com//10548065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8706 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 03:24:23 +00:00
sra@google.com 790589d941 Fix DataView constructor and byte accessors.
Custom constructor is not yet implemented for Dartium.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8705 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 03:10:07 +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 f7011b8730 Some HTML API cleanup
This CL adds:

- A context2d getter to CanvasElement.
- A top-level query method.
- A top-level queryAll method.

TEST=query_test, canvas_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8591 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 03:01:04 +00:00
sra@google.com 9de14b6bac Unbreak frog html tests
Review URL: https://chromiumcodereview.appspot.com//10535139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8584 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 22:46:07 +00:00
vsm@google.com 0669e69604 Roll IDL to multivm@603
Review URL: https://chromiumcodereview.appspot.com//10542124

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8559 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 18:12:09 +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 e623c9cf5c Put width before height in element constructors.
BUG=3435

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8518 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 21:44:17 +00:00
vsm@google.com e042b19b96 Modify apidoc to prefer handwritten HTML5 docs over those in MDN or generated code.
Review URL: https://chromiumcodereview.appspot.com//10540085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8516 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 20:51:12 +00:00
podivilov@google.com 6fef7739c5 Do not merge IDL interfaces in dartdomgenerator.
The merge is irreversible, and shouldn't be done too early.

R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8456 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 17:41:37 +00:00
sra@google.com 6f516ae928 Add dummy dart:html library for documentation.
dartdoc will be added in the fake dart:html library in lib/html/doc
and merged into the real dart:html library during dart:html build.

We will be adding a tool to that can be run as part of the dart:html build to
merge in the documentation.  The tool will also be able to run stand-alone to
update the documentation post-build.  This will allow documentation work to
continue independently of building.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8415 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 02:07:50 +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
podivilov@google.com 3ace6e9de0 Fix dart to native dispatch.
R=antonm@google.com,sra@google.com
TEST=indexeddb_3_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8341 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 15:12:18 +00:00
podivilov@google.com c7106faf0c Map operator [] directly to native implementation.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8319 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:37:24 +00:00
podivilov@google.com 005cdb4959 Fix NodeSelector interface.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8281 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:24:59 +00:00
podivilov@google.com 16391d794c Implement v8-like overload resolving.
This is needed to fix indexeddb_3_test and several bugs related to overload dispatching.

R=antonm@google.com
BUG=3353
TEST=indexeddb_3_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8278 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 13:08:16 +00:00
vsm@google.com ec6c2fcfe1 Roll IDL to multivm@576
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8266 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 20:42:06 +00:00
podivilov@google.com c16bbe9f2f Add PositionOptions type to registry.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8242 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 10:24:52 +00:00
podivilov@google.com de9c46909b Cleanup NodeSelectors.
Currently, query and queryAll methods generation in dart:html is somehow affected by a combination of the following factors:
1) Document, DocumentFragment, and Element are declared to inherit from NodeSelector interface in dart.idl
2) NodeSelector methods for some of these interfaces are present in_private_html_members, but not all, resulting in generation of $dom_* variants
3) querySelector is renamed to query via _html_library_renames for all interfaces except for Document
4) Some of these methods and their private variants have custom implementations in impl_*.darttemplate's

This patch aims to simplify that logic.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8240 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 09:34:20 +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 6e94898481 Update html_dartium.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8186 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 07:46:51 +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
sra@google.com 4b4991d659 Revert "Revert "Rework Element constructors""
This CL is r8182 plus some other bug fixes to get to green.

The main change is that the first parent of an interface could be a
pure interface.  In that case, it should be treated as a secondary parent
interface, not as the primary implementation inheritance parent.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8184 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 07:14:14 +00:00
sra@google.com b4b0bae90d Revert "Rework Element constructors"
Review URL: https://chromiumcodereview.appspot.com//10451105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8183 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 04:25:29 +00:00
sra@google.com 3614cf1500 Rework Element constructors
It turns out we want different types in the frog vs dartium bodies.
We want the implementation type for frog to help with live type analysis.
We can't use the only slightly less general interface type because the language mandates a warning.

So we now generate the factory constructors for each implementation system rather than once for the interfaces system.

I also extended the mechanism to handle multiple element constructors
and used it to generate HeadingElement.h1() through
HeadingElement.h6()

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8182 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 03:44:47 +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 418ccee6ad Revert html_dartium.dart because SVGViewSpec change breaks dartc.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8157 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 14:53:04 +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
vsm@google.com 87901f4c17 Revert "Roll IDL to multivm@567"
This reverts commit r8127.

TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8132 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 22:52:19 +00:00
vsm@google.com 5d0029b4dc Roll IDL to multivm@567
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8127 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 20:52:08 +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 8954fe1829 Update html_dartium.dart.
TBR=sra@google.com

Committed: https://code.google.com/p/dart/source/detail?r=8070

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8095 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 10:53:23 +00:00
podivilov@google.com 249190c54f Revert "Update html_dartium.dart."
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8071 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 16:40:32 +00:00
podivilov@google.com 6abb2cc1ee Update html_dartium.dart.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8070 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 16:27:05 +00:00
podivilov@google.com 8cc5363226 Revert "Update html_dartium.dart."
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8002 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 15:02:34 +00:00
podivilov@google.com 8b313de6d1 Update html_dartium.dart.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8000 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 14:30:48 +00:00
podivilov@google.com 40eee22a21 Add stub for dart:nativewrappers library.
R=zundel@google.com
BUG=3219

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7999 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 14:28:39 +00:00