Commit Graph

248 Commits

Author SHA1 Message Date
antonm@google.com 5b9d62c9a9 Migrate to new indexed getter marking scheme.
TBR=blois@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22995 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:52:52 +00:00
sra@google.com 5a2d284a38 Revert "Revert "dart2js native mixin application should extend 'Interface', not 'Object'""
Review URL: https://codereview.chromium.org//15007011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22610 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-11 02:29:49 +00:00
sra@google.com e413e4ef0c Revert "dart2js native mixin application should extend 'Interface', not 'Object'"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22604 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 22:40:09 +00:00
sra@google.com a24c4034b8 dart2js native mixin application should extend 'Interface', not 'Object'
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22602 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 22:13:51 +00:00
blois@google.com d8eecf70f8 Explicitly implementing some DOM iterable APIs for performance
The move to mixins severely regressed dart2js DOM performance, this patches it some while work continues.
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22575 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 23:31:19 +00:00
jmesserly@google.com 9005b278e7 Implement Model-Driven-Views spec for Dart
This has code ported from a few different sources:
* a port of https://github.com/toolkitchen/mdv polyfill
* a port of the observable layer:  https://github.com/dart-lang/web-ui/tree/master/lib/observe
* a port of list change summary: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js

The observePath/PathObserver code is written from scratch, but inspired by change_summary. I tried to keep it simpler; it does not support dirty checking. There's no good way to do that until we get dart:mirrors.

R=floitsch@google.com, sigmund@google.com

Committed: https://code.google.com/p/dart/source/detail?r=22561

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22570 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:39:03 +00:00
jmesserly@google.com 1cef1fbc55 "Reverting 22561"
need to investigate test failures

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22562 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:43:30 +00:00
jmesserly@google.com bf4f12c62b Implement Model-Driven-Views spec for Dart
This has code ported from a few different sources:
* a port of https://github.com/toolkitchen/mdv polyfill
* a port of the observable layer:  https://github.com/dart-lang/web-ui/tree/master/lib/observe
* a port of list change summary: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js

The observePath/PathObserver code is written from scratch, but inspired by change_summary. I tried to keep it simpler; it does not support dirty checking. There's no good way to do that until we get dart:mirrors.

R=floitsch@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22561 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:29:14 +00:00
blois@google.com 75770524fa Changing metadata lookup to always use interface.id
We had some discrepancies where interface lookup was using interface.doc_js_name but member lookup was using interface.id.

Standardized on interface.id.

Also updated the @DomName annotation to always use the JS interface name, which should help with MDN fallback documentation.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22556 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 18:41:07 +00:00
blois@google.com 68defad6ae Testing & supporting new HTMLTemplateElement
This went into Chrome 26 stable, so exposing it in Dart w/ proper constructor, tests and supported flags.

BUG=9696
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22513 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 16:15:12 +00:00
blois@google.com 0c48687c86 Updating DOM code to use list mixins
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22512 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 15:45:30 +00:00
blois@google.com a3feae2cc8 Fixing Location.origin to work on non-WebKit browsers.
BUG=10162
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22486 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 00:08:23 +00:00
blois@google.com 72cf63c068 Refactoring DOM annotations and comment generation, adding DOM API triage list
This pulls the annotation and comment code out of generator.py and into a Metadata class, which is also tracking new APIs from the IDLs.

Right now the API triage list is being updated when new members appear, but is not adding any metadata to the Dart APIs. Of note for the triage list is that there are currently 437 untriaged members- these are all of the APIs which have either been introduced, renamed or moved in the past week.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22193 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 18:35:30 +00:00
antonm@google.com 12d5e65894 Chrome roll.
TBR=ager@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21967 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:02:30 +00:00
ager@google.com 431954b584 Rename dart:typeddata to dart:typed_data.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
ager@google.com 7f79491c06 Move to new dart:typeddata types
Mads: if you land this, please rerun go.sh from tools/dom/scripts to regenerate html_dart2js.dart.  I didn't include it here to make this patchable.

