Commit Graph

50 Commits

Author SHA1 Message Date
Terry Lucas dd8988c9b2 - Moved all WebGL rendering/drawing constants to synthesized class WebGL.
- Removed obsolete Dartium/_blink code.

R=kevmoo@google.com

Change-Id: I81a6f0d5bfe33592ff8ae9c85db9266e898c2861
Reviewed-on: https://dart-review.googlesource.com/60380
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2018-06-15 17:08:54 +00:00
Terry Lucas 352f9fd859 Fixed bad indent not flushing emitted files.
Removed Dartium code emission.

TBR: alanknight@google.com,vsm@google.com
Change-Id: Ib027f542b238c90311f6838e67b4b8d27815374c
Reviewed-on: https://dart-review.googlesource.com/3280
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2017-09-05 14:43:08 +00:00
Alan Knight 0700adc633 Fix the go.sh script for a completely new repo.
BUG=

Review-Url: https://codereview.chromium.org/2981193002 .
2017-07-18 13:44:08 -07:00
Alan Knight cedd8a6854 Format dart:html and related generated files on output
BUG=
R=jacobr@google.com, terry@google.com

Review URL: https://codereview.chromium.org/2858323003 .
2017-05-05 10:09:00 -07:00
Terry Lucas 2b1816c869 Added switch to disable generating cached_patches.dart file (Dartium only).
The switch --no-cached-patches to be used by Dart enlistment (non-Dartium) and need to
re-gen the sdk/lib files using:

    ./go.sh --no-cached-patches

R=alanknight@google.com

Review URL: https://codereview.chromium.org/2154863002 .
2016-07-18 05:45:33 -07:00
Terry Lucas 10e70db01c Speed up interop patch file creation.
Made a number of optimizations to reduce load time from 8 secs to 1 sec.  The changes involved:

- No longer dynamically generate patch files on startup for dart:* libraries (created from WebKits IDL e.g., html, svg, web_audio, web_gl, indexed_db, web_sql).  Instead create a cache of patch files.

- Comparison of @JS refelctedType not by library and symbol name comparison.

- In addition, a VM mirror change see CL https://codereview.chromium.org/1834673003/ gives us the remaining speedup.

This cache of interop patch files, for Dartium only, requires a manual re-gen after go.sh run is:

> cd tools/dom/scripts
> run go.sh

The steps after (for Dartium) are:

1.  build Dartium
2.  cd tools/dartium
3.  run generate_patches.sh
4.  build Dartium

R=jacobr@google.com, alanknight@google.com

Review URL: https://codereview.chromium.org/1833373002 .
2016-03-28 08:20:13 -07:00
Terry Lucas 5c3728b067 Fix for KeyEvent,KeyboardEvent and UIEvent changes in roll 45
TBR=jacobr@google.com,alanknight@google.com,sigmund@google.com

Review URL: https://codereview.chromium.org/1754523006 .
2016-03-07 07:51:50 -08:00
Terry Lucas a552c24089 Match version of idl_parser and WebCore so go.sh can be run from a Dart only enlistment.
Needed to pull in the tools/idl_parser code for a Dart enlistment populated during a gclient sync.

Added .gitingore to not ignore tools/idl_parse

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

Review URL: https://codereview.chromium.org/1768853002 .
2016-03-06 15:10:36 -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 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 L. Lucas 4947e570d4 Changed to use JSInterop
Review URL: https://codereview.chromium.org//1173403004 .
2015-07-13 12:38:16 -07: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
leafp@google.com e7dfea4301 Stop generating dart:blink from dart scripts
This removes the dart:blink generation code from the dart html scripts.  The _blink_dartium template is removed, and the blink_nativeDOMImplementation html_nativeDOMImplementation split is eliminated, with the code for the former in the dartium generated code, and the latter moved back to native_DOMImplementation.dart.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41346 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-27 23:59:26 +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
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 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
leafp@google.com 445e8fda3d Eliminate the old non blink code paths from idl generation
During the transition to the dart:html dart:blink split, we needed to support generating the old style and the new style.  This CL eliminates the code paths for the old style generation now that they're no longer needed.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39005 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 20:04:18 +00:00
efortuna@google.com b8ab793a1b Reapply 38999. Third time's the charm! The issue was supportsTransitions was a
static method,and with my change I was calling an instance method. I've tested
all of the other html tests (before I was just testing on Dartium).

BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39003 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 18:36:23 +00:00
efortuna@google.com c8d48f89a9 t cl dcommi# Enter a description of the change.
"Reverting 38998"
TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38999 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:50:26 +00:00
efortuna@google.com c7dd285314 Reapplication of revision 38996 (dart side edits to make CSS Properties
accessible with and without prefixes), with the addition of CSSPropertyNames.in
which will be deleted once https://codereview.chromium.org/444453006/
is committed.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38998 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:21:06 +00:00
efortuna@google.com ceea5ab278 "Reverting 38996"
TBR because we need CSSPropertyNames.in from DEPS

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38997 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:12:12 +00:00
efortuna@google.com 19c379afd9 This is the dart side edits to make this happen.
Fix for https://code.google.com/p/dart/issues/detail?id=19932

BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38996 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:09:40 +00:00
whesse@google.com 4b9def5115 Fix merge problems in r38573, a cleanup of build scripts.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38574 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 12:47:48 +00:00
vsm@google.com 098aa42080 Dartium 35: Add a deprecated ShadowRoot.resetStyleInheritance
TBR=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36349 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 09:47:02 +00:00
leafp@google.com 970367e227 Rename blink -> _blink
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35499 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-28 21:56:19 +00:00
leafp@google.com 36a629367e Generate dart:blink in the SDK
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35439 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 18:29:01 +00:00
leafp@google.com 5e0688e1ec This CL contains all of the changes for splitting off all of the native
calls from dart:html into dart:blink.  As currently configured, the
dart:blink library will be empty and unused.  The only changes in the
idl generated dart and C++ code in the default configuration should
be cosmetic.  The global variable "dart_use_blink" in systemnative.py
currently controls whether or not the real blink library is
generated.  Enabling this requires as yet unchecked in changes to
blink.  These changes are expected to land as part of the chrome
35 roll.

Support for building with/without blink
DOM changes for checked receivers
Dartium native call generation refactor

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35430 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 16:22:08 +00:00
whesse@google.com 7010c7b798 Don't write generated C++ bindings twice, only once.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30198 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 17:16:17 +00:00
blois@google.com 15e086338d Revert "Revert "Removing some deprecated members""
Take-two of https://code.google.com/p/dart/source/detail?r=29022

The issue with the original was that addEventListener was changed to private, but this caused the IDB classes which override it to not override it any longer. This was breaking C++ multiple inheritance type casts. Fix is to make addEventListener public.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29051 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 00:44:10 +00:00
blois@google.com 3aef09e008 Revert "Removing some deprecated members"
For some reason this broke indexed_db on Dartium, I debugged in some but need more time to understand. The completed event is not firing.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29033 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 20:20:32 +00:00
blois@google.com e2c4716609 Removing some deprecated members
These are all DOM APIs that we had annotated as deprecated but not actually removed. They've all been deprecated for quite a while.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29022 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:42:01 +00:00
asiva@google.com ab61301521 Generate a class table of all the IDL classes in the database. This table is used
to access the C++ class hierachy information to do a proper subtype of check.

The new subtype of check improves the following benchmarks
Dromaeo-drt dom-modify appendChild runs-per-second from 889.0 to 1575.0
Dromaeo-drt dom-modify insertBefore runs-per-second from 592.4075924075925 to 1298.0

The generated class table is as follows:
enum {
    _HistoryCrossFrameClassId = 0,
    _LocationCrossFrameClassId,
    _DOMWindowCrossFrameClassId,
    _DateTimeClassId,
    // New types that are not auto-generated should be added here.

