Srujan Gaddam
d87a545a6a
[dart:html] Update changes in idl_parser location
...
Simply adds the new location to the sys.path so it can be found
and filters idl files within idl_parser so it doesn't affect
codegen. Also removes a stale comment to finalize the python3
migration.
Change-Id: I31d93fd8de22e38a0e968587149546565f86e3ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212630
Reviewed-by: Riley Porter <rileyporter@google.com >
2021-09-08 22:18:37 +00:00
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
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
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
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
terry@google.com
905ee314e0
Starting cleanup
...
Reviewers=vsm@google.com ,leafp@google.com
R=vsm@google.com
Review URL: https://codereview.chromium.org//609403004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40784 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 20:11:59 +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
vsm@google.com
28541ed31f
Regenerate dart:html from new Blink IDL files
...
This includes some script updates. See:
https://codereview.chromium.org/19605006
for the IDL roll.
R=efortuna@google.com
Review URL: https://codereview.chromium.org//19789017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25456 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 00:08:44 +00:00
vsm@google.com
992776552a
Fixes for Blink roll.
...
TBR=jacobr@google.com ,asiva@google.com
Review URL: https://codereview.chromium.org//19820007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25395 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 04:46:29 +00:00
antonm@google.com
9a71e85188
Remove now unused enables.
...
TBR=blois@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//16399010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23754 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 16:40:32 +00:00
vsm@google.com
03de0e182f
Remove error throw on bad DEFINES
...
We need to be forgiving here for Android builds.
R=antonm@google.com
Review URL: https://codereview.chromium.org//16325009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23547 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:44:20 +00:00
vsm@google.com
b85b97cbe6
Fixes for Blink roll to r151189
...
TBR=antonm
Review URL: https://codereview.chromium.org//16308002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23511 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 18:34:36 +00:00
antonm@google.com
b80cfdce1c
Regens after IDL roll.
...
TBR=blois@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//15697002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22991 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:05:50 +00:00
vsm@google.com
f1718c5140
Update ENABLE_* flags
...
Bring this up to date with:
http://src.chromium.org/viewvc/multivm/trunk/webkit/Source/core/features.gypi?revision=1242
Note, this does *not* change any generated code. Unused flags where
removed. Added flags are precautionary. They don't affect generated
code, but they are defined in a Chromium build.
R=antonm@google.com
Review URL: https://codereview.chromium.org//15294015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22890 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-20 15:55:06 +00:00
podivilov@google.com
44ba9c6d61
Relax feature defines restrictions.
...
Checks in fremontcutbuilder don't take into account nested conditions (e.g. PagePopupController.formatMonth).
The check in databasebuilder is too aggressive as we never use conditionals in dart.idl.
R=blois@google.com
Review URL: https://codereview.chromium.org//14767027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22498 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 08:04:25 +00:00
antonm@google.com
28d0af1553
Restore feature defines argument.
...
R=podivlov@chromium.org
Review URL: https://codereview.chromium.org//14416015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22065 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 08:26:09 +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
8784188d40
Remove BLOB conditional.
...
R=blois@google.com
Review URL: https://codereview.chromium.org//14050008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21724 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 08:48:10 +00:00
antonm@google.com
b693f3e1ea
Changes for the roll.
...
TBR=ager@google.com , blois@google.com , podivilov@chromium.org
Review URL: https://codereview.chromium.org//14007012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21627 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 16:15:01 +00:00
antonm@google.com
7db2784f62
Allow spaces around conditions.
...
R=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14049015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21495 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:56:06 +00:00
antonm@google.com
766fcede4e
Enable user timing.
...
R=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14200024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21493 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:29:46 +00:00
antonm@google.com
739426925e
Enable resource timing.
...
R=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14046024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21491 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:14:57 +00:00
antonm@google.com
92e80c8404
Enable navigator content utils.
...
R=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14244014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21488 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:01:29 +00:00
antonm@google.com
021a1ef818
Triage feature defines.
...
R=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14263014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21487 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:45:07 +00:00
antonm@google.com
0ef5bc0c64
Enable canvas features.
...
R=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14240003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21485 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:34:53 +00:00
antonm@google.com
06b08dae28
Enables necessary for Dartium.
...
TBR=ager@google.com , blois@google.com
Review URL: https://codereview.chromium.org//14262002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21422 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:58:36 +00:00
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
antonm@google.com
e0f0682c01
Remove now unnecessary define.
...
R=podivilov@chromium.org
Review URL: https://codereview.chromium.org//11973034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17283 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 15:29:32 +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