Commit Graph

793 Commits

Author SHA1 Message Date
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
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
antonm@google.com 962da4c790 Add Uint8ClampedArray to the list of typed arrays.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17203 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 13:34:57 +00:00
antonm@google.com b90237932f Changes to support Chrome roll.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17194 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 11:45:48 +00:00
amouravski@google.com 722cde16a7 Remove more classes and members by making them private.
Review URL: https://codereview.chromium.org//11934004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17175 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 23:58:58 +00:00
blois@google.com b97af1c4f3 Adding support for the MouseWheel event in Streams.
In order to test this I also needed to add a constructor for the MouseWheel event, which complicated things.

In general, wheel events are incredibly fragmented across browsers.

BUG=7919

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17172 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 23:06:35 +00:00
amouravski@google.com 9da44d6aed Change /// @docsEditable to @DocsEditable annotation.
Review URL: https://codereview.chromium.org//11970019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17171 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 22:51:43 +00:00
amouravski@google.com 038af964dc Changed @domName annotation in comment to full fledge @DomName annotation.
Review URL: https://codereview.chromium.org//11887006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17154 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 19:01:07 +00:00
antonm@google.com 740434e2a3 Move ugly hack out of the loop.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17143 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 16:15:17 +00:00
efortuna@google.com e1109ed077 Detect if webkitNotifications is available and remove webkit prefix (replaced
with "experimental").

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17105 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 23:54:58 +00:00
blois@google.com ce18845e42 Adding support checks for ApplicationCache.
Also fixed it to work on Opera.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17101 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 22:55:41 +00:00
amouravski@google.com c9e8cbc1d1 Removing HTML elements by making them private.
Review URL: https://codereview.chromium.org//11880036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17099 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 22:32:55 +00:00
blois@google.com 9b61abf6ee Adding types to dart:html's dartium files where possible.
We were omitting parameter types more often than we should have been.

BUG=7529

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17098 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 22:28:51 +00:00
blois@google.com d3b9ed080e Removing the exclusion of all NamedNodeMap members as they were being used.
I opened bug http://code.google.com/p/dart/issues/detail?id=7916 to make NamedNodeMap internal.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17097 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 21:57:30 +00:00
blois@google.com 1ebf1939d8 Changing htmlrenamer to use DOM names rather than Dart names.
A number of issues-
- Changed entries to be keyed off of DOM names (like the rest of our lists)
- Fixed up incorrectly named entries (a couple of typos in member names)
- Added support for the Class.* catch-all. Cases were using it, but it wasn't actually supported.
- Fixed up static const members not being suppressed
- Removed entries which are no longer occurring (after validating that they are correct).
- Added logging to help keep the lists up to date.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17093 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 21:04:10 +00:00
amouravski@google.com 7291e60d30 Removing dependency on dart binary from go.sh.
This at the same time kills all of the generated HTML lib documentation.
This documentation will be restored when the new HTML JSON docs are done.
ETA: 2 weeks

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17086 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 20:06:45 +00:00
antonm@google.com 5872442f32 Use proper default values for flags.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17052 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:17:27 +00:00
blois@google.com a152bc270c Adding support checks for FileSystem APIs and making APIs not webkit-specific.
This is an updated version of https://codereview.chromium.org/11856014/ which was failing because the test was causing a timeout when file APIs are not supported.

The first patch is the original, second is the updated version.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17037 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:53:22 +00:00
blois@google.com a4977979c4 Adding streams to dart:html.
This exposes all DOM events as streams. This keeps the current DOM event syntax as well, I'd like to make sure this API is stable before deprecating the old syntax, then we'll remove it a while after that.

I made an initial stab at getting the event types correct for the streams, though it's not documented very well and frequently inconsistent between browsers. Hopefully it's close, and I imagine there will be changes to come.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17028 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:19:28 +00:00
blois@google.com fa191811a7 Revert "Adding support checks for FileSystem APIs and making APIs not webkit-specific."
This reverts commit 16987.

TBR=efortuna
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16995 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:56:13 +00:00
blois@google.com 638568dc80 Adding support checks for FileSystem APIs and making APIs not webkit-specific.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16987 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 21:48:27 +00:00
blois@google.com e28e124ef0 Adding supported checks and flags to window.performance.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16986 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 21:30:23 +00:00
amouravski@google.com ba1f89e2b0 Fix for go.sh breaking because the dart binary in /testing hasn't been updated.
Review URL: https://codereview.chromium.org//11825012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16937 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 22:54:16 +00:00
amouravski@google.com bfb624a5a9 Reverted https://codereview.chromium.org/11734022
Review URL: https://codereview.chromium.org//11783102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16933 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 21:11:18 +00:00
amouravski@google.com 81f2d3d70a Fixed build break. Oops.
Review URL: https://codereview.chromium.org//11821058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16931 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 18:39:55 +00:00
amouravski@google.com acb7073519 Added simple functionality to remove interfaces from HTML lib.
Includes one example removed interface for good measure.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16929 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 18:21:56 +00:00
antonm@google.com 8a23b874b7 Next step in overload dispatcher refactoring.
R=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 12:18:21 +00:00
antonm@google.com dae2d52af7 Nuke custom factory providers.
R=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16917 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 12:11:59 +00:00
antonm@google.com 4598eaead3 No need in require_v8_scope flag any more.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16913 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 11:24:26 +00:00
blois@google.com f2684ae979 Adding support checks for WebSocket.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16883 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:08:15 +00:00
blois@google.com 12dbb6aa18 Fixing Element.matches to be cross-platform and follow latest spec.
BUG=4401

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16829 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 01:30:44 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
amouravski@google.com e6cbc6ef77 Removed all the deprecated attributes.
Review URL: https://codereview.chromium.org//11761024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16618 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 22:52:59 +00:00
amouravski@google.com 4b6a0d9a8e Sorted htmlrenamer.
Review URL: https://codereview.chromium.org//11734024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16616 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 22:35:14 +00:00
blois@google.com eb74d2868d - Adding supported flags to web components types
- Adding support annotations to web components types
- Removed webkit prefix from Element.createShadowRoot

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16594 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 02:25:17 +00:00
blois@google.com 84d87ac1e1 Fixing ArrayBuffer et al on IE.
- Added ArrayBuffer.supported check to see if typed arrays are supported.
- Added annotations to ArrayBufferView to indicate platform support.
- Updated tests to check for support.
- Added polyfill for ArrayBuffer.slice to allow more tests to pass.
- Fixed DataView on IE.
- Fixed class annotations not being emitted on Dartium.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16592 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 02:06:00 +00:00
antonm@google.com 91cc0fb62e Start unification of overload dispatcher generation.
Refactor checks generation and share it across backends.

R=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16570 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-29 12:03:02 +00:00
antonm@google.com 2537279745 Generate static factories with optional arguments.
R=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16568 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-29 09:42:48 +00:00
blois@google.com 910e7b04fb Fixing up history test to pass properly on supported platforms.
The primary problem was that on some browsers the state change doesn't take effect until the popState event has been called, so I added a check for that.

Also added a support flag for IE9.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16562 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 23:23:00 +00:00
efortuna@google.com 01fb2bbc86 Moved most of html lib generating scripts into tools.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16557 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 22:26:48 +00:00