Commit Graph

793 Commits

Author SHA1 Message Date
antonm@google.com 4fd23f8c65 Check for conditionals used.
There should be nor unused conditionals, nor
unknown ones.

R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21421 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:28:37 +00:00
antonm@google.com c2bd9ac62c Blacklist directories to be skipped while searching for IDLs.
Otherwise we risk missing newly added modules.

R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21365 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 15:42:12 +00:00
whesse@google.com 266bada744 Remove use of Expect from test scripts and idlparser_test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21287 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 15:53:44 +00:00
ager@google.com 9bd8f2db46 Use name to sort IDB interfaces into the indexed_db library.
R=antonm@google.com,blois@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21214 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:10:21 +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 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
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
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 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
antonm@google.com 115ff4b40b Map enums to strings.
R=blois@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20984 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 17:00:25 +00:00
antonm@google.com 613746189b Allow empty strings as enum values.
R=blois@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20977 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:00:21 +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 93f3ca932f Fixing some dart2js annotation issues in web_gl lib.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20835 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 00:59:28 +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 55b39086a5 Support nullable attributes and return types in Dartium.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20660 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-29 15:13:00 +00:00
antonm@google.com 6eb7f1eb90 Save all version control dirs.
TBR=ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20614 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 13:56:21 +00:00
ager@google.com 2c3d35ec54 Bring in new IDL files and generated code. Update the script that syncs the idl files to deal with the new third_party setup.
R=antonm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20378 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 13:22:29 +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
blois@google.com 30f857fa7f Adding support flags to Event.clipboardData
It's only supported by webkit, but it's not easy to check for support as it only works off of a paste operation invoked by the browser.

BUG=8975

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20297 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 22:49:00 +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 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
antonm@google.com 0eba171ced Make Float{32,64}Array implement List<double>.
R=ager@google.com,blois@google.com,vsm@google.com
BUG=9282

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20232 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 18:45:18 +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 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 66b399a31e Fix list syntax in python script.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20130 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-16 00:06:37 +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 1b585cb07b Attempting to remove ArrayBufferView.buffer penalty.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19939 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 15:38:30 +00:00
antonm@google.com f438ac1d31 Maintain proper signature_index.
R=ager@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19851 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 11:38:30 +00:00
antonm@google.com 72dd746b39 Ensure proper order of overload checks.
As dart:typeddata's class can implement both counterpart
of ArrayBufferView and of ArrayBuffer, always favour
treatment of an argument as an ArrayBufferView.

R=ager@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19842 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 09:04:38 +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
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
antonm@google.com 2cbf579f6d Mark ArrayBuffer and ArrayBufferView converters as custom.
R=ager@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19799 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 15:45:51 +00:00
antonm@google.com e67788f35f Temporary map ArrayBuffer/ArrayBufferView to dynamic.
For some amount of time we're going to allow both
DOM's and dart:typeddata implementations.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19797 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 15:19:57 +00:00
antonm@google.com 598ddebb91 Allow more objects to be treated as ArrayBuffer and ArrayBufferView.
Temporary ugly hack.  Eventually we'll just remap ArrayBuffer and
ArrayBufferView to the proper dart:typeddata types.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19794 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 14:36:00 +00:00
antonm@google.com 255995eee2 Map typed arrays to lists for now.
This is temporary while proper bindings to
typed data are in works.

R=ager@google.com,blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19783 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:36:31 +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