Commit Graph

1657 Commits

Author SHA1 Message Date
lrn@google.com bead146749 Renamed StreamSink to EventSink. Renamed signalError to addError.
Review URL: https://codereview.chromium.org//12610006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19683 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:31:19 +00:00
blois@google.com dad0804d7b Making Indexed DB's cursor stream not auto-advance if no subscribers
BUG=8552

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19667 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 01:37:02 +00:00
blois@google.com 2fcae75253 Exposing Point & Rect types
This exposes ClientRects as Rects and exposes UIEvent.clientX/Y properties as Points.

This also deprecates the UIEvent.clientX/Y properties.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19659 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 22:17:04 +00:00
blois@google.com b784897b97 Adding helper script to make it easy to run common DOM tasks.
I'm not much of a python person, so there's probably cleaner ways of doing some of this. It's primarily a script that I've been using locally for quite a while, but seems like it'd be useful for others as well.

It's not intended to cover every single scenario, just make the common ones easy. It prints out the commands it executes so if there is a problem, hopefully you can easily debug it.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19648 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 18:18:45 +00:00
blois@google.com 40e5bd7d28 Adding Node.insertAllBefore
Also addressing some late feedback from Node.nodes.addAll.

BUG=8882

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19593 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 00:43:53 +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
blois@google.com a94084913c Fixing a number of dart:html analyzer issues
A couple of real bugs, rotten code and deprecated APIs.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19588 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 22:46:34 +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 202fd00fab Adding Point & Rect primitives
For making DOM APIs more user-friendly, a number of them should be exposed as points and rects. Adding basic classes with a core set of useful methods.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19577 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 19:20:01 +00:00
blois@google.com 665339880a Renaming CSS primitive types to have CSS prefixes.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19504 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 19:02:51 +00:00
blois@google.com 0ae18dedcd Updating annotations for shadow dom types.
Needed to add an annotation for CssHostRule and updated Chrome supported version (it was a flag on Chrome 25, is now on by default in Chrome 26).

BUG=8239

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19442 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 01:13:11 +00:00
floitsch@google.com d91bca2813 Add List.asMap().
Review URL: https://codereview.chromium.org//12391046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19399 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 16:57:52 +00:00
lrn@google.com f4300b84a2 Make List.from and Iterable.toList default to not growable.
Review URL: https://codereview.chromium.org//12401002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19391 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 14:55:40 +00:00
antonm@google.com 5e96e05745 Support DateTime conversions.
R=ager@google.com,blois@google.com,podivilov@chromium.org
BUG=8836

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19333 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 18:23:58 +00:00
antonm@google.com b3d61988af Implement necessary support.
R=ager@google.com,blois@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19329 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 17:50:12 +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 f310d35ea4 Speeding up Node.nodes.addAll
During profiling of the Dart API app I noticed quite a non-trivial amount of time and garbage in nodes.addAll. This case can be optimized for the case where we know that both lists are node lists.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19268 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 00:03:35 +00:00
ager@google.com d984c7dd1d Remove custom remove method from HTMLSelectElement in dart.idl. The members are suppressed in htmlrenamer.py and it is confusing to have them in dart.idl just to be suppressed somewhere else.
R=antonm@google.com,blois@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19242 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 16:07:13 +00:00
blois@google.com d4d1228ce9 Cleaning up the TableElement API
Basically just converting to more proper types for a number of the APIs.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19175 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 21:47:09 +00:00
antonm@google.com 76ac9cdf05 WebKit IDL roll.
TBR=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19158 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 17:50:11 +00:00
antonm@google.com 04082f2d09 Proper support for typedefs.
And allow them in WebKit IDLs.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19146 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 15:48:26 +00:00
antonm@google.com a118f08856 Chrome roll 181864->184590.
TBR=ager@google.com,podivivlov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19129 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 12:53:40 +00:00
lrn@google.com 08c3df394d Fix bug in html library.
Review URL: https://codereview.chromium.org//12319141

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19114 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 09:00:46 +00:00
lrn@google.com 6b4f4b1bab Change new List(n) to return fixed length list.
Deprecate List.fixedLength, add List.filled.

Make Iterable.toList and List.from take "growable" argument,
defaulting to false.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19112 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 08:45:04 +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
amouravski@google.com 89b1a828db Added library comment and warning message to web_sql.
Review URL: https://codereview.chromium.org//12334098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19092 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 22:36:55 +00:00
blois@google.com 8c0eeaa152 Removing an unnecessary throw for JS interop.
Was hitting this debugging some code using JS interop, seems like a simple cleanup.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19090 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 22:26:21 +00:00
amouravski@google.com 5d07be1a6c Added Web SQL to the docs.json generation.
Review URL: https://codereview.chromium.org//12334086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19062 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 17:54:28 +00:00
amouravski@google.com 81692cf82d Fix copy_dart to correctly put library comments BEFORE the library directive.
Review URL: https://codereview.chromium.org//12315102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19059 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 17:35:58 +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
amouravski@google.com 4e66d9d8fe Remove old json files that aren't doing anything.
Review URL: https://codereview.chromium.org//12310124

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19029 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 03:28:00 +00:00
blois@google.com d9b1c12f4c Fixing CssStyleDeclaration to not throw exceptions for unsupported values.
Only occurs on IE9, but unsupported values should fail silently.

BUG=8588

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19024 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 00:48:23 +00:00
blois@google.com 0d2c7ea397 Fixing Indexed DB supported check.
The test was incorrectly passing on platforms which do not support IndexedDB.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18998 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 20:59:12 +00:00
blois@google.com bc4f90bd09 Dartifying remainder of Index DB APIs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18992 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 18:59:34 +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
lrn@google.com 3c0ac360e7 Remove deprecated string features.
Make String.codeUnits return a List.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18960 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 10:48:09 +00:00
benwells@google.com 088ae22e82 Update idlsync.py to pull in dependencies required for chrome api generation.
BUG=None

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18955 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 03:52:06 +00:00
sra@google.com e713872550 Annotations for WebGLRenderingContext.getParameter
Review URL: https://codereview.chromium.org//12315064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18938 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-23 01:09:34 +00:00
blois@google.com 5b0fea791f Removing DateTimeInputElement.
This has been removed from Chrome and it sounds like it's being removed from the spec.

Chromium bug- https://code.google.com/p/chromium/issues/detail?id=175080

BUG=8709

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18910 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 19:29:20 +00:00
sra@google.com a979ddd7b5 Make quotes in support code match rest of code
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18905 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 18:40:01 +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
ager@google.com 8594f56bbf Update WebKit idl files after chrome roll
R=antonm@google.com,blois@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18889 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 13:15:56 +00:00
ager@google.com 51527e2115 WheelEvent template changes for chrome rool.
R=antonm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18881 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 11:52:14 +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 8595b8bed2 Using an ordered set for Element.classes.
BUG=6946

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18727 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 21:37:32 +00:00
blois@google.com d8265d81a5 Fixing Geolocation on Firefox
For position, Firefox is returning an object which doesn't map nicely, so added a wrapper for that.

Also cleaned up the APIs to make them more dart-friendly.

BUG=7547

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18723 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 21:18:36 +00:00
amouravski@google.com cfff419935 Changed DO NOT EDIT disclaimer on generated DOM libraries.
This now accounts for the new docs tool.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18712 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 18:51:28 +00:00
floitsch@google.com ecce8a6293 Remove deprecated Strings class.
Review URL: https://codereview.chromium.org//12295014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18686 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:57:03 +00:00