Commit Graph

1657 Commits

Author SHA1 Message Date
blois@google.com 7936da179e Adding supported checks for Element.matches.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17670 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:29:05 +00:00
blois@google.com 01ede06509 Adding supported checks to websql.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17668 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:18:04 +00:00
blois@google.com 51dce2b072 Adding supported checks for CssMatrix and Point.
Also renaming Point to DomPoint to avoid any potential clashes with a future Point class.

I'm also trying to get a Point class in dart's SDK, once this is added then DomPoint should be removed.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17667 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 23:13:08 +00:00
amouravski@google.com 7d244f8eba Fixed some bugs in dom docs and recovered documentation of Canvas stuff.
Review URL: https://codereview.chromium.org//12087003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17665 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 22:59:26 +00:00
amouravski@google.com 87e86c1f8d Second half of HTML json docs. This reads the json file and inserts the docs.
The format should match what was hand-written, but the order of annotations may
have changed. This does not effect anything, but it's worth noting.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17649 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 19:24:25 +00:00
johnniwinther@google.com f02c12f3c3 Private libraries used.
Review URL: https://codereview.chromium.org//11973006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17634 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 09:05:22 +00:00
amouravski@google.com 33e91c55be Changed how Experimental annotation works. No longer is a constructor.
Review URL: https://codereview.chromium.org//12041090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17619 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 23:50:59 +00:00
blois@google.com 732d362a32 Adding supported checks for HttpRequestProgressEvent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17612 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 23:03:14 +00:00
amouravski@google.com d2a79c9bdd First half of the new HTML json docs.
This half produces the JSON file by going through each of the HTML libraries
and pulling out the @DomName annotations as keys for the map.
This means that even though member names may change, the map still works.

Currently creates a blank json file because I have not hooked up the other half
that puts the docs into the libraries to begin with.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17610 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 22:53:00 +00:00
blois@google.com 457e364487 Removing many Element APIs from DocumentFragment
Many Element APIs made no sense on DocumentFragment since it no longer derives from Element (as of M2).

BUG=7858

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17609 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 22:50:03 +00:00
blois@google.com d2aa044d2b Deprecating old DOM event APIs.
This also exposes EventTarget.dispatchEvent. We had discussed naming this as 'dispatch', but it seems a bit safer to use 'dispatchEvent' to avoid potential name conflicts.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17595 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 19:42:02 +00:00
blois@google.com 6ade3fc5c9 Adding test & annotations for popstatevent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17589 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 18:59:08 +00:00
blois@google.com 0b765012a4 Updating KeyboardEvent constructor to use named parameters.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17585 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 18:07:59 +00:00
blois@google.com 4047adfea6 Fixing bunch of analyzer issues in DOM libs.
Basic changes:
- missing references to collections-dev,
- missing implementation of abstract methods
- Couple of incorrect generic arguments (which cause ugly dart2js warnings for users)
- Removed more references to Collections

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17582 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 17:11:24 +00:00
floitsch@google.com ac3ad4cc81 Don't change Date to DateTime in JavaScript code.
Review URL: https://codereview.chromium.org//12033078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17580 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 16:43:43 +00:00
antonm@google.com d3596d3377 Simplify hack to suppress overloaded constructors.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17555 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:58:38 +00:00
floitsch@google.com fb7b9e3c5c Rename Date to DateTime.
BUG=http://dartbug.com/1424

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
lrn@google.com 09051ebf15 Fix bugs in GrowableList.remove*.
Add generic removeMatchingList functionality in IterableMixinWorkaround.

BUG=http://dartbug.com/8018, http://dartbug.com/8075

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17534 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 10:34:45 +00:00
antonm@google.com f68706e4c4 Initial work on ImageData.data.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17526 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 08:25:37 +00:00
antonm@google.com abb2499b5a Some more refactorings of overload dispatcher generation.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17522 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 07:51:18 +00:00
blois@google.com 51ed22e712 Adding supported flag to HashChangeEvent.
Also had to change the event type of the hashChange event as it is supported everywhere, but the type may or may not be a HashChangeEvent.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17507 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 22:22:28 +00:00
blois@google.com edf1d5149f - Changing event constructors to use named parameters.
- Making more parameters optional.
- Converting remaining init*Event calls to constructors.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17488 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 19:43:21 +00:00
blois@google.com 7834eba896 Removing @DocsEditable from classes we have darttemplates for.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17436 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 00:35:17 +00:00
blois@google.com c63ae60625 Adding supported checks to media events.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17431 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 22:50:18 +00:00
blois@google.com 299ec70b31 Adding supported checks & test for SpeechRecognition APIs.
This is a re-submission of https://codereview.chromium.org/12026032/, the problem was that Dartium does not allow factory constructors with the same name as members.

