Commit Graph

3 Commits

Author SHA1 Message Date
sra@google.com d5bf145d29 Mark VoidCallback as a [Callback]
This will let Dart 0-arg functions be passed to
NotifcationCenter.requestPermission to fix Issue 830.

The change required merging interface extended attributes.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8935001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2373 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 03:11:50 +00:00
sra@google.com ea49561596 Mark parameters with [Optional=CallWithDefaultValue] as not optional.
This extended attribute was recently added to many WebKit IDL
operations to mark arguments that were accepted as missing.
Many are stupid legacy behaviour, like NodeList.item(index).
We don't want Dart to have such a broad API.

An example change is  http://repo.or.cz/w/webkit.git/commit/2f24f204931478c3f51dc9dbd6d5a05109917bdd

There will be some parameters marked as [Optional=CallWithDefaultValue] that
really should be optional.  We will discover those and have to whitelist them.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3531016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@89 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 04:30:51 +00:00
dgrove@google.com 4bc64b8c2b Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 04:52:33 +00:00