Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Issue 23479016: Introduce Promise mapping to the IDL generator (Closed)

Created:
7 years, 3 months ago by yusukesuzuki
Modified:
7 years, 3 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce Promise mapping to the IDL generator Since Promise will be implemented in V8-side in the future, we add the following special conversion rules to the IDL code generator like DOMString -> const String&, Promise -> ScriptPromise. BUG=266700 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157435

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : Rebaseline #

Patch Set 8 : Add hasNoValue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -166 lines) Patch
M Source/bindings/bindings.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 3 4 5 6 9 chunks +19 lines, -2 lines 0 comments Download
M Source/bindings/scripts/deprecated_idl_parser.pm View 1 2 3 2 chunks +15 lines, -9 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
A + Source/bindings/v8/ScriptPromise.h View 1 2 3 4 5 6 7 1 chunk +49 lines, -26 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.h View 1 2 3 4 5 5 chunks +13 lines, -4 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/ScriptPromiseResolverTest.cpp View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/Promise.idl View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/modules/crypto/CryptoResult.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/crypto/CryptoResult.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/crypto/SubtleCrypto.h View 2 chunks +9 lines, -9 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 5 chunks +24 lines, -24 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.idl View 1 chunk +8 lines, -11 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.h View 1 2 2 chunks +15 lines, -14 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.cpp View 1 2 3 4 4 chunks +38 lines, -38 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.idl View 1 1 chunk +6 lines, -9 lines 0 comments Download
M Source/modules/imagebitmap/WindowImageBitmapFactories.idl View 1 1 chunk +8 lines, -11 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
yusukesuzuki
7 years, 3 months ago (2013-09-02 10:45:16 UTC) #1
yusukesuzuki
On 2013/09/02 10:45:16, yusukesuzuki wrote: The ScriptPromise is based on this CL[1]. [1]: https://codereview.chromium.org/23254004/
7 years, 3 months ago (2013-09-02 10:55:36 UTC) #2
yhirano
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromise.h#newcode41 Source/bindings/v8/ScriptPromise.h:41: class ScriptPromise { Can ScriptPromise be a subclass of ...
7 years, 3 months ago (2013-09-02 11:58:16 UTC) #3
haraken
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm File Source/bindings/scripts/deprecated_idl_parser.pm (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm#newcode337 Source/bindings/scripts/deprecated_idl_parser.pm:337: my $nextArgumentList_1 = '^(\(|::|ByteString|DOMString|Promise|PromiseResolver|Date|\[|any|boolean|byte|double|float|in|int|long|object|octet|optional|sequence|short|unrestricted|unsigned)$'; Do you really need to ...
7 years, 3 months ago (2013-09-02 21:44:20 UTC) #4
yusukesuzuki
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm File Source/bindings/scripts/deprecated_idl_parser.pm (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm#newcode337 Source/bindings/scripts/deprecated_idl_parser.pm:337: my $nextArgumentList_1 = '^(\(|::|ByteString|DOMString|Promise|PromiseResolver|Date|\[|any|boolean|byte|double|float|in|int|long|object|octet|optional|sequence|short|unrestricted|unsigned)$'; On 2013/09/02 21:44:21, haraken wrote: ...
7 years, 3 months ago (2013-09-03 01:52:40 UTC) #5
haraken
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm File Source/bindings/scripts/deprecated_idl_parser.pm (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm#newcode337 Source/bindings/scripts/deprecated_idl_parser.pm:337: my $nextArgumentList_1 = '^(\(|::|ByteString|DOMString|Promise|PromiseResolver|Date|\[|any|boolean|byte|double|float|in|int|long|object|octet|optional|sequence|short|unrestricted|unsigned)$'; Thanks for the clarification. Makes ...
7 years, 3 months ago (2013-09-03 02:12:19 UTC) #6
yusukesuzuki
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromiseResolver.h File Source/bindings/v8/ScriptPromiseResolver.h (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromiseResolver.h#newcode137 Source/bindings/v8/ScriptPromiseResolver.h:137: ScriptValue m_resolver; On 2013/09/03 02:12:19, haraken wrote: > 1) ...
7 years, 3 months ago (2013-09-03 03:57:44 UTC) #7
yusukesuzuki
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromise.h#newcode41 Source/bindings/v8/ScriptPromise.h:41: class ScriptPromise { On 2013/09/02 11:58:17, yhirano wrote: > ...
7 years, 3 months ago (2013-09-03 08:33:11 UTC) #8
yusukesuzuki
https://chromiumcodereview.appspot.com/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm File Source/bindings/scripts/deprecated_idl_parser.pm (right): https://chromiumcodereview.appspot.com/23479016/diff/6001/Source/bindings/scripts/deprecated_idl_parser.pm#newcode337 Source/bindings/scripts/deprecated_idl_parser.pm:337: my $nextArgumentList_1 = '^(\(|::|ByteString|DOMString|Promise|PromiseResolver|Date|\[|any|boolean|byte|double|float|in|int|long|object|octet|optional|sequence|short|unrestricted|unsigned)$'; On 2013/09/03 02:12:19, haraken wrote: ...
7 years, 3 months ago (2013-09-03 09:35:54 UTC) #9
haraken
The IDL compiler change LGTM. I'd like to defer the review of the Promise implementation ...
7 years, 3 months ago (2013-09-03 17:03:07 UTC) #10
yhirano
https://codereview.chromium.org/23479016/diff/39001/Source/bindings/v8/ScriptPromiseResolver.h File Source/bindings/v8/ScriptPromiseResolver.h (right): https://codereview.chromium.org/23479016/diff/39001/Source/bindings/v8/ScriptPromiseResolver.h#newcode114 Source/bindings/v8/ScriptPromiseResolver.h:114: ScriptPromise m_promise; On 2013/09/03 17:03:07, haraken wrote: > > ...
7 years, 3 months ago (2013-09-04 02:14:14 UTC) #11
haraken
On 2013/09/04 02:14:14, yhirano wrote: > https://codereview.chromium.org/23479016/diff/39001/Source/bindings/v8/ScriptPromiseResolver.h > File Source/bindings/v8/ScriptPromiseResolver.h (right): > > https://codereview.chromium.org/23479016/diff/39001/Source/bindings/v8/ScriptPromiseResolver.h#newcode114 > ...
7 years, 3 months ago (2013-09-04 02:20:07 UTC) #12
yusukesuzuki
https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/23479016/diff/6001/Source/bindings/v8/ScriptPromise.h#newcode41 Source/bindings/v8/ScriptPromise.h:41: class ScriptPromise { On 2013/09/03 08:33:11, yusukesuzuki wrote: > ...
7 years, 3 months ago (2013-09-04 06:36:59 UTC) #13
yhirano
https://codereview.chromium.org/23479016/diff/51001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/23479016/diff/51001/Source/bindings/v8/ScriptPromise.h#newcode45 Source/bindings/v8/ScriptPromise.h:45: // On 2013/09/04 06:37:00, yusukesuzuki wrote: > Added the ...
7 years, 3 months ago (2013-09-04 07:13:17 UTC) #14
yusukesuzuki
https://codereview.chromium.org/23479016/diff/51001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/23479016/diff/51001/Source/bindings/v8/ScriptPromise.h#newcode45 Source/bindings/v8/ScriptPromise.h:45: // On 2013/09/04 07:13:17, yhirano wrote: > On 2013/09/04 ...
7 years, 3 months ago (2013-09-04 08:02:07 UTC) #15
yhirano
lgtm
7 years, 3 months ago (2013-09-04 09:17:46 UTC) #16
yusukesuzuki
Hi abarth, could you take a look at this CL?
7 years, 3 months ago (2013-09-06 03:23:01 UTC) #17
abarth-chromium
How does a ScriptPromise differ from a ScriptValue?
7 years, 3 months ago (2013-09-06 05:17:47 UTC) #18
abarth-chromium
I can see the value in teaching the code generator about the Promise type, but ...
7 years, 3 months ago (2013-09-06 05:18:48 UTC) #19
yusukesuzuki
On 2013/09/06 05:17:47, abarth wrote: > How does a ScriptPromise differ from a ScriptValue? ScriptPromise ...
7 years, 3 months ago (2013-09-06 06:57:49 UTC) #20
yusukesuzuki
On 2013/09/06 05:18:48, abarth wrote: > I can see the value in teaching the code ...
7 years, 3 months ago (2013-09-06 06:59:21 UTC) #21
abarth-chromium
I would probably start out with ScriptPromise just being a typedef for ScriptValue until we ...
7 years, 3 months ago (2013-09-06 16:00:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukesuzuki@chromium.org/23479016/21001
7 years, 3 months ago (2013-09-06 16:00:55 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/bindings/scripts/code_generator_v8.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-06 16:01:06 UTC) #24
yusukesuzuki
Thanks. I'll rebaseline it.
7 years, 3 months ago (2013-09-06 18:03:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukesuzuki@chromium.org/23479016/73001
7 years, 3 months ago (2013-09-06 23:48:52 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-07 00:39:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukesuzuki@chromium.org/23479016/85001
7 years, 3 months ago (2013-09-09 03:59:22 UTC) #28
commit-bot: I haz the power
7 years, 3 months ago (2013-09-09 04:49:47 UTC) #29
Message was sent while issue was closed.
Change committed as 157435

Powered by Google App Engine
This is Rietveld 408576698