Commit Graph

1657 Commits

Author SHA1 Message Date
asiva@google.com 4f6536ba66 Use new Dart API functions
Dart_GetNativeIntegerArgument
Dart_GetNativeBooleanArgument
Dart_GetNativeDoubleArgument

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26500 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 01:15:58 +00:00
blois@google.com 0820807ae6 Fixing dart2js codesize regression from blink roll.
New ErrorEvent.error was pulling in everything.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26468 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 20:27:54 +00:00
vsm@google.com 89b8d13fb6 Support for type extensions in Dartium (part 1)
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26458 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 19:30:28 +00:00
blois@google.com ec11e52f62 Revert "Revert "Adding polyfill support for custom elements.""
This fixes the issues in the custom elements polyfills.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26412 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 00:08:46 +00:00
blois@google.com 508affefed Revert "Adding polyfill support for custom elements."
Caused issues with DocumentFragment and some lingering changes from the blink roll.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26410 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 23:28:22 +00:00
blois@google.com 72651260aa Adding polyfill support for custom elements.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26405 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 22:56:08 +00:00
vsm@google.com 69bea8b4e8 Suppress getPresentationAttribute
Should fix analyzer bot.

TBR=jacobr@google.com,blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26364 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 16:19:05 +00:00
jacobr@google.com 339b0bdd70 Attempt to land Dartium roll a second time.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26363 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 15:54:49 +00:00
jacobr@google.com c6ebe4e4e0 rollback problem blink merge cl
Review URL: https://codereview.chromium.org//23163010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26339 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 06:22:24 +00:00
jacobr@google.com 785c8416bc Changes required for Dartium roll
Merge checkpoint. Everything compiles.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26335 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 01:50:17 +00:00
asiva@google.com 24c3ca0b47 Fix for issue 12489.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26327 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-19 20:44:33 +00:00
kevmoo@j832.com 178afc3105 because Kasper cares
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26286 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 18:04:48 +00:00
blois@google.com 6ab8204fc9 Renaming dom.py's http_server command and adding variant for Dartium.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26283 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 17:29:27 +00:00
vsm@google.com 3a17d47e58 Modify custom elements to inherit from HtmlElement
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26275 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 15:24:32 +00:00
vsm@google.com 7c85f03cc9 Move _HTMLElement to HtmlElement
The old HtmlElement is now HtmlHtmlElement.  The custom tests don't break for now.  I'll modify them in a separate CL to inherit from HtmlElement instead.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26248 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 00:46:10 +00:00
benwells@google.com 5aa944301a Update dart:chrome to include fileSystem, and update summary docs.
The dart:chrome library already includes the file system module but
this wasn't included properly at the top level of the API object,
making it unavailable.

The documentation from the generator included in the API has also
been updated.

BUG=None
R=blois@google.com, kathyw@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26241 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 23:27:37 +00:00
sethladd@google.com b47c9a2bf6 one-line doc for audio
BUG=
R=kathyw@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26235 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 22:32:29 +00:00
sethladd@google.com 6cbbf07554 add one-line doc for web gl
BUG=
R=kathyw@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26229 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 22:07:28 +00:00
sra@google.com 1ffafc705d Additional code to https://codereview.chromium.org/15026006
to enable user classes extending DOM classes to be registered.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26221 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 21:18:07 +00:00
asiva@google.com f010ffa98d - Add a new toNative which accepts Dart_NativeArguments as a parameter.
Currently it is implemented as two calls to the API to get at the native
  wrapper (will be made one call in another CL).
