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

Issue 2367543004: Extended implementation to use interface as arguments (Closed)

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

Description

Extended implementation to use interface as arguments This CL is connected to Issue 2312093003, which generates bindings for IDL callback functions. This CL exteneded implementation to be able to use not only string or long but also interface as arguments of callback functions. BUG=569301 Committed: https://crrev.com/f2210407f37d733416f6bc11f955cd0ac29ba43c Cr-Commit-Position: refs/heads/master@{#420598}

Patch Set 1 #

Total comments: 37

Patch Set 2 : Addressed comments #

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Addressed comments #

Patch Set 5 : Use generated code for callback function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -29 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/BUILD.gn View 1 2 3 4 2 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp View 1 2 3 4 2 chunks +5 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceObserver.idl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
lkawai
PTAL
4 years, 3 months ago (2016-09-23 01:48:19 UTC) #2
bashi
https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: var div = [document.createElement('div'), document.createElement('div')]; nit: You don't have ...
4 years, 3 months ago (2016-09-23 02:16:06 UTC) #5
lkawai
PTAL https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: var div = [document.createElement('div'), document.createElement('div')]; On 2016/09/23 02:16:05, ...
4 years, 3 months ago (2016-09-23 02:43:42 UTC) #6
peria
I'm sorry to put comments on an old PS. https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: ...
4 years, 3 months ago (2016-09-23 02:50:06 UTC) #7
bashi
https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: var div = [document.createElement('div'), document.createElement('div')]; On 2016/09/23 02:43:41, lkawai ...
4 years, 3 months ago (2016-09-23 02:57:56 UTC) #8
bashi
https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/Source/bindings/scripts/v8_callback_function.py File third_party/WebKit/Source/bindings/scripts/v8_callback_function.py (right): https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/Source/bindings/scripts/v8_callback_function.py#newcode36 third_party/WebKit/Source/bindings/scripts/v8_callback_function.py:36: cpp_includes.update(argument.idl_type.includes_for_type(callback_function.extended_attributes)) On 2016/09/23 02:50:05, peria wrote: > On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 03:04:05 UTC) #9
lkawai
PTAL https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: var div = [document.createElement('div'), document.createElement('div')]; On 2016/09/23 02:50:05, ...
4 years, 3 months ago (2016-09-23 05:35:45 UTC) #11
bashi
lgtm on my side https://codereview.chromium.org/2367543004/diff/40001/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/40001/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: var divElements = document.createElement('div'); divElements ...
4 years, 3 months ago (2016-09-23 05:45:18 UTC) #13
lkawai
PTAL https://codereview.chromium.org/2367543004/diff/40001/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html File third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html (right): https://codereview.chromium.org/2367543004/diff/40001/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html:20: var divElements = document.createElement('div'); On 2016/09/23 05:45:18, bashi1 ...
4 years, 3 months ago (2016-09-23 06:05:37 UTC) #14
haraken
LGTM
4 years, 3 months ago (2016-09-23 06:19:28 UTC) #17
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/2367543004/60001
4 years, 3 months ago (2016-09-23 08:14:24 UTC) #22
Yuki
LGTM.
4 years, 3 months ago (2016-09-23 10:15:09 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-23 11:35:48 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f2210407f37d733416f6bc11f955cd0ac29ba43c Cr-Commit-Position: refs/heads/master@{#420598}
4 years, 3 months ago (2016-09-23 11:38:18 UTC) #26
peria
4 years, 3 months ago (2016-09-23 15:34:49 UTC) #27
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp (right):

https://codereview.chromium.org/2367543004/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp:32:
ScriptWrappable* scriptWrappable;
On 2016/09/23 05:35:45, lkawai wrote:
> On 2016/09/23 02:50:05, peria wrote:
> > initialize |scriptWrappable|
> 
> In the past CL, I got a comment that initialization should be written in the
> following function. Which is better?

All variables must be initialized at their declarations.  Otherwise, when
someone updates the code later, they may use uninitialized values.

Powered by Google App Engine
This is Rietveld 408576698