Commit Graph

100 Commits

Author SHA1 Message Date
floitsch@google.com 0672317bec Remove deprecated mappedBy.
Committed: https://code.google.com/p/dart/source/detail?r=18575
Reverted: http://code.google.com/p/dart/source/detail?r=18576

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18579 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:57:18 +00:00
floitsch@google.com ad839e6957 Revert "Remove deprecated mappedBy."
This reverts commit 18575.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18576 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:23:22 +00:00
floitsch@google.com b37100770b Remove deprecated mappedBy.
Review URL: https://codereview.chromium.org//12212213

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18575 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:18:17 +00:00
lrn@google.com 349cd9eae0 Add unmodifiable list view.
Avoid using list.take(list.length), which no longer gives a list.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18572 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 12:42:27 +00:00
lrn@google.com b7f36d0d11 Make List.skip, List.take and List.reversed return Iterables, not Lists.
Removes ListView. It was premature optimization to have classes that combined any sequence of reverse, skip and take instead of just wrapping iterables.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18570 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 10:43:21 +00:00
efortuna@google.com d7057b2d8c Reapply setTimeout change.
This CL is identical to 18555. The reason it will  work now is the corresponding
dartium change has been checked in.

TBR-blois

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18562 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 07:40:51 +00:00
kustermann@google.com 6e15e3eff7 Revert "Reapply remove setTimeout, take 3."
Review URL: https://codereview.chromium.org//12207198

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18559 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 04:25:18 +00:00
efortuna@google.com adf0fadd0d Reapply remove setTimeout, take 3.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18555 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 02:42:13 +00:00
blois@google.com fd2c1cbf89 Adding supported checks and flags to FormData
Also fixing the test to pass on IE10.

BUG=4793

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18554 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 02:23:52 +00:00
blois@google.com 8123bf9175 Fixing node.nodes.addAll to accept node lists.
Had two options- change the iterators or do a defensive copy. I believe this is a fairly performance-critical area, so tried to optimize for that.

BUG=6684

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18545 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 22:07:05 +00:00
efortuna@google.com 2b86a542a3 "Reverting 18531"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18542 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 21:33:33 +00:00
blois@google.com 432aa0994c Renaming Element.dataAttributes to Element.dataset.
Element.dataset is the DOM version of the API, so we should have ours named the same.

Opened bug #8545 that we should optimize Element.dataset to use the native functionality if present.

BUG=5963

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18533 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:12:38 +00:00
efortuna@google.com 8da959b722 Reapply remove setInterval.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18531 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:08:45 +00:00
blois@google.com b4fa823142 Updating Element.scrollIntoView to be platform independent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18498 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 00:40:03 +00:00
blois@google.com cb8af97da5 Fixing IndexedDB Dartium Checked Mode tests
A type check for the Stream<Cursor> was failing on Dartium. Basically the helper method is intended to work for both Cursor and CursorWithValue, but it was creating a StreamController<Cursor>. Just removed the type so it works acceptably with both.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18486 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:55:25 +00:00
efortuna@google.com 3b0c52f47f Reverting setTimeout removal.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18478 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:06:31 +00:00
blois@google.com 8eb3de4f72 Fixing Indexed DB's CursorWithValue.value
CursorWithValue.value was not getting converted from a JS type to a Dart type.

BUG=8254

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18476 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 20:50:12 +00:00
efortuna@google.com 71a32af213 Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also
Stream-and-future-ified some of the Window methods that used to take callbacks.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18475 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 20:32:30 +00:00
blois@google.com 6735b55710 Removing deprecated events syntax.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18459 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 17:43:57 +00:00
blois@google.com da161d6ab1 Sample test for custom elements.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18421 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 00:30:20 +00:00
efortuna@google.com 32ede3b24f Remove Webkit prefix from all members and make experimental.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18351 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 23:02:59 +00:00
blois@google.com e780a771d3 Dartifying some IndexedDB APIs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18338 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 21:24:50 +00:00
efortuna@google.com 200870d42d Move RTCPeerConnection to correct location to generate the supported check for
dartium.
Review URL: https://codereview.chromium.org//12224101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18328 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 19:38:19 +00:00
blois@google.com 5fbee6d62f Fixes for TransitionEvent changes.
Two changes-
Removed the extends clause for _WebKitTransitionEvent which caused an issues with dartc.
Platform-independent changes for firing the event broke element_test on non-Chrome browsers. This test is actually quite useless.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18278 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 21:47:49 +00:00
blois@google.com d2802398c6 Fixing TransitionEnd event.
A number of related changes-

Bug 8340 is that we previously had WebKitTransitionEnd renamed to TransitionEnd, but had to remove that when Chrome added a new TransitionEnd.