Stephen: I still need to run the perf tests we talked about to sanity check.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21789 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 08:22:51 +00:00
vsm@google.com ca7b684f04 Add Supported class to dart:html
This is only used by typeddata for now.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21717 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 05:54:02 +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
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
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
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 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
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
blois@google.com 50e1cf4927 Adding web_gl library.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20833 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 00:45:20 +00:00
antonm@google.com b162613b8b Support for callbacks on ScriptProcessNode.
R=efortuna@google.com,podivilov@chromium.org
BUG=9094

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20280 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 18:12:20 +00:00
amouravski@google.com 85c959e6c3 Update drawImage to create more fast paths.
Review URL: https://codereview.chromium.org//12774014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20256 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 22:53:19 +00:00
efortuna@google.com 5d6e0608f7 Reapply making ScriptProcessorNode not an EventTarget.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20180 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 22:18:25 +00:00
efortuna@google.com c4437b9274 Reapply the expanded names with the correct form of requestFileSystem on the
test.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20136 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-16 01:02:25 +00:00
efortuna@google.com 26c5c48fe2 Revert 20127
TBR

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20133 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-16 00:14:27 +00:00
efortuna@google.com 3e1f5ce451 Expanded map options to named parameters.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20127 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:46:13 +00:00
blois@google.com 3dc9e79521 Consolidating platform code into dart:html_common
Basically a number of our platform checks are only accessible from dart:html and not other libs. Moved Device class over to html_common and added more platform logic which was distributed elsewhere.

Also fixing up Device to cache the platform checks.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19833 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:49:27 +00:00
efortuna@google.com 58b10f811e Reapply Futureification.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19590 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 00:13:57 +00:00
efortuna@google.com 60a5ed7215 "Reverting 19586"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19587 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 22:43:47 +00:00
efortuna@google.com 18f08c3a4c Future-ify All the methods!
(with a few exceptions we've planned).
Also added some tests to test these apis.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19586 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 22:32:54 +00:00
blois@google.com edb2b3c697 Revert "Revert "Converting dart:html to use DateTime rather than Date.""
Re-submitting change to use DateTime rather than Date.

I'm just disabling the new tests I added since they're failing on Dartium. Opened a bug tracking the Dartium and tests changes.

This means that dates are broken on Dartium, but they were broken everywhere before this change.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19325 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 17:34:40 +00:00
blois@google.com 4698696514 Revert "Converting dart:html to use DateTime rather than Date."
This reverts commit 19107 because it broke Dartium.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19108 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 03:16:01 +00:00
blois@google.com bc54cc3f32 Converting dart:html to use DateTime rather than Date.
We had been exposing JS Date objects as Dart Dates, but it appears to never actually worked. Switched over to DateTime and added a converter for it.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19107 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 02:57:31 +00:00
blois@google.com 70a105d262 Fixing web_sql SqlResultSetRowList row accessor.
Basically the JS generated code is using indexed getters even when they are not available and alternate methods should be used.

BUG=8666

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19055 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 16:59:11 +00:00
blois@google.com ee0477df38 Adding supported checks and annotations to Crypto API.
BUG=8703

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18985 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 17:39:08 +00:00
blois@google.com 0f8df99a73 Fixing WheelEvent.deltaMode polyfill after IDL update.
BUG=8713

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18904 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 18:32:19 +00:00
blois@google.com 51cd64501d Separating Web SQL into dart:web_sql.
These APIs are essentially deprecated as standardization as ceased for them, but they are also the only DBs available for mobile devices.

Separating out so it's easier to disable later.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18782 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 21:05:24 +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 1c3fc640c9 Adding monitoring to a number of DOM generation scripts.
Also fixing a bunch of issues uncovered.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18499 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 00:43: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
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
efortuna@google.com 0ea0b1ef63 Allow non-primitive-value dictionaries to be passed to constructors for html
types.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18320 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 18:31:20 +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
efortuna@google.com 5662b4726e "Reverting 18090"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18091 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 23:22:50 +00:00
efortuna@google.com 58a4c28f5c Remove webkit prefix and annotate with experimental tag.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18090 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 23:17:28 +00:00