Srujan Gaddam
f34eef5b91
[dart:html] Migrate python scripts to python 3
...
Migrates syntax and semantics from python 2.7.
Major changes include:
- filters
- sorting
- print statements
- higher-order functions
- hashing and comparison
and other misc changes. go.sh consistently gives the libraries
in this and the previous commits with these changes.
Change-Id: I66365739887158d8f321015d36e556447da1bcd3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211542
Commit-Queue: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Riley Porter <rileyporter@google.com >
2021-09-08 22:10:53 +00:00
Alexander Thomas
b5c63ce757
[infra] Migrate scripts to python3
...
* Migrate to python3; drop python support.
* Update Windows toolchain support.
* Remove some unused methods.
* Python 2.7 is still needed on Windows.
* Update gsutil to a version that supports python3.
Fixes: https://github.com/dart-lang/sdk/issues/28793
TEST=Manually tested common user journeys.
Change-Id: I663a22b237a548bb82dc2e601e399e3bc3649211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192182
Reviewed-by: William Hesse <whesse@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2021-04-15 10:10:20 +00:00
Srujan Gaddam
3d52fcd250
[dart:html] Type FontFaceSet.add result as nullable
...
Closes https://github.com/dart-lang/sdk/issues/45676
`FontFaceSet.add` can return null on Firefox, which leads to a crash
due to native null assertions. The scripts are modified to treat
the `add` return type as nullable.
Change-Id: I8fcff8ef716e8620f04c44f5fb8b3a5884b3d1db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195167
Reviewed-by: Stephen Adams <sra@google.com >
Commit-Queue: Srujan Gaddam <srujzs@google.com >
2021-04-14 00:00:08 +00:00
Srujan Gaddam
63a57a76ce
[dart:html] Revert "[dart:html] Revert commits using MDN compatibility info"
...
This reverts commit f8ff12008e .
This CL is a revert of the initial revert and should be landed once
Flutter changes have been merged to handle the changes here.
Change-Id: I300a5efd776bf2a596743971f4e15ad62da77f5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153368
Commit-Queue: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2020-07-14 23:18:43 +00:00
Srujan Gaddam
f8ff12008e
[dart:html] Revert commits using MDN compatibility info
...
This reverts commits aff77e7e..e24f205d.
Due to a breakage in a Flutter roll, this CL stack needs to be
reverted. It should be reintroduced with changes to Flutter code to
compile with the changes in dart:html.
Breakage: https://github.com/flutter/engine/runs/828631927
Change-Id: I9c93c4eab823337d09d2e347015ad9ec402f2038
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152910
Auto-Submit: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
2020-07-02 01:33:18 +00:00
Srujan Gaddam
aff77e7ed7
[dart:html] Incorporate MDN compatibility data
...
Bug: https://github.com/dart-lang/sdk/issues/41905
Uses MDN information in the generator script to get a better idea
of which attributes are compatible and are not. mdnreader.py is
introduced to parse the data present in third_party.
Change-Id: I330ccf918cb42deb4c09ab97db5f3d2f0c432d99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149800
Reviewed-by: Stephen Adams <sra@google.com >
2020-07-01 22:06:34 +00:00
Nate Bosch
55f81f2210
Mass format python with yapf
...
- Add `.style.yapf` with configuration to use Google style.
- Run `yapf` on all `.py` files in this repo.
- Manually fix one trailing space in a doc string.
- Run `git cl format runtime` to satisfy presubmit.
Change-Id: I7e6bd11e91f07926b9188362599af398551eed79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111600
Commit-Queue: Nate Bosch <nbosch@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2019-08-05 20:34:31 +00:00
Terry Lucas
edca6169c1
Fixed a number of dart:html P1 issues.
...
- Fixed HTML API's with callback typedef to correctly convert Dart function to JS function.
- Expose HttpStatus from dart:html
- Expose DomName ondblclick and dblclickEvent for Angular analyzer.
- Fixed removeAll should be Iterable<Object> to match Set's removeAll not Iterable<E>.
- Fixed a number of DataTransferItem, Entry, FileEntry and DiretoryEntry returning NativeJavaScriptObject needed type registered in DDC.
- Added ability to allow local file access from Chrome browser added -local in ddb.
R=vsm@google.com
Fixes #30278
Fixes #35484
Fixes #34318
Fixes #35510
Change-Id: Ide8c04716c54045e837781d489562f27b694b109
Reviewed-on: https://dart-review.googlesource.com/c/89340
Commit-Queue: Terry Lucas <terry@google.com >
Reviewed-by: Vijay Menon <vsm@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2019-01-15 17:21:50 +00:00
Terry Lucas
cf87b84f7d
Support Promise to Future for both DDC and dart2js.
...
APIs in the newer Chrome IDLs support more JS style promises. The Dart web libraries now hookup those promises and return a Dart Future.
Additionally, a new type maplike is exposed in the IDL this is exposed too.
Change-Id: I44175877eb95f4d910586d42c0139fb182483f82
Reviewed-on: https://dart-review.googlesource.com/49800
Commit-Queue: Terry Lucas <terry@google.com >
Reviewed-by: Stephen Adams <sra@google.com >
2018-05-23 04:08:14 +00:00
Terry Lucas
ef6273cba0
Dart Web Libraries re-generated based on Chrome 63 WebIDLs.
...
This is a migration of 13 Chrome release about 1.5 years of Chrome releases.
Update PYTHON scripts for cleaner and easier rolling.
Here's a doc on the changes that might affect Dart users:
https://docs.google.com/document/d/1Kj0nk3SueO3JKub8im7z3znu9j5oiI7vf49ejZrMxuE/edit#
Change-Id: I768fbd09b04fe6884af36ac102d5813f67bae426
Reviewed-on: https://dart-review.googlesource.com/24501
Commit-Queue: Terry Lucas <terry@google.com >
Reviewed-by: Terry Lucas <terry@google.com >
2018-03-18 09:41:04 +00:00
Terry Lucas
8ab1a87aba
Typedefs and IDL file order between platforms could generated different files.
...
TBR=alanknight@google.com ,vsm@google.com
Review-Url: https://codereview.chromium.org/2948493002 .
2017-06-18 11:54:29 -07:00
Terry Lucas
f27144d7b5
Roll 50: Updated for push to origin/master.
...
TBR=jacobr@google.com
Review-Url: https://codereview.chromium.org/2875773003 .
2017-05-10 18:16:51 -07:00
Terry Lucas
c510dc9831
Fixed typedef used globally in IDLs
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org/1763063003 .
2016-03-05 07:34:51 -08:00
Terry Lucas
e1a33e9981
Moved ChromiumSubscribeUniform to web_gl
...
Fixed to return null if dictionary returned form blink is null
Cleanup up logging/error reporting
TBR=alanknight@google.com ,jacobr@google.com
Committed: https://github.com/dart-lang/sdk/commit/01f6e4ed0f8882001e5a308cc8e36dcb62e9b5bc
Review URL: https://codereview.chromium.org/1752983003 .
2016-03-02 08:15:45 -08:00
Terry Lucas
c7c12c7756
Migrated changed for sdk/lib genernation from integration branch to master.
...
- client* not properly exposed.
- Expose createImageDataFromImageData for backward compat
- Chrome now allow typedefs defined in and IDL to be used and other IDL files (even though the IDL has no include).
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1744093002 .
2016-02-28 11:59:20 -08:00
Terry Lucas
e4b800845b
Fixed more sdk/lib issues
...
- SpeechRecognition calling blink constructor needs name prefixed with WebKit
- Enumerator types as arguments must be String (all enums in IDL are string values).
- Removed methods in IDBStorage that caused overloaded operations.
TBR=alanknight@google.com , jacobr@google.com
Review URL: https://codereview.chromium.org/1744613003 .
2016-02-27 10:44:45 -08:00
Terry Lucas
a3350d9b06
Generation of sdk/lib files from 45 roll
...
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1720743005 .
2016-02-22 10:59:12 -08:00
Jacob Richman
f478562b0a
Dartium 45 roll
...
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1682783002 .
2016-02-09 10:50:43 -08:00
terry@google.com
5c84e1b473
Added --examine to produce analysis of IDL files
...
Reviewers=vsm@google.com ,alan@google.com
R=vsm@google.com
Review URL: https://codereview.chromium.org//1001983003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44467 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-13 15:53:55 +00:00
terry@google.com
e0fff4e457
Changes to support roll 39 IDLs
...
Reviewers=vsm@google.com ,asiva@google.com
Review URL: https://codereview.chromium.org//952133004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44099 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-27 18:10:08 +00:00
vsm@google.com
94095d64a2
Merge 38 changes to bleeding edge
...
TBR=terry@google.com ,leafp@google.com
BUG=
Review URL: https://codereview.chromium.org//605083004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40774 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 15:56:25 +00:00
vsm@google.com
1c4bb5f363
Revert "Chrome 38 script changes from integration branch"
...
This reverts commit r40567.
TBR=leafp@google.com
Review URL: https://codereview.chromium.org//589253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40570 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-22 21:11:34 +00:00
vsm@google.com
9e25106514
Chrome 38 script changes from integration branch
...
TBR=leafp@google.com
Review URL: https://codereview.chromium.org//593853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40567 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-22 20:45:57 +00:00
terry@google.com
42a229cbb7
Fixed removing of pure interface (implements) operations
...
Reviewers:vsm@google.com ,leafp@google.com
R=vsm@google.com
Review URL: https://codereview.chromium.org//560263004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40227 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 23:50:35 +00:00
vsm@google.com
e379d380bc
Migrate to Chrome 37 IDL
...
This enables terry's new scripts with fixes from vsm and leafp (tested in the dartium_integration branch).
R=leafp@google.com
Review URL: https://codereview.chromium.org//569783002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40219 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 21:18:06 +00:00
terry@google.com
ddf659197c
Reviewers=vsm,leafp
...
Fixed emitting problems with default/optional.
R=leafp@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//551713003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40054 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 20:59:03 +00:00
terry@google.com
ecceb75d35
Begin hookup of Blink IDL parser for dart:* libraries.
...
BUG=
R=vsm@google.com
Committed: https://code.google.com/p/dart/source/detail?r=39948
Review URL: https://codereview.chromium.org//444743002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40026 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 13:18:24 +00:00
terry@google.com
ac72bce2f1
"Reverting 39948"
...
BUG=
Review URL: https://codereview.chromium.org//554853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39999 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-08 20:58:19 +00:00
terry@google.com
cf0c6a3565
Begin hookup of Blink IDL parser for dart:* libraries.
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//444743002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39948 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-08 02:33:50 +00:00
jacobr@google.com
1ea29a21d7
Fixes for Chrome 34 merge
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//204033002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34069 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 22:08:44 +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
antonm@google.com
a352956d29
Chrome roll 202464->204370.
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org//16234006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23743 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 14:56:12 +00:00
antonm@google.com
7629d7f4d4
Partial support for new getters/setters declaration.
...
TBR=blois@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//16636002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23742 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 12:07:54 +00:00
vsm@google.com
8379279dc0
Retry "Changes for webkit roll 148757-149482"
...
TBR=antonm
Review URL: https://codereview.chromium.org//14948011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22801 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 16:39:09 +00:00
vsm@google.com
45fc399cf7
Revert "Changes for webkit roll 148757-149482"
...
TBR=antonm
Review URL: https://codereview.chromium.org//14636013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22769 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 06:06:49 +00:00
vsm@google.com
da46c65d3b
Changes for webkit roll 148757-149482
...
Review URL: https://codereview.chromium.org//14954007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22765 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 05:37:13 +00:00
antonm@google.com
12d5e65894
Chrome roll.
...
TBR=ager@google.com , podivilov@chromium.org
Review URL: https://codereview.chromium.org//14211014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21967 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:02:30 +00:00
antonm@google.com
4520cca2b5
Drop raises annotations support.
...
R=blois@google.com
Review URL: https://codereview.chromium.org//14150007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21725 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 08:59:39 +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
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
04082f2d09
Proper support for typedefs.
...
And allow them in WebKit IDLs.
R=ager@google.com ,blois@gogole.com ,podivilov@chromium.org ,sra@google.com
Review URL: https://codereview.chromium.org//12313148
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19146 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 15:48:26 +00:00
antonm@google.com
5d50a592a3
Support overloaded constructors.
...
R=blois@google.com ,efortuna@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12052076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17754 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 12:18:28 +00:00
efortuna@google.com
01fb2bbc86
Moved most of html lib generating scripts into tools.
...
BUG=
Review URL: https://codereview.chromium.org//11691009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16557 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-28 22:26:48 +00:00