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

Issue 206793006: Add support for [Constructor, Custom=Wrap] (Closed)

Created:
6 years, 9 months ago by Nils Barth (inactive)
Modified:
6 years, 9 months ago
Reviewers:
haraken, sof
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive
Visibility:
Public.

Description

Add support for [Constructor, Custom=Wrap] Adds support for constructors when there's a custom wrap. This is split off as 2/2 bindings-only change from: Implement ImageData constructors. https://codereview.chromium.org/196343032/ Follow-up to: Use wrapper_configuration consistently in bindings https://codereview.chromium.org/199633014/ R=haraken BUG=338804 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169835

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M Source/bindings/templates/methods.cpp View 1 chunk +5 lines, -1 line 5 comments Download
M Source/bindings/tests/idls/TestInterfacePython2.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfacePython2.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfacePython2.cpp View 4 chunks +28 lines, -0 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
Nils Barth (inactive)
Other part of bindings-only change for Sigbjørn's CL. https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp#newcode446 Source/bindings/templates/methods.cpp:446: V8DOMWrapper::associateObjectWithWrapper<{{v8_class}}>(impl.release(), ...
6 years, 9 months ago (2014-03-24 03:13:18 UTC) #1
haraken
LGTM https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp#newcode446 Source/bindings/templates/methods.cpp:446: V8DOMWrapper::associateObjectWithWrapper<{{v8_class}}>(impl.release(), &{{v8_class}}Constructor::wrapperTypeInfo, wrapper, info.GetIsolate(), {{wrapper_configuration}}); On 2014/03/24 03:13:19, ...
6 years, 9 months ago (2014-03-24 03:32:44 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp#newcode446 Source/bindings/templates/methods.cpp:446: V8DOMWrapper::associateObjectWithWrapper<{{v8_class}}>(impl.release(), &{{v8_class}}Constructor::wrapperTypeInfo, wrapper, info.GetIsolate(), {{wrapper_configuration}}); On 2014/03/24 03:32:44, haraken ...
6 years, 9 months ago (2014-03-24 03:33:45 UTC) #3
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 9 months ago (2014-03-24 06:58:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/206793006/1
6 years, 9 months ago (2014-03-24 06:58:40 UTC) #5
commit-bot: I haz the power
Change committed as 169835
6 years, 9 months ago (2014-03-24 07:59:08 UTC) #6
sof
https://codereview.chromium.org/206793006/diff/1/Source/bindings/tests/results/V8TestInterfacePython2.cpp File Source/bindings/tests/results/V8TestInterfacePython2.cpp (right): https://codereview.chromium.org/206793006/diff/1/Source/bindings/tests/results/V8TestInterfacePython2.cpp#newcode85 Source/bindings/tests/results/V8TestInterfacePython2.cpp:85: V8DOMWrapper::associateObjectWithWrapper<V8TestInterfacePython2>(impl.release(), &V8TestInterfacePython2::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); Shouldn't this be calling ...
6 years, 9 months ago (2014-03-24 08:06:43 UTC) #7
sof
https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp#newcode442 Source/bindings/templates/methods.cpp:442: {% if has_custom_wrap %} This isn't complete; the constructor ...
6 years, 9 months ago (2014-03-24 08:16:09 UTC) #8
Nils Barth (inactive)
I don't follow the issue; I just factored out the v8SetReturnValue call. https://codereview.chromium.org/206793006/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp ...
6 years, 9 months ago (2014-03-24 08:49:10 UTC) #9
Nils Barth (inactive)
6 years, 9 months ago (2014-03-24 08:55:27 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/206793006/diff/1/Source/bindings/tests/result...
File Source/bindings/tests/results/V8TestInterfacePython2.cpp (right):

https://codereview.chromium.org/206793006/diff/1/Source/bindings/tests/result...
Source/bindings/tests/results/V8TestInterfacePython2.cpp:85:
V8DOMWrapper::associateObjectWithWrapper<V8TestInterfacePython2>(impl.release(),
&V8TestInterfacePython2::wrapperTypeInfo, wrapper, info.GetIsolate(),
WrapperConfiguration::Dependent);
On 2014/03/24 08:06:43, sof wrote:
> Shouldn't this be calling wrap()?

Oh, good catch!
(Accidentally did for *named* constructors.)

Powered by Google App Engine
This is Rietveld 408576698