Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
| diff --git a/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
| index ccf2c5d782c48881e86f51e95972dcb01bea7ae9..def34ae745b35433cc3fa9788fe06de4c50002a2 100644 |
| --- a/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
| +++ b/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl |
| @@ -74,6 +74,10 @@ bool {{cpp_class}}::call({{argument_declarations | join(', ')}}) { |
| return false; |
| } |
| +{{cpp_class}}* NativeValueTraits<{{cpp_class}}>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| + return {{cpp_class}}::create(ScriptState::current(isolate), value); |
|
haraken
2017/03/06 12:56:33
If this nativeValue() is expected to be not used,
Raphael Kubo da Costa (rakuco)
2017/03/06 14:29:17
I don't think there's anything preventing callback
|
| +} |
| + |
| } // namespace blink |
| {% endfilter %}{# format_blink_cpp_source_code #} |