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

Issue 1004503004: IDL: Add support for serializer definitions (Closed)

Created:
5 years, 9 months ago by Jens Widell
Modified:
5 years, 9 months ago
Reviewers:
haraken, vivekg, bashi
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@V8ObjectBuilder
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

IDL: Add support for serializer definitions The code generation for it is very simple. The serializer ReturnType name(); form adds the method "ReturnType name()" as a normal method, and in addition a toJSON() method with identical behavior. All other forms of serializer definitions, are equivalent to defining a method [CallWith=ScriptState] any toJSON(); unless the serializer definition has additional extended attributes, in which case those are also applied to the toJSON() method. BUG=469650 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192594

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -5 lines) Patch
M Source/bindings/scripts/idl_definitions.py View 5 chunks +48 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 chunk +23 lines, -3 lines 3 comments Download
M Source/bindings/tests/idls/core/TestInterface.idl View 1 chunk +1 line, -0 lines 2 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 2 chunks +24 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface2.cpp View 1 chunk +1 line, -1 line 1 comment Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 4 chunks +29 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
Jens Widell
PTAL This is simplified relative the WIP CL, by setting the return type to 'any' ...
5 years, 9 months ago (2015-03-25 14:32:17 UTC) #2
vivekg
I recently added CLs [1] and [2] which supports ScriptValue::from<T>() and ScriptValue::to<T>() methods. So if ...
5 years, 9 months ago (2015-03-25 15:27:11 UTC) #4
Jens Widell
On 2015/03/25 15:27:11, vivekg_ wrote: > I recently added CLs [1] and [2] which supports ...
5 years, 9 months ago (2015-03-25 15:41:49 UTC) #5
vivekg
On 2015/03/25 15:41:49, Jens Widell wrote: > On 2015/03/25 15:27:11, vivekg_ wrote: > > I ...
5 years, 9 months ago (2015-03-25 16:07:46 UTC) #6
haraken
LGTM https://codereview.chromium.org/1004503004/diff/1/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/1004503004/diff/1/Source/bindings/scripts/v8_interface.py#newcode480 Source/bindings/scripts/v8_interface.py:480: if 'CallWith' not in serializer_ext_attrs: What if the ...
5 years, 9 months ago (2015-03-26 01:39:20 UTC) #7
bashi
LGTM https://codereview.chromium.org/1004503004/diff/1/Source/bindings/tests/idls/core/TestInterface.idl File Source/bindings/tests/idls/core/TestInterface.idl (right): https://codereview.chromium.org/1004503004/diff/1/Source/bindings/tests/idls/core/TestInterface.idl#newcode83 Source/bindings/tests/idls/core/TestInterface.idl:83: [NotEnumerable, RaisesException] serializer; Just a question: Does this ...
5 years, 9 months ago (2015-03-26 02:26:17 UTC) #8
Jens Widell
https://codereview.chromium.org/1004503004/diff/1/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/1004503004/diff/1/Source/bindings/scripts/v8_interface.py#newcode480 Source/bindings/scripts/v8_interface.py:480: if 'CallWith' not in serializer_ext_attrs: On 2015/03/26 01:39:20, haraken ...
5 years, 9 months ago (2015-03-26 05:34:11 UTC) #9
haraken
https://codereview.chromium.org/1004503004/diff/1/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/1004503004/diff/1/Source/bindings/scripts/v8_interface.py#newcode480 Source/bindings/scripts/v8_interface.py:480: if 'CallWith' not in serializer_ext_attrs: On 2015/03/26 05:34:10, Jens ...
5 years, 9 months ago (2015-03-26 05:36:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1004503004/1
5 years, 9 months ago (2015-03-26 09:28:12 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 10:43:06 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192594

Powered by Google App Engine
This is Rietveld 408576698