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

Issue 700733003: IDL: Support union type arrays and sequences for method arguments (Closed)

Created:
6 years, 1 month ago by bashi
Modified:
6 years, 1 month ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Support union type arrays and sequences for method arguments toImplArray() template can convert arrays (or sequences) of T to Vector<T> when T has NativeValueTraits. Generate them for union type containers so that we can use (A or B)[] (or sequence<(A or B)>) in method arguments. Note that we can't use union type arrays and sequences for return values yet. Follow-up CLs will support return values. BUG=240176 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185096

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -0 lines) Patch
M LayoutTests/fast/dom/idl-union-type-unittest.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/idl-union-type-unittest-expected.txt View 1 1 chunk +16 lines, -0 lines 0 comments Download
M Source/bindings/templates/union.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/bindings/templates/union.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.h View 1 9 chunks +45 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.cpp View 1 9 chunks +63 lines, -0 lines 0 comments Download
M Source/core/testing/UnionTypesTest.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/testing/UnionTypesTest.cpp View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
M Source/core/testing/UnionTypesTest.idl View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
bashi
Haraken-san, Jens, PTAL? (Sorry for asking reviews many times...)
6 years, 1 month ago (2014-11-07 10:09:59 UTC) #2
Jens Widell
https://codereview.chromium.org/700733003/diff/1/Source/bindings/tests/results/core/V8UnionTypesCore.h File Source/bindings/tests/results/core/V8UnionTypesCore.h (right): https://codereview.chromium.org/700733003/diff/1/Source/bindings/tests/results/core/V8UnionTypesCore.h#newcode36 Source/bindings/tests/results/core/V8UnionTypesCore.h:36: static BooleanOrStringOrUnrestrictedDouble nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) ...
6 years, 1 month ago (2014-11-07 11:18:13 UTC) #3
haraken
https://codereview.chromium.org/700733003/diff/1/Source/bindings/tests/results/core/V8UnionTypesCore.h File Source/bindings/tests/results/core/V8UnionTypesCore.h (right): https://codereview.chromium.org/700733003/diff/1/Source/bindings/tests/results/core/V8UnionTypesCore.h#newcode36 Source/bindings/tests/results/core/V8UnionTypesCore.h:36: static BooleanOrStringOrUnrestrictedDouble nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) ...
6 years, 1 month ago (2014-11-07 18:14:44 UTC) #4
bashi
On 2014/11/07 18:14:44, haraken wrote: > https://codereview.chromium.org/700733003/diff/1/Source/bindings/tests/results/core/V8UnionTypesCore.h > File Source/bindings/tests/results/core/V8UnionTypesCore.h (right): > > https://codereview.chromium.org/700733003/diff/1/Source/bindings/tests/results/core/V8UnionTypesCore.h#newcode36 > ...
6 years, 1 month ago (2014-11-08 07:03:30 UTC) #5
bashi
Revised the CL(the CL become simple:). PTAL? https://codereview.chromium.org/700733003/diff/20001/Source/bindings/tests/results/core/V8TestInterface.cpp File Source/bindings/tests/results/core/V8TestInterface.cpp (right): https://codereview.chromium.org/700733003/diff/20001/Source/bindings/tests/results/core/V8TestInterface.cpp#newcode1164 Source/bindings/tests/results/core/V8TestInterface.cpp:1164: DOMWindow* window; ...
6 years, 1 month ago (2014-11-11 01:34:46 UTC) #6
haraken
LGTM
6 years, 1 month ago (2014-11-11 02:14:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/700733003/60001
6 years, 1 month ago (2014-11-11 03:21:44 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 03:49:36 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 185096

Powered by Google App Engine
This is Rietveld 408576698