    ANGLEInstancedArraysClassId,
    AbstractWorkerClassId,
    ....
    ....
};
typedef struct {
    const char* class_name;
    int library_id;
    int base_class_id;
    bool is_node;
    bool is_active;
    bool is_event;
} _Classinfo;
typedef _Classinfo _DartWebkitClassInfo[NumWebkitClassIds];

_DartWebkitClassInfo DartWebkitClassInfo = {
    { "_HistoryCrossFrame", DartHtmlLibraryId, -1, false, false, false },
    { "_LocationCrossFrame", DartHtmlLibraryId, -1, false, false, false },
    { "_DOMWindowCrossFrame", DartHtmlLibraryId, -1, false, false, true },
    { "DateTime", DartCoreLibraryId, -1, false, false, false },
    // New types that are not auto-generated should be added here.

    { "AngleInstancedArrays", DartWebGlLibraryId, -1, false, false, false, },
    { "AbstractWorker", DartHtmlLibraryId, -1, false, false, false, },
    .....
    .....
};

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28821 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 20:27:30 +00:00
asiva@google.com 19a260904e Generate a library ID instead of a library name, so that the ID can be used
to get the library handles from the cache (avoids having to lookup everytime)

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28226 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 16:21:17 +00:00
rmacnak@google.com 2a87dc5402 Give each binding class an id to be used as an index into a cache of handles on the corresponding Dart classes.
BUG=
R=asiva@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27452 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 21:55:30 +00:00
blois@google.com ba295aaafe Only update dom.json when executing from go.sh.
BUG=
R=antonm@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23099 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 20:30:43 +00:00
blois@google.com 72cf63c068 Refactoring DOM annotations and comment generation, adding DOM API triage list
This pulls the annotation and comment code out of generator.py and into a Metadata class, which is also tracking new APIs from the IDLs.

Right now the API triage list is being updated when new members appear, but is not adding any metadata to the Dart APIs. Of note for the triage list is that there are currently 437 untriaged members- these are all of the APIs which have either been introduced, renamed or moved in the past week.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22193 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 18:35:30 +00:00
antonm@google.com 6283a48f86 Distinguish between common and dart2js specific monitored.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21483 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:25:30 +00:00
podivilov@google.com 468fc08f93 Fix the build with WEB_AUDIO disabled.
Make sure web_audio_DartResolver.cpp is generated even if WEB_AUDIO is disabled
because our gyps depend on it.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21182 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 08:01:28 +00:00
blois@google.com 50e1cf4927 Adding web_gl library.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20833 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 00:45:20 +00:00
blois@google.com 51cd64501d Separating Web SQL into dart:web_sql.
These APIs are essentially deprecated as standardization as ceased for them, but they are also the only DBs available for mobile devices.

Separating out so it's easier to disable later.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18782 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 21:05:24 +00:00
blois@google.com e78e8b1cc1 Stubbing out the initial library for Chrome application support.
This adds the core skeleton of Chrome application support with a sample function that allows creating a new window (in dart2js).

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17299 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 18:05:19 +00:00
antonm@google.com a6222ed29e Remove now unused function.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17292 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 16:51:47 +00:00
blois@google.com 1ebf1939d8 Changing htmlrenamer to use DOM names rather than Dart names.
A number of issues-
- Changed entries to be keyed off of DOM names (like the rest of our lists)
- Fixed up incorrectly named entries (a couple of typos in member names)
- Added support for the Class.* catch-all. Cases were using it, but it wasn't actually supported.
- Fixed up static const members not being suppressed
- Removed entries which are no longer occurring (after validating that they are correct).
- Added logging to help keep the lists up to date.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17093 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 21:04:10 +00:00
amouravski@google.com 7291e60d30 Removing dependency on dart binary from go.sh.
This at the same time kills all of the generated HTML lib documentation.
This documentation will be restored when the new HTML JSON docs are done.
ETA: 2 weeks

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17086 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 20:06:45 +00:00
amouravski@google.com ba1f89e2b0 Fix for go.sh breaking because the dart binary in /testing hasn't been updated.
Review URL: https://codereview.chromium.org//11825012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16937 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 22:54:16 +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