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

Issue 2350813005: bindings: Support sequence in callback function arguments (Closed)

Created:
4 years, 3 months ago by bashi
Modified:
4 years, 2 months ago
Reviewers:
haraken, lkawai, peria, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Support sequence in callback function arguments We need to support sequence as IntersectionObserverCallback uses a sequence. BUG=648486 Committed: https://crrev.com/a14a3854c3e69df4c7d1cb8c460816b54d6199a9 Cr-Commit-Position: refs/heads/master@{#421154}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Pass ExceptionState #

Total comments: 5

Patch Set 3 : SetVerbose(true) #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -35 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_callback_function.py View 1 2 3 4 5 3 chunks +18 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.h View 1 2 3 4 3 chunks +10 lines, -9 lines 0 comments Download
A + third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.cpp View 1 2 3 4 5 2 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8VoidCallbackFunctionInterfaceArg.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8VoidCallbackFunctionInterfaceArg.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/CallbackFunctionTest.h View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp View 1 2 3 4 5 3 chunks +13 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/testing/CallbackFunctionTest.idl View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (31 generated)
bashi
PTAL https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (right): https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp#newcode34 third_party/WebKit/Source/bindings/templates/callback_function.cpp:34: ExceptionState exceptionState(scriptState->isolate(), ExceptionState::ExecutionContext, "{{cpp_class}}"); Always declare exceptionState for ...
4 years, 3 months ago (2016-09-21 02:00:21 UTC) #4
peria
https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (right): https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp#newcode34 third_party/WebKit/Source/bindings/templates/callback_function.cpp:34: ExceptionState exceptionState(scriptState->isolate(), ExceptionState::ExecutionContext, "{{cpp_class}}"); On 2016/09/21 02:00:21, bashi1 (slow ...
4 years, 3 months ago (2016-09-21 02:21:36 UTC) #5
haraken
https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (right): https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp#newcode34 third_party/WebKit/Source/bindings/templates/callback_function.cpp:34: ExceptionState exceptionState(scriptState->isolate(), ExceptionState::ExecutionContext, "{{cpp_class}}"); On 2016/09/21 02:00:21, bashi1 (slow ...
4 years, 3 months ago (2016-09-21 02:25:12 UTC) #6
bashi
https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (right): https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp#newcode34 third_party/WebKit/Source/bindings/templates/callback_function.cpp:34: ExceptionState exceptionState(scriptState->isolate(), ExceptionState::ExecutionContext, "{{cpp_class}}"); On 2016/09/21 02:25:12, haraken wrote: ...
4 years, 3 months ago (2016-09-21 05:01:46 UTC) #9
haraken
On 2016/09/21 05:01:46, bashi1 (slow til Sep 26) wrote: > https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp > File third_party/WebKit/Source/bindings/templates/callback_function.cpp (right): ...
4 years, 3 months ago (2016-09-21 07:40:22 UTC) #10
Yuki
https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (right): https://codereview.chromium.org/2350813005/diff/1/third_party/WebKit/Source/bindings/templates/callback_function.cpp#newcode34 third_party/WebKit/Source/bindings/templates/callback_function.cpp:34: ExceptionState exceptionState(scriptState->isolate(), ExceptionState::ExecutionContext, "{{cpp_class}}"); On 2016/09/21 05:01:45, bashi1 (slow ...
4 years, 3 months ago (2016-09-21 07:59:37 UTC) #11
bashi
Followd shiino-san's comment. PTAL. https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (left): https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp#oldcode46 third_party/WebKit/Source/bindings/templates/callback_function.cpp:46: exceptionCatcher.SetVerbose(true); Removed SetVerbose(true) call because ...
4 years, 3 months ago (2016-09-23 01:47:10 UTC) #17
haraken
https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (left): https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp#oldcode46 third_party/WebKit/Source/bindings/templates/callback_function.cpp:46: exceptionCatcher.SetVerbose(true); On 2016/09/23 01:47:10, bashi1 (slow til Sep 26) ...
4 years, 3 months ago (2016-09-23 01:50:34 UTC) #18
bashi
https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp File third_party/WebKit/Source/bindings/templates/callback_function.cpp (left): https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp#oldcode46 third_party/WebKit/Source/bindings/templates/callback_function.cpp:46: exceptionCatcher.SetVerbose(true); On 2016/09/23 01:50:34, haraken wrote: > On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 01:58:32 UTC) #19
haraken
On 2016/09/23 01:58:32, bashi1 (slow til Sep 26) wrote: > https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/templates/callback_function.cpp > File third_party/WebKit/Source/bindings/templates/callback_function.cpp (left): ...
4 years, 3 months ago (2016-09-23 02:04:13 UTC) #20
haraken
On 2016/09/23 02:04:13, haraken wrote: > On 2016/09/23 01:58:32, bashi1 (slow til Sep 26) wrote: ...
4 years, 3 months ago (2016-09-23 02:07:14 UTC) #21
bashi
On 2016/09/23 02:07:14, haraken wrote: > On 2016/09/23 02:04:13, haraken wrote: > > On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 02:29:19 UTC) #22
haraken
On 2016/09/23 02:29:19, bashi1 (slow til Sep 26) wrote: > On 2016/09/23 02:07:14, haraken wrote: ...
4 years, 3 months ago (2016-09-23 02:40:31 UTC) #23
peria
https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl File third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl (right): https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl#newcode37 third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl:37: [ExperimentalCallbackFunction] callback StringSequenceCallbackFunctionSequenceLongArg = sequence<DOMString> (sequence<long> arg); nit: inconsistent ...
4 years, 3 months ago (2016-09-23 03:04:45 UTC) #24
bashi
On 2016/09/23 02:40:31, haraken wrote: > On 2016/09/23 02:29:19, bashi1 (slow til Sep 26) wrote: ...
4 years, 3 months ago (2016-09-23 03:13:38 UTC) #25
haraken
On 2016/09/23 03:13:38, bashi1 (slow til Sep 26) wrote: > On 2016/09/23 02:40:31, haraken wrote: ...
4 years, 3 months ago (2016-09-23 04:31:35 UTC) #28
bashi
On 2016/09/23 04:31:35, haraken wrote: > On 2016/09/23 03:13:38, bashi1 (slow til Sep 26) wrote: ...
4 years, 3 months ago (2016-09-23 05:24:50 UTC) #29
haraken
> > However, if you remove SetVerbose(true), the call site is not allowed to > ...
4 years, 3 months ago (2016-09-23 05:30:06 UTC) #30
bashi
On 2016/09/23 05:30:06, haraken wrote: > > > However, if you remove SetVerbose(true), the call ...
4 years, 3 months ago (2016-09-23 05:32:17 UTC) #31
haraken
On 2016/09/23 05:32:17, bashi1 (slow til Sep 26) wrote: > On 2016/09/23 05:30:06, haraken wrote: ...
4 years, 3 months ago (2016-09-23 05:34:46 UTC) #32
Yuki
lgtm
4 years, 3 months ago (2016-09-23 05:55:39 UTC) #33
bashi
On 2016/09/23 05:34:46, haraken wrote: > On 2016/09/23 05:32:17, bashi1 (slow til Sep 26) wrote: ...
4 years, 3 months ago (2016-09-23 07:05:58 UTC) #34
haraken
On 2016/09/23 07:05:58, bashi1 (slow til Sep 26) wrote: > On 2016/09/23 05:34:46, haraken wrote: ...
4 years, 3 months ago (2016-09-23 07:09:39 UTC) #35
Yuki
On 2016/09/23 07:09:39, haraken wrote: > On 2016/09/23 07:05:58, bashi1 (slow til Sep 26) wrote: ...
4 years, 3 months ago (2016-09-23 07:19:56 UTC) #36
bashi
On 2016/09/23 07:19:56, Yuki wrote: > On 2016/09/23 07:09:39, haraken wrote: > > On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 07:52:41 UTC) #37
Yuki
On 2016/09/23 07:52:41, bashi1 (slow til Sep 26) wrote: > On 2016/09/23 07:19:56, Yuki wrote: ...
4 years, 3 months ago (2016-09-23 08:24:08 UTC) #40
haraken
PS3 LGTM
4 years, 3 months ago (2016-09-23 09:51:09 UTC) #43
bashi
https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl File third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl (right): https://codereview.chromium.org/2350813005/diff/40001/third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl#newcode37 third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl:37: [ExperimentalCallbackFunction] callback StringSequenceCallbackFunctionSequenceLongArg = sequence<DOMString> (sequence<long> arg); On 2016/09/23 ...
4 years, 2 months ago (2016-09-26 02:08:57 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2350813005/100001
4 years, 2 months ago (2016-09-26 02:09:11 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/147760)
4 years, 2 months ago (2016-09-26 04:58:35 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2350813005/140001
4 years, 2 months ago (2016-09-27 07:29:47 UTC) #61
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 2 months ago (2016-09-27 09:09:52 UTC) #62
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 09:11:12 UTC) #64
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a14a3854c3e69df4c7d1cb8c460816b54d6199a9
Cr-Commit-Position: refs/heads/master@{#421154}

Powered by Google App Engine
This is Rietveld 408576698