Commit Graph

1657 Commits

Author SHA1 Message Date
antonm@google.com 92e80c8404 Enable navigator content utils.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21488 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:01:29 +00:00
antonm@google.com 021a1ef818 Triage feature defines.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21487 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:45:07 +00:00
antonm@google.com 0ef5bc0c64 Enable canvas features.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21485 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:34:53 +00:00
antonm@google.com 6283a48f86 Distinguish between common and dart2js specific monitored.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21483 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:25:30 +00:00
antonm@google.com 0aa3e138a9 Cleanup now unused event names.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21480 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:19:08 +00:00
floitsch@google.com f553392322 Change StreamController constructor.
Review URL: https://codereview.chromium.org//14196003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21472 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:34:26 +00:00
floitsch@google.com 1049521aaa Add setAll, insertAll, replaceRange and fillRange.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21471 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:25:21 +00:00
floitsch@google.com e2ee353940 Rename unsubscribeOnError to cancelOnError.
Review URL: https://codereview.chromium.org//14251013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21469 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:07:36 +00:00
floitsch@google.com 759a366cea Remove insertRange.
Review URL: https://codereview.chromium.org//13956006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21464 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:20:16 +00:00
floitsch@google.com 9bfc844930 Refactor removeRange.
Review URL: https://codereview.chromium.org//13872007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21462 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:10:23 +00:00
floitsch@google.com bebe3ac2cd Refactor List.setRange function.
Review URL: https://codereview.chromium.org//13863012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21452 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:52:29 +00:00
lrn@google.com bcaa04109e Move IterableMixinWorkaround to internal library.
From here we can remove it in stages after M4 without risking breaking
the VM, dart2js or the HTML library right now.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21443 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 12:34:44 +00:00
floitsch@google.com 07b02a845c Remove String.slice. Too much overlap with String.substring.
Review URL: https://codereview.chromium.org//13874008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21442 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 12:20:07 +00:00
floitsch@google.com 457dffa030 Add StreamSubscription.asFuture.
Review URL: https://codereview.chromium.org//14237002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21441 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 12:17:07 +00:00
antonm@google.com 06b08dae28 Enables necessary for Dartium.
TBR=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21422 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:58:36 +00:00
antonm@google.com 4fd23f8c65 Check for conditionals used.
There should be nor unused conditionals, nor
unknown ones.

R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21421 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:28:37 +00:00
antonm@google.com c2bd9ac62c Blacklist directories to be skipped while searching for IDLs.
Otherwise we risk missing newly added modules.

R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21365 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 15:42:12 +00:00
ajohnsen@google.com 044f0d02eb Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21338 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:34:52 +00:00
floitsch@google.com 285849c801 Change hasSubscribers to hasListener.
Review URL: https://codereview.chromium.org//14103010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21337 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:30:05 +00:00
whesse@google.com 266bada744 Remove use of Expect from test scripts and idlparser_test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21287 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 15:53:44 +00:00
floitsch@google.com aecbeabcac Implement getRange (returning an Iterable).
Review URL: https://codereview.chromium.org//14065011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21281 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 14:14:29 +00:00
lrn@google.com f41508d33b Added new version of reduce.
Removed min/max and uses of min/max.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21258 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 08:32:31 +00:00
blois@google.com 16ba7bbc02 Documenting misleading DataTransfer API.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21216 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:22:14 +00:00
ager@google.com 9bd8f2db46 Use name to sort IDB interfaces into the indexed_db library.
R=antonm@google.com,blois@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21214 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:10:21 +00:00
floitsch@google.com 62358bf5e2 Make default argument to Iterable.join be "".
Review URL: https://codereview.chromium.org//13945009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21193 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 11:28:32 +00:00
lrn@google.com d4fcf3067c Make _FrozenElementList generic. It's needed for some type checks.
Review URL: https://codereview.chromium.org//13919003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21190 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:28:54 +00:00
lrn@google.com ad2804cf73 Fix bug in previous commit.
Review URL: https://codereview.chromium.org//13860003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21188 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:18:40 +00:00
lrn@google.com 8d7d80ecf2 Remove some usages of IterableMixinWorkaround from HTML library.
I haven't found a way to remove the usages in
  immutable_list_mixin.darttemplate
