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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp

Issue 2802223002: bindings: Throw a type error if converting an interface or callback function fails. (Closed)
Patch Set: Add |callback_function_name| to the callback function template Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 0, 72 0,
73 argv, 73 argv,
74 isolate).ToLocal(&v8ReturnValue)) { 74 isolate).ToLocal(&v8ReturnValue)) {
75 return false; 75 return false;
76 } 76 }
77 77
78 return true; 78 return true;
79 } 79 }
80 80
81 VoidCallbackFunctionModules* NativeValueTraits<VoidCallbackFunctionModules>::nat iveValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& excep tionState) { 81 VoidCallbackFunctionModules* NativeValueTraits<VoidCallbackFunctionModules>::nat iveValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& excep tionState) {
82 return VoidCallbackFunctionModules::create(ScriptState::current(isolate), valu e); 82 VoidCallbackFunctionModules* nativeValue = VoidCallbackFunctionModules::create (ScriptState::current(isolate), value);
83 if (!nativeValue)
84 exceptionState.throwTypeError("Unable to convert value to VoidCallbackFuncti onModules.");
85 return nativeValue;
83 } 86 }
84 87
85 } // namespace blink 88 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698