Commit graph

31 commits

Author SHA1 Message Date
ahe@google.com 3b1cb964ff Push updates to browser.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43063 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-22 10:02:20 +00:00
vsm@google.com 06d64660b5 A more robust check for native dart support
This will work in console emulation mode and allow us to remove 'Dart' in the user agent in the near future.

BUG=dartbug.com/18463
R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39147 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 16:55:00 +00:00
jmesserly@google.com ac09e08ac8 [browser] restore previous version with tighter SDK lower bound
follow up to http://code.google.com/p/dart/source/detail?r=34062

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34066 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 21:38:24 +00:00
jmesserly@google.com 0be5cd883d [browser] revert 0.10.0, it had the wrong SDK lower bound
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34062 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 20:44:45 +00:00
jmesserly@google.com 94e8331759 [smoke] add homepage field to pubspec
[browser] use "author" instead of "authors" (the latter expects a list, I think)

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33180 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 23:26:20 +00:00
jmesserly@google.com fdc39a2711 [polymer] update pubspecs to prepare for -pre.0 release
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33178 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 22:59:23 +00:00
floitsch@google.com 1de976703c Don't use console unconditionally (because of IE9).
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32957 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-24 10:29:11 +00:00
jmesserly@google.com 27981cb8b1 remove pkg/browser/lib/interop.js
it's not really needed -- the same functionality can be achieved in dart:js's implementation

R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32943 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 23:35:10 +00:00
kevmoo@google.com 97835dc3a6 pkg/unittest: added LICENSE
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31750 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 18:07:45 +00:00
sigmund@google.com 80a24e7d47 Remove <script></script> comment in dart.js, which would allow people to inline
the code in page. People playing with inlining scripts in HTML should load the
compiled code directly, but this doesn't hurt.

R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31434 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-02 22:38:45 +00:00
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
justinfagnani@google.com 22623da3aa Remove sync ports from interop.js
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29579 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 19:02:48 +00:00
vsm@google.com 95e272386c Use userAgent instead of webkitStartDart
This modifies our browser package and test scripts to use the
userAgent instead of webkitStartDart (which is gone) to determine if
we have native dart support.

I'm TBR-ing to get rid of a ton of warnings on the Dartium bots (they
are trying to run both native tests (successfully) and compiled-to-js
tests (warning no js file)).

E.g., see HttpServer warnings on this otherwise green run:

http://chromegw.corp.google.com/i/client.dart/builders/dartium-mac-inc-be/builds/634/steps/drt_core_checked_tests/logs/stdio

Siggi: you have comments elsewhere around removing/refactoring when
webkitStartDart is gone.  They are still there.

TBR=sigmund@google.com,ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29515 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 04:08:39 +00:00
justinfagnani@google.com 88f372316b Fix missing declaration for local variable in interop.js
BUG=
R=cbracken@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28979 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 02:41:10 +00:00
justinfagnani@google.com e32d5c24c3 Cleanup JS() expressions.
New Constructor for JsObject that preserves the correct prototype.
Type check user-supplied values that pass through to JS().
Don't call _convertToJs(this)

Based on: https://chromiumcodereview.appspot.com/26092003/

R=ahe@google.com, alexandre.ardhuin@gmail.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28813 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 18:13:40 +00:00
justinfagnani@google.com 03eb80a189 Maintain referential integrity of proxy instances in dart:js
Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject

R=ahe@google.com, alexandre.ardhuin@gmail.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28686 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 21:43:16 +00:00
justinfagnani@google.com cee2b116ce Revert "Maintain referential integrity of proxy instances in dart:js"
This reverts commit bf87105c535cd2f6fa28904547b4e9f2804bc301.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28557 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 21:28:15 +00:00
justinfagnani@google.com b2316c569a Maintain referential integrity of proxy instances in dart:js
Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject

R=ahe@google.com, alexandre.ardhuin@gmail.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28547 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 20:24:18 +00:00
justinfagnani@google.com c282ae9d65 Cache the context proxy. Don't use window for global 'this'.
BUG=
R=ahe@google.com, alexandre.ardhuin@gmail.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28181 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 21:06:57 +00:00
blois@google.com 3d0ace5885 Re-try of Tightening up dart2js load timing.
This is a fixup of https://codereview.chromium.org/22488002/, first patch is the original, subsequent the fixes.

BUG=
R=ahe@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26244 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 23:57:07 +00:00
ricow@google.com 653c15bf55 Revert revision 26149.
This is causing IE bots to fail

R=ahe@google.com, kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26186 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 11:19:11 +00:00
blois@google.com daf090e7b3 Tightening up dart2js load timing.
The timing of main() execution in dart2js currently occurs after 'loaded' which is quite late in the page load phase (after all images) and is inconsistent with Dartium.

In order to get the timing more consistent with Dartium and more consistent in general this CL makes a couple of changes:
 - dart2js generated code is now executed synchronously- this gives end developers more control over timing of main().
 - A warning is generated if main() is executed during document parse time- this is primarily to ease the transition and let users know what needs to be done to more closely match Dartium behavior.
 - dart.js bootstrapper no longer waits for DOMContentLoaded- the modified script tags will be executed after parse phase, the additional delay should not be necessary.

Breaking changes:
 - dart2js main() execution in standard project templates now occurs after document parse but before all assets have been loaded
 - Script tags directly referencing dart.js files will now execute synchronously. It's recommended that defer tags be added to these, or that they be moved to the end of the body tag.
 - dart.js bootstrapper will now only auto-load script tags which occur before it on the page.

BUG=4718
R=sra@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26149 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 20:51:45 +00:00
vsm@google.com a81a6fcce6 RFC: introduce dart:js
This is a port of js-interop with an optimized dart2js compilation.
It also gets rid of noSuchMethod.
I also made some renamings inspired by https://github.com/dart-lang/js-interop/issues/68

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25018 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 19:44:44 +00:00
vsm@google.com 609c1239d5 Move interop js code out of dart.js
BUG=7973

Note: this is a breaking change and would be advertised as such.
Anyone using js-interop would need to explicitly include:

<script type="text/javascript" "pkg/browser/lib/interop.js"></script>

along with dart.js in their HTML.  Those who don't need js-interop can
save on this code.

Alexandre: I'm imagining interop.js would be the landing spot for
dart:js bootstrap code as well.

R=alexandre.ardhuin@gmail.com, dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23855 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:33:18 +00:00
vsm@google.com f402bff98a Remove tabs from dart.js
My bad...

R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22474 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 18:44:45 +00:00
vsm@google.com 6800a0e5a9 Workaround for 8455
BUG=8455
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22375 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 16:42:30 +00:00
vsm@google.com e2ef36a751 Fix dart.js to handle query strings
Still needs an automated test, but this passes my local ones.

BUG=http://code.google.com/p/dart/issues/detail?id=8408

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18549 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 23:38:20 +00:00
amouravski@google.com 904cde1cca Added a readme to the browser package, so people know what's up.
Review URL: https://codereview.chromium.org//12212138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18532 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:11:48 +00:00
vsm@google.com 8eacd88652 Create an sdk package to host dart.js
Devon: I think we'd need corresponding editor changes.  The editor could use either pub or just replace the path (as mentioned in the bug).

BUG=6723

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16812 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 18:35:22 +00:00