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

Issue 2588303002: bindings: Don't wrap nullable callback functions in Nullable<T> (Closed)

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

Description

bindings: Don't wrap nullable callback functions in Nullable<T> The code generator wrongly uses `Nullable<Callback*>` when nullable callback functions are used like below: callback C = void(); interface I { void f(C? callback); } Since C++ impl of callback functions are garbage collected types, we can just use `Callback*`. BUG=675859 Committed: https://crrev.com/ab4bb3dbcec83cc7220b011b5e313eebc260a7dc Cr-Commit-Position: refs/heads/master@{#439816}

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments #

Patch Set 3 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 24 (12 generated)
bashi
PTAL
4 years ago (2016-12-20 06:18:21 UTC) #4
peria
lgtm
4 years ago (2016-12-20 06:21:01 UTC) #5
Yuki
LGTM. https://codereview.chromium.org/2588303002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_types.py File third_party/WebKit/Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/2588303002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_types.py#newcode972 third_party/WebKit/Source/bindings/scripts/v8_types.py:972: or idl_type.is_custom_callback_function or idl_type.is_callback_interface) nit: You may want ...
4 years ago (2016-12-20 07:03:30 UTC) #6
bashi
https://codereview.chromium.org/2588303002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_types.py File third_party/WebKit/Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/2588303002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_types.py#newcode972 third_party/WebKit/Source/bindings/scripts/v8_types.py:972: or idl_type.is_custom_callback_function or idl_type.is_callback_interface) On 2016/12/20 07:03:30, Yuki wrote: ...
4 years ago (2016-12-20 07:32:17 UTC) #7
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/2588303002/20001
4 years ago (2016-12-20 07:32:54 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/89385) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
4 years ago (2016-12-20 08:21:18 UTC) #12
haraken
LGTM
4 years ago (2016-12-20 09:40:48 UTC) #13
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/2588303002/40001
4 years ago (2016-12-20 13:58:54 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-20 16:20:06 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ab4bb3dbcec83cc7220b011b5e313eebc260a7dc Cr-Commit-Position: refs/heads/master@{#439816}
4 years ago (2016-12-20 16:22:15 UTC) #21
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2588303002/diff/40001/third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp File third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp (right): https://codereview.chromium.org/2588303002/diff/40001/third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp#newcode258 third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp:258: voidCallbackFunctionArg = VoidCallbackFunction::create(ScriptState::current(info.GetIsolate()), v8::Local<v8::Function>::Cast(info[0])); bashi@, I think here we ...
4 years ago (2016-12-22 11:34:17 UTC) #23
bashi
3 years, 12 months ago (2016-12-26 08:30:25 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2588303002/diff/40001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp
(right):

https://codereview.chromium.org/2588303002/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp:258:
voidCallbackFunctionArg =
VoidCallbackFunction::create(ScriptState::current(info.GetIsolate()),
v8::Local<v8::Function>::Cast(info[0]));
On 2016/12/22 11:34:17, Zhiqiang Zhang wrote:
> bashi@, I think here we need a null-check for info[0] before creating
> VoidCallbackFunction?

Sorry I missed this. Yes, we should add check. Uploaded a fix.
https://codereview.chromium.org/2607433002/

Powered by Google App Engine
This is Rietveld 408576698