- Use the new API call Dart_SetWeakHandleReturnValue to return a string
  from the cache directly without having to call Dart_NewHandle(...)

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26148 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 20:45:40 +00:00
blois@google.com affaf4c2df Renaming Crypto's new horribly generic class 'Key' to CryptoKey.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26142 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 19:54:44 +00:00
vsm@google.com 4d51b41ff8 Initial Dartium custom element support
This will need to be rebased with Stephen's CL or vice versa.  The test mod is taken from his CL.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26141 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 19:47:07 +00:00
efortuna@google.com 03e749caba Fix Event delegation on IE.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26092 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 23:10:09 +00:00
efortuna@google.com b1045e115b More clean up for HttpRequest docs.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26091 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 22:58:27 +00:00
blois@google.com 59c29150b4 Removing overloaded operations in dart2js.
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26041 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 22:23:42 +00:00
efortuna@google.com 1685a782e5 Fix KeyEvent keyIdentifier is unsupported error message.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25989 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 23:25:48 +00:00
efortuna@google.com 3304c64b52 Make includeAncestors match a separate method.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25979 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 20:41:48 +00:00
efortuna@google.com 9fdbcf176c Add includeAncestors to dartium matches call.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25975 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 20:21:50 +00:00
efortuna@google.com e8c1c1722f Adjust test status for debugging in Dartium.
"Reverting 25970"

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25972 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 18:48:44 +00:00
efortuna@google.com 7312ba7104 Move matches method so that it gets generated for dart2js and dartium.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25970 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 18:34:58 +00:00
efortuna@google.com 8963a49505 Event delegation
Fix for https://code.google.com/p/dart/issues/detail?id=6270

BUG=
R=blois@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25969 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 17:37:32 +00:00
blois@google.com b76d72ca96 Fixing analyzer issue on AbstractWorker
Just removing the event, as it's in an odd state of not being an event target.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25958 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 01:32:44 +00:00
efortuna@google.com 83415ddfbb Rerun go.sh
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25957 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 00:52:30 +00:00
vsm@google.com cd7a678e83 Use DartExceptionState
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25953 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 22:56:57 +00:00
vsm@google.com f58ea07d46 EventTargets should be EventTargets
systemnative.py keys off the ext_attr.  Recent IDL changes removed the EventTarget attribute however.

Types marked with isEventTarget are handled specially during GC.

R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25947 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 21:18:13 +00:00
vsm@google.com 68b7394e53 Treat EventTarget as a secondary superclass
This matches the C++.  It's brittle, but it's not clear how to get
this out of idl right now.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25906 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 22:15:10 +00:00
blois@google.com 2b37129071 Fixing polyfill for Element.createShadowRoot.
Chrome roll changed it from webkitCreateShadowRoot to createShadowRoot, polyfills need to be updated. This change should probably be reverted once everyone adapts to the new API.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25851 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 01:32:58 +00:00
blois@google.com 0094164ae8 Regenerating DOM types from IDL roll.
TBR=vsm
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25849 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 00:57:08 +00:00
asiva@google.com abb3ca866b Do not generate calls to Dart_EnterScope/Dart_ExitScope around native
callbacks as an ApiLocalScope is auto created by the VM when making
external native calls.

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25846 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 23:57:50 +00:00
vsm@google.com 8d4d29153e Make Node.clone argument non-optional
TBR=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25842 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 22:57:51 +00:00
efortuna@google.com 4881d36065 Fix texImage2D on Dartium.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25837 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 22:17:44 +00:00
vsm@google.com c5dd3d3ba7 MERGE: 152953-155080
TBR=jacobr@google.com,blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25832 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 21:17:56 +00:00
blois@google.com aea78f5a91 Fixing invalid code in docs for HttpRequest constructor.
BUG=11844
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25798 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-05 20:50:57 +00:00
blois@google.com 823767564d Adding HttpRequest method to make it easier to post form data.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25790 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-05 19:53:42 +00:00
jacobr@google.com 0da2ef2fe9 Add method to html_dartium utils to check for NSM errors
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25741 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-02 20:06:58 +00:00
kustermann@google.com cb18d8ba87 Removed compiler/ directory from repository
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25728 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-02 08:31:15 +00:00
efortuna@google.com b10d8f0736 Add magnitude getter to Point.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25724 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-01 22:48:19 +00:00
asiva@google.com 7376bf6cf2 Alter the native code generator to directly use
Dart_SetBooleanReturnValue
 Dart_SetIntReturnValue
 Dart_SetDoubleReturnValue

instead of 
 Dart_Handle retval = toDart(...); // Calls Dart_Boolean, Dart_NewInteger,
                                   // Dart_Double.
 Dart_SetReturnValue(args, retval);

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25698 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-01 00:58:22 +00:00
blois@google.com 1311f1d755 Fixing WebGLLoseContext on Firefox.
BUG=11874
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25697 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-01 00:35:25 +00:00
blois@google.com 651836e67b Fixing some SVG collections not working on Dartium.
Issue was that we were generating code calling native methods which were not present for these SVG collections.

BUG=11204
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25682 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-31 20:18:42 +00:00