Had to rename Event.type constructor to Event.eventType.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17430 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 22:42:01 +00:00
blois@google.com b0e5d99712 Reverting 17420 "Speech recognition APIs" which broke dartium.
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17427 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 21:55:12 +00:00
blois@google.com 23b8686f50 Fixing Dartium build issue with speechrecognition API.
Dartium doesn't like params with same name as constructor.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17422 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 21:04:16 +00:00
blois@google.com a492a08eb2 Adding supported checks & test for SpeechRecognition APIs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17420 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 20:41:38 +00:00
antonm@google.com 2e73feb690 Minor unification with dart2js bindings.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17406 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 15:32:17 +00:00
floitsch@google.com 383dce1b4e Remove collection-dev from the html and js-helper library.
Review URL: https://codereview.chromium.org//11859037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17358 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 14:41:30 +00:00
blois@google.com 759e9b6706 Adding annotations to event streams.
I need to add supported annotations to some events, splitting out this part since it makes the other CL quite unwieldy.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17329 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 23:35:23 +00:00
blois@google.com 049efc4fe8 Fixing cleanup of dart:html annotation generation.
This is an update of https://codereview.chromium.org/11968047/

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17323 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 22:11:21 +00:00
blois@google.com ccd052a508 Fixup of reverted CL- Fixing up Navigator.getUserMedia.
- Fixes Navigator.getUserMedia to be cross-platform.
- Adds supported checks.
- Dartifies the API.

First patch is the original, second is the fix.

Issue was that I used = for separating named parameters, rather than : (but it works on dart2js!). I think this distinction is lame, and opened a bug that these should use the same separator.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17311 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 20:54:05 +00:00
blois@google.com 9cca892004 Revert "Fixing up Navigator.getUserMedia."
This reverts commit 17304. It broke dartium.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17306 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 19:17:48 +00:00
blois@google.com b9b0ffd533 Fixing up Navigator.getUserMedia.
- Fixes Navigator.getUserMedia to be cross-platform.
- Adds supported checks.
- Dartifies the API.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17304 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 18:55:17 +00:00
blois@google.com e78e8b1cc1 Stubbing out the initial library for Chrome application support.
This adds the core skeleton of Chrome application support with a sample function that allows creating a new window (in dart2js).

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17299 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 18:05:19 +00:00
floitsch@google.com 44a224926b Move list helper-classes from core to collection-dev.
Review URL: https://codereview.chromium.org//11983005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17293 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 17:02:46 +00:00
antonm@google.com a6222ed29e Remove now unused function.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17292 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 16:51:47 +00:00
antonm@google.com 56c3b90f06 Stop generating MutationCallback right way.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17290 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 16:35:36 +00:00
antonm@google.com e0f0682c01 Remove now unnecessary define.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17283 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 15:29:32 +00:00
lrn@google.com 0e934a631e Add methods to Collection.
Methods are:
- void add(E)
- void addAll(Iterable<E>)
- void remove(Object)
- void removeAll(Iterable)
- void retainAll(Iterable)
- void removeMatching(bool test(E))
- void retainMatching(bool test(E))

They have been implemented for List and Set only.

Default implementations of removeX methods in Collections assume an efficient
remove method, which Lists won't have.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17257 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 10:13:51 +00:00
blois@google.com bda6df30df Revert "Fixing formatting of dart:html's dart2js annotations."
This reverts commit 11508.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17239 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 22:16:31 +00:00
blois@google.com b6f3ecaa2c Fixing formatting of dart:html's dart2js annotations.
Also unifying formatting of attributes.

BUG=7808

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17238 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 22:12:36 +00:00
amouravski@google.com bd8be55838 Remove the old hand-written HTML doc format, which has not worked for months.
Personal TODO has been made to extract the useful bits of documentation from
this CL into the new hand-written HTML doc format.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17231 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 18:54:18 +00:00
blois@google.com 764b68db02 Removing redundant event streams.
Basically removing the event stream providers from Document and Window for events which are also declared on Element. The streams themselves are still exposed, just that a single provider is now on Element.

Also removed MediaElement events from Window, as they are duplicative and should be accessed via the MediaElement provider.

I was also hoping that this would have some JS size benefits, but I'm not seeing any.

BUG=7860

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17229 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 18:29:00 +00:00
antonm@google.com d6daea40d4 Remove debug print.
TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17221 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 16:34:03 +00:00
antonm@google.com fc0633a4ba Adjust to recent move.
TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17220 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 16:26:39 +00:00
floitsch@google.com 6dcfe3ca41 Create IterableMixinWorkaround and move most of the Collections methods there.
Committed: https://code.google.com/p/dart/source/detail?r=17207
Reverted: https://code.google.com/p/dart/source/detail?r=17210

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17213 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:36:40 +00:00
floitsch@google.com 7ca573ae90 Revert "Create IterableMixinWorkaround and move most of the Collections methods there."
This reverts commit 17207.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17210 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:19:47 +00:00
floitsch@google.com e0459f6d6e Create IterableMixinWorkaround and move most of the Collections methods there.
Review URL: https://codereview.chromium.org//11971016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17207 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 14:01:52 +00:00