Commit Graph

32 Commits

Author SHA1 Message Date
podivilov@google.com ab071c11a4 DartCallback is now a DartIsolateDestructionObserver.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14130 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-26 12:16:55 +00:00
lrn@google.com a083c1a108 Removed IllegalAccessException and UnsupportedOperationException.
Both were converted to StateError.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14012 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 12:36:10 +00:00
antonm@google.com c0b6dd849e Get rid of Dynamic.
R=podivilov@chromium.org,kasperl@google.com
BUG=6187

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13958 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 12:56:44 +00:00
antonm@google.com bd7784b08b Get rid of ===/!===.
R=podivilov@chromium.org
BUG=6133

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13941 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 10:18:26 +00:00
vsm@google.com b9234ecc28 Use CheckSecurityForNode to filter out insecure calls
Testing note, I took out the special-cased lines under
_removed_html_members, verified that crossframetest and innerframetest
started breaking, and fixed with the more general code in this CL.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13846 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 23:13:45 +00:00
sra@google.com 7ee39fa99b Generate contains() method for list mixin only if not already defined.
Review URL: https://codereview.chromium.org//11187063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13828 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-19 17:36:03 +00:00
antonm@google.com 8889337203 Unify formatting of parameters in interfaces and implementing classes.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13744 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 14:49:11 +00:00
podivilov@google.com 2d7f516b9f Extract common logic from Backend.BaseClassName().
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13742 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 14:24:50 +00:00
podivilov@google.com dc0c8157bc Rename Dartium dart:html implementation classes.
Currently, Dartium implementation classes are named as "_<IDL_Name>Impl" while
dart2js implementation classes are named as "_<Dart_Name>Impl". The goal of
this patch is to unify the naming across the backends.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13740 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 14:02:25 +00:00
podivilov@google.com e846c4789b Switch to using IDLTypeInfo.interface_name().
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13736 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 12:53:20 +00:00
podivilov@google.com f6c129ce61 Move interface merging info to type registry.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13533 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 11:45:40 +00:00
vsm@google.com a1d9180d98 New cross frame base types.
Local types (LocalWindow, LocalLocation, LocalHistory) now subtype the corresponding "safe" base type.  The _CrossFrameImpl classes implement the safe types.

This also fills out Location and History for dart2js.

Note for dart2js, I still need to trap returned windows.  That's a separate bug.

BUG=3836

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13252 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 18:16:03 +00:00
podivilov@google.com 5169ef12d7 Extract common logic for emitting implementation classes.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13181 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 16:04:30 +00:00
podivilov@google.com b9e0a92118 Merge BaseGenerator into HtmlDartInterfaceGenerator.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13180 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 15:58:03 +00:00
podivilov@google.com a800e16aeb Cleanup html events generation.
Get rid of HtmlSystemShared and move event interfaces and implementations
generation to HtmlEventGenerator class.

R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13107 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 10:22:37 +00:00
podivilov@google.com b001a58bca Get rid of System classes for backend generators.
They introduce unnecessary level of indirection with no added value.

R=antonm@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12946 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 10:25:08 +00:00
efortuna@google.com e73afc3647 Reapply FooList -> List<Foo> with Gamepad fix for dartium.
Review URL: https://codereview.chromium.org//10982053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12939 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 23:23:54 +00:00
blois@google.com eada8aa043 Fixing up WheelEvent to follow W3C standards and work on all platforms.
There were a couple of problems here:
- The name of the event is different between platforms, logic to handle this has been added.
- The event object was not getting wrapped on Firefox.
- The wheel event parameters were different across all platforms.

The event name ('mouseWheel' vs 'DOMMouseScroll' vs 'wheel') has been fixed on ElementEvents, but not BodyElementEvents or DocumentElementEvents. I've opened bug #5414 to track fixing those up.

BUG=5186

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12921 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 17:54:39 +00:00
podivilov@google.com 21cb9f8668 Refactor file paths handling in generator.
Introduce DartLibraryGenerator and CPPLibraryGenerator classes
that are responsible for creating per-interface files and importing
them into single library file at the end.

System and BaseGenerator implementations don't have to deal with file paths anymore.

R=antonm@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12898 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 10:22:54 +00:00
efortuna@google.com 55d7ab1fac Revert r12819 to look at IE fix offline.
Review URL: https://codereview.chromium.org//10986013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12823 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 00:13:02 +00:00
efortuna@google.com c9ea6ff843 Remove Webkit prefix for RequestAnimationFrame.
Review URL: https://codereview.chromium.org//10965044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12819 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 23:24:16 +00:00
efortuna@google.com 3f3417c68d Revert r12808.
Review URL: https://codereview.chromium.org//10981005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12810 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 21:43:42 +00:00
efortuna@google.com 42a03cb5a3 Reapply 12799.
Review URL: https://codereview.chromium.org//10957066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12808 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 21:23:36 +00:00
efortuna@google.com 23a4b72d67 Revert 12799.
Review URL: https://codereview.chromium.org//10957064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12802 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 19:54:37 +00:00
efortuna@google.com a41389ac03 Don't generate FooList if it behaves like List<Foo> exactly.
Review URL: https://codereview.chromium.org//10941047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12799 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 19:42:16 +00:00
podivilov@google.com 54071750b6 Fix generating html_dart2js.dart and html_dartium.dart files.
R=efortuna@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12506 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 17:18:41 +00:00
antonm@google.com 61e9c9f2a8 Correct handling of return types for callbacks.
Actually, all WebKit cares about is if callback threw an exception or not.
So return type of callbacks should be actually ignored.
As of now it is always bool for WebKit IDLs, but sometimes it gets overridden
to void by supplemental IDLs.

R=podivilov@chromium.org
BUG=3016

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12440 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 16:03:30 +00:00
podivilov@google.com f1b4f7ed25 Fix dart:html generated directory structure and unify file names between backends.
New structure looks like this:
generated
├── dart2js
│   ├── dart
│   │   └── (interfaces, implementations, factory providers)
│   └── html_dart2js.dart
└── dartium
    ├── cpp
    │   └── (native bindings)
    ├── dart
    │   └── (interfaces, implementations, factory providers)
    ├── DartDerivedSources.cpp
    ├── DartResolver.cpp
    └── html_dartium.dart

R=antonm@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12426 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 09:35:45 +00:00
antonm@google.com 5d81898a10 Support sequence<T> as native bindings arguments.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12381 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 12:36:21 +00:00
antonm@google.com de54aa8289 Migrate scripts to new getter syntax.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10907171

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12173 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:06:59 +00:00
antonm@google.com d8c1c3a830 Rework overloads/optionals dispatch to use new ?a syntax.
Also remove all the ugly hacks we used to have.

R=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10913167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12118 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 14:58:55 +00:00
efortuna@google.com 880f4d814a Remove lib/dom directory!
Review URL: https://chromiumcodereview.appspot.com//10913125

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12082 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 23:52:00 +00:00