Commit Graph

278 Commits

Author SHA1 Message Date
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 94e75dfda4 Renaming WebGLVertexArrayObject
This one is special cased and skips the bulk prefix removal.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20920 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-04 16:00:11 +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 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
efortuna@google.com 0109262fd2 Rename RtcdtmfSender class.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20298 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 22:51:24 +00:00
efortuna@google.com de98abfabf Remove lineDash field in favor of gettors/settors.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20237 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 20:35:40 +00:00
blois@google.com f9edfc6e84 Fixing go.sh occasionally putting types into incorrect libraries.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20226 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 18:07:14 +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
efortuna@google.com b2594b0111 Fix up static analysis errors introduced by Futures CL.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20120 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:06:10 +00:00
amouravski@google.com ad74dd0131 Added the CanvasImageSource interface, which all types that a canvas can draw
with drawImage implements.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20108 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:54:50 +00:00
blois@google.com 30764d4a5b Was benchmarking the differences between document.query and using the native DOM methods when available, and document.query is significantly worse in almost all scenarios.
Our current document.query can be optimized about 2x by caching the RegExps being used, but this is still not enough to get close to what they should be.

We special-cased a couple of queries to optimize those, but it appears that the browsers are optimizing those now as well and our optimizations are getting in the way, overall.

From my tests so far, this CL brings a speed improvement to document.query for all scenarios except for the name test:
document.queryAll('[name="test"]') which takes a fairly significant performance hit (runs close to 1/2 speed with this CL). This is mitigated by exposing getElementsByName which if used brings a 2x performance gain over queryAll.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19831 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:39:38 +00:00
efortuna@google.com 51701cecb6 Futureify requestFileSystem in WorkerContext.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19829 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 23:24:24 +00:00
blois@google.com 118fa93da7 BUG=
Review URL: https://codereview.chromium.org//12596004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19804 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 16:40:01 +00:00
amouravski@google.com 792ca95fa5 Revert "Revert "Update context2d.arc to take optional anticlockwise parameter""
Fixed checked mode test failures.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19747 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:33:37 +00:00
blois@google.com df12fc3a5f Converting Element.client*, offset* and Screen.avail* over to Rects
Converting more APIs over to exposing as Rects.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19702 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 18:12:16 +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
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 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 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
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 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 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
efortuna@google.com d7057b2d8c Reapply setTimeout change.
This CL is identical to 18555. The reason it will  work now is the corresponding
dartium change has been checked in.

TBR-blois

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18562 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 07:40:51 +00:00
kustermann@google.com 6e15e3eff7 Revert "Reapply remove setTimeout, take 3."
Review URL: https://codereview.chromium.org//12207198

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18559 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 04:25:18 +00:00
efortuna@google.com adf0fadd0d Reapply remove setTimeout, take 3.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18555 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 02:42:13 +00:00
efortuna@google.com 2b86a542a3 "Reverting 18531"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18542 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 21:33:33 +00:00
blois@google.com 432aa0994c Renaming Element.dataAttributes to Element.dataset.
Element.dataset is the DOM version of the API, so we should have ours named the same.

Opened bug #8545 that we should optimize Element.dataset to use the native functionality if present.

BUG=5963

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18533 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:12:38 +00:00
efortuna@google.com 8da959b722 Reapply remove setInterval.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18531 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:08:45 +00:00
blois@google.com b4fa823142 Updating Element.scrollIntoView to be platform independent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18498 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 00:40:03 +00:00
efortuna@google.com 3b0c52f47f Reverting setTimeout removal.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18478 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:06:31 +00:00
efortuna@google.com 71a32af213 Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also
Stream-and-future-ified some of the Window methods that used to take callbacks.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18475 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 20:32:30 +00:00
blois@google.com 1b01a2f5a0 Making NamedNodeMap private
It's an internally used class which we wrap for all public APIs.

BUG=7916

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18417 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 00:00:18 +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
blois@google.com e780a771d3 Dartifying some IndexedDB APIs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18338 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 21:24:50 +00:00
blois@google.com bf6831ecdd Removing MouseEvent.x & y
They are non-standard and not supported on FireFox.

BUG=7826

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18293 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-09 00:56:02 +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
blois@google.com 15a2c6d91f Re-submit of 12213058 to fix CharacterData.remove
Original was hanging on Dartium as it was missing useHtmlConfiguration in the test.

patch from issue 12213058

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18237 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 23:38:37 +00:00
blois@google.com eed368b8f0 Revert "Fixing CharacterData.remove not working on FireFox."
This reverts commit 18201.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18202 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 01:49:30 +00:00
blois@google.com 72753e01e1 Fixing CharacterData.remove not working on FireFox.
CharacterData was overriding remove, but was not supported on FF, so just removed the override.

BUG=7173

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18201 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 01:13:53 +00:00
antonm@google.com 0b7b291246 Changes for the roll.
TBR=blois@google.com,efortuna@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18132 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 11:47:43 +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
efortuna@google.com ce74c20fdb Add supported checks to the SVG library, and library cleanup.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17994 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 19:09:11 +00:00