blois@google.com
ee6c666069
Fixing TransitionEvents after IDL roll.
...
We had mapped WebkitTransitionEvent to be TransitionEvent, but now WebKitTransitionEvent has been removed from the IDL.
BUG=
Review URL: https://codereview.chromium.org//14046033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21654 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 19:54:39 +00:00
floitsch@google.com
466d6670c1
Refactor Future constructors.
...
BUG=
Review URL: https://codereview.chromium.org//14070010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com
13c927bb8c
Fix model-tree-observer in html.
...
Review URL: https://codereview.chromium.org//14018022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21507 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:57:53 +00:00
floitsch@google.com
6837aa221c
Fix bad html library.
...
Review URL: https://codereview.chromium.org//14200026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21502 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:37:10 +00:00
floitsch@google.com
62d413ec91
Remove StreamController.broadcast.
...
Review URL: https://codereview.chromium.org//14136004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21499 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:08:17 +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
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
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
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
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
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
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
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
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
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
blois@google.com
8d97ac7099
Resubmit of:
...
Flipping the direction of WheelEvent.deltaX/Y to follow standards
We're trying to follow the W3C spec for WheelEvent, but the standard has the direction in the opposite direction from what we have it now.
BUG=6215
BUG=
Review URL: https://codereview.chromium.org//13571003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20946 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 00:44:02 +00:00
blois@google.com
7a46dae8b9
Revert "Flipping the direction of WheelEvent.deltaX/Y to follow standards"
...
This reverts commit ottp://code.google.com/p/dart/source/detail?r=20879.
Broke Dartium & FF, will follow up with fix shortly.
BUG=
Review URL: https://codereview.chromium.org//13567002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20880 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 18:12:09 +00:00
blois@google.com
2d63fad211
Flipping the direction of WheelEvent.deltaX/Y to follow standards
...
We're trying to follow the W3C spec for WheelEvent, but the standard has the direction in the opposite direction from what we have it now.
BUG=6215
Review URL: https://codereview.chromium.org//13465021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20879 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 17:52:15 +00:00
lrn@google.com
3b13f62170
Remove addLast from List.
...
The List.addLast method has been deprecated for quite a while.
A recent change removed it from the interface, but left the
implementation in place (which caused some errors from the analyzer).
This removes it completely.
Review URL: https://codereview.chromium.org//13528004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20857 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 12:52:19 +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
blois@google.com
92be3ab22e
Revert "Optimizing createElement_html"
...
This reverts commit http://code.google.com/p/dart/source/detail?r=20732
TBR
BUG=
Review URL: https://codereview.chromium.org//13393008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20733 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-01 16:56:05 +00:00
blois@google.com
ac244aa9c0
Optimizing createElement_html
...
BUG=8518
Review URL: https://codereview.chromium.org//12886043
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20732 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-01 16:21:58 +00:00
efortuna@google.com
804fcbe9f6
Revert the revert.
...
BUG=
Review URL: https://codereview.chromium.org//12707003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20416 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 21:04:29 +00:00
efortuna@google.com
ad7c3f9561
"Reverting 20336"
...
BUG=
Review URL: https://codereview.chromium.org//12827032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20409 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 19:38:28 +00:00
blois@google.com
639cab021b
Changing the IDL DartName= annotation to only operate on a per-member basis, allowing overloaded methods to be renamed independently.
...
This also includes a change to rename one overload of CanvasRenderingContext2D.createImageData as a test case.
The remaining changes are to address differences between old semantics of DartName and new semantics, as well as some ordering differences of generated code.
BUG=
Review URL: https://codereview.chromium.org//12964003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20355 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 21:50:15 +00:00
blois@google.com
8e5fc0091b
Undeprecating some Element position APIs.
...
BUG=
Review URL: https://codereview.chromium.org//12747009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20347 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 20:54:23 +00:00
blois@google.com
575ee1430c
Adding CORS support to HttpRequest
...
It's a fairly complicated polyfill to support IE9 CORS with 1 star and not something that jquery does out of the box.
BUG=6016
Review URL: https://codereview.chromium.org//12845008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20336 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 17:54:55 +00:00
blois@google.com
b5f7c44836
Fixing documentation for HttpRequest
...
The sample code wasn't updated from Future conversion.
BUG=8461
Review URL: https://codereview.chromium.org//12834005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20330 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 17:04:15 +00:00
efortuna@google.com
5f94cbc6af
Remove last of webkit prefixes from HTMLDocument.
...
BUG=
Review URL: https://codereview.chromium.org//12678013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20296 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 22:07:04 +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
aedcf9eb32
Enable getUserMedia to take constraints for its parameters.
...
BUG=
Review URL: https://codereview.chromium.org//12695014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20245 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 21:07:24 +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