Changes-
- Made WebKitTransitionEnd implement TransitionEnd and made it private.
- Added a test for the TransitionEnd event.
- Fixed the TransitionEnd event not working on non-Chrome browsers.
- Added support check for CSS transitions.
- Added annotations for CSS transition support.

BUG=8340

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18276 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 21:09:21 +00:00
blois@google.com f990128e6c Fixing typo in Node.remove
Was supposed to check that the node is not the same as its parent (as occurs with window), but it had a typo.

BUG=8295

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18268 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 19:44:42 +00:00
blois@google.com 53d00496f8 Converting XHR from onLoad to onReadyStateChange
Thought that onLoad was sufficient, but it's causing issues for loading files from file:// URIs (from a Chrome extension).

BUG=8401

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18233 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 21:11:41 +00:00
amouravski@google.com cd51673fce Removed some cruft from ApiDoc.
Review URL: https://codereview.chromium.org//12208017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18151 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 19:00:21 +00:00
lrn@google.com 2a7fb1c733 Added expand method to iterables.
Review URL: https://codereview.chromium.org//12188011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18123 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 09:48:05 +00:00
amouravski@google.com f05f2c77cc 'Moved all documentation from old .dartdoc files.'
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18111 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 03:04:59 +00:00
blois@google.com cc0c8e4c31 Fixing element_types_test/supported_object
Typo had it checking meter instead which was masking a FF failure.

BUG=8293

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18107 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 01:24:56 +00:00
efortuna@google.com 845e5ac77e Touch list test removal.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18092 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 23:46:29 +00:00
efortuna@google.com 7ef9e96865 Added constructor for touchlist.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18083 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 22:49:07 +00:00
lrn@google.com 0d91963a1c Added MappedListIterable/Iterator to implement map() on Lists.
Review URL: https://codereview.chromium.org//12094103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18036 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 09:30:36 +00:00
blois@google.com c128c06326 Removing dart:html APIs which were deprecated in M2.
This removes:
- innerHTML (changed to innerHtml)
- Element.elements (changed to Element.children)

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17999 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 20:51:17 +00:00
efortuna@google.com ce74c20fdb Add supported checks to the SVG library, and library cleanup.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17994 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 19:09:11 +00:00
blois@google.com 1d982e1198 Fixing dartium xhr issue
Dartium-only type check issue in XHR.request.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17960 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 01:12:24 +00:00
blois@google.com 1fb79cdb28 Resubmit "Adding ease-of-use methods to HttpRequest."
Fixing the dependent pkg/intl code.

This is the same as my previous CL, but with the modification to pkg/intl/lib/src/http_request_data_reader.dart

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17949 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 22:40:04 +00:00
blois@google.com 07200209ab Revert "Adding ease-of-use methods to HttpRequest."
This reverts commit 17942, it broke some pkg tests that I need a few more moments than I have right now to fix.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17944 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 21:10:46 +00:00
blois@google.com b1cc462093 Adding ease-of-use methods to HttpRequest.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17942 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 20:52:58 +00:00
efortuna@google.com 473bbc0487 "Reverting 17940"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17941 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 19:48:36 +00:00
efortuna@google.com cab5d4cc51 SVG Library cleanups and adding supported tag.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17940 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 19:38:00 +00:00
blois@google.com de9fbf0e90 Renaming dart:html library from 'html' to 'dart.html'
This should be invisible to end users, but basically brings dart:html in-line with the core libraries.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17929 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 17:25:55 +00:00
lrn@google.com 9b23dff467 Reapply "Rename mappedBy to map."
This reverts commit r17907.

TBR.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 15:12:56 +00:00
floitsch@google.com b1a118d5ce Revert "Rename mappedBy to map."
This reverts commit 17899.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17907 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 14:02:27 +00:00
lrn@google.com 0dc2f4b1ba Rename mappedBy to map.
Retain a deprecated mappedBy for now.
Change return type of mappedBy, skip and take on List to Iterable.

BUG= http://dartbug.com/8063
BUG= http://dartbug.com/8064
BUG= http://dartbug.com/6739
BUG= http://dartbug.com/7982

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17899 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 12:37:13 +00:00
blois@google.com 8cb540948f Adding supported checks for WebGL
Also fixed the getContext method to have the proper signature (bug 4883).

Also adding an easy accessor for context3d.

Not sure if additional Dartium changes will be needed, Anton?

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17860 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 17:45:13 +00:00
blois@google.com 67c686c584 Adding supported checks for touch event.
BUG=6519

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17797 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 18:58:18 +00:00
floitsch@google.com e6ae2deb0a Don't use ReversedListView from outside core and collection.
Review URL: https://codereview.chromium.org//12089023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17772 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 16:24:53 +00:00
antonm@google.com 5d50a592a3 Support overloaded constructors.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17754 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 12:18:28 +00:00