yet, since it requires understanding the Python code using the template.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21187 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:03:41 +00:00
podivilov@google.com 8a04dcd9e4 Revert recent changes to dart.idl.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21186 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 08:22:14 +00:00
podivilov@google.com 468fc08f93 Fix the build with WEB_AUDIO disabled.
Make sure web_audio_DartResolver.cpp is generated even if WEB_AUDIO is disabled
because our gyps depend on it.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21182 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 08:01:28 +00:00
sra@google.com c3baf62826 More precise native type for context2D
Trims 3k off spirodraw

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21174 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 22:21:45 +00:00
lrn@google.com 6160e59850 Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection.
Users can now create lists easily by extending these classes, just
as they can create iterables by extending Iterable.

Reduce the dependency of IterableMixinWorkaround outside of core/collection
implementations. I plan to move IterableMixinWorkaround to _collection-dev
before M4.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21147 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 12:11:05 +00:00
sra@google.com 9882afba1d Tighten type of 'document' to HtmlDocument
reviewed as https://codereview.chromium.org/13686004/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21130 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 01:44:53 +00:00
blois@google.com 622022dcb3 Fixing SVGPaint constructor DartC error.
Had removed the constructor because it was no longer needed to call the base class, but it's actually needed for derived classes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21127 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 00:42:00 +00:00
blois@google.com 575512855b Fixing SVGColor DartC break
The base class for SVGColor was removed, but we still had an auto-generated constructor trying to call it, which broke dartc.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21124 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 23:49:16 +00:00
blois@google.com 8afa069ae4 These APIs were introduced in the CSS DOM 2 spec and have been removed from the CSS DOM 3 spec. We should remove them as well.
http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21121 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 23:25:11 +00:00
blois@google.com 93566b8a35 Making supressed DOM types abstract
This clears up a number of dart analyzer issues for the suppressed types.

Also making SVGGradientElement not be suppressed since it is used.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21111 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 20:45:32 +00:00
efortuna@google.com 5c0ae732b4 Add back localName and improve toString for Html nodes.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21105 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 19:29:10 +00:00
lrn@google.com 24e3c0bbb0 Reapply "Reduce usage of IterableMixinWorkaround"
Fix bug and recommit

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21049 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 08:07:39 +00:00
blois@google.com de3717f58c Fixing HtmlDocument overloads
This had a bunch of unnecessary/problematic redirections to the global document.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21018 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:57:20 +00:00
blois@google.com 21ce609108 Fixing up a number of go.sh warnings
Tables have been falling out of date with IDL changes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21016 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:39:27 +00:00
blois@google.com 3f82bebebe Fixing dartdoc generation.
Went out of date with my last CL.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21013 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:24:43 +00:00
blois@google.com ef7bf8964d Removing all Worker-related APIs
Need to revisit these once WebWorkers and Isolates are worked out.

BUG=8932

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21011 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:05:05 +00:00
efortuna@google.com a46b113afd Make html lists print a nice toString method.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21010 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:53:35 +00:00
efortuna@google.com ae82b45193 Rename context2d to context2D.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21006 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:16:48 +00:00
blois@google.com 4456d77285 Allowing Window.onBeforeUnload event to work properly.
There are a couple of issues here, fixing some of them, but not quite all.

Background- the beforeunload event is used to present a dialog to the user after they have clicked a window/tab close button, usually to indicate unsaved changes. This is effectively the only mechanism available to preempt the close action.

In WebKit, the user must return a string value from the beforeunload event and that string will be displayed in an alert dialog prompting the user if they are sure they want to leave the page.

In FireFox, IE & the W3C spec, the beforeunload event is of type BeforeUnloadEvent. The string used to prompt the user is specified by the 'returnValue' field. Furthermore, WebKit exposes 'returnValue' as a bool on Event, where the spec does not have it on Event at all.

With this change, a user can utilize the beforeunload event on all platforms:
  window.onBeforeUnload.listen((e) {
    e.returnValue = "foo!";
  });

BUG=2350

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21003 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 22:30:31 +00:00
antonm@google.com 115ff4b40b Map enums to strings.
R=blois@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20984 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 17:00:25 +00:00
floitsch@google.com bef8ebb5f6 Add Iterable.fold (and Stream.fold) which replace reduce.
For now this is just a copy. In a next step we will change the behavior of
`reduce`.

BUG= http://dartbug.com/9536

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:12:40 +00:00
antonm@google.com 613746189b Allow empty strings as enum values.
R=blois@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20977 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:00:21 +00:00
erikcorry@google.com 4e0db7cede Revert 20969: Reduce usage of IterableMixinWorkaround
R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20972 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 15:18:13 +00:00