OLD | NEW |
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 v8::Local<v8::Value> v8ReturnValue; | 71 v8::Local<v8::Value> v8ReturnValue; |
72 if (!V8ScriptRunner::CallFunction(m_callback.NewLocal(isolate), | 72 if (!V8ScriptRunner::CallFunction(m_callback.NewLocal(isolate), |
73 context, | 73 context, |
74 thisValue, | 74 thisValue, |
75 1, | 75 1, |
76 argv, | 76 argv, |
77 isolate).ToLocal(&v8ReturnValue)) { | 77 isolate).ToLocal(&v8ReturnValue)) { |
78 return false; | 78 return false; |
79 } | 79 } |
80 | 80 |
81 Vector<String> cppValue = ToImplArray<Vector<String>>(v8ReturnValue, 0, m_scri
ptState->GetIsolate(), exceptionState); | 81 Vector<String> cppValue = NativeValueTraits<IDLSequence<IDLString>>::NativeVal
ue(m_scriptState->GetIsolate(), v8ReturnValue, exceptionState); |
82 if (exceptionState.HadException()) | 82 if (exceptionState.HadException()) |
83 return false; | 83 return false; |
84 returnValue = cppValue; | 84 returnValue = cppValue; |
85 return true; | 85 return true; |
86 } | 86 } |
87 | 87 |
88 StringSequenceCallbackFunctionLongSequenceArg* NativeValueTraits<StringSequenceC
allbackFunctionLongSequenceArg>::NativeValue(v8::Isolate* isolate, v8::Local<v8:
:Value> value, ExceptionState& exceptionState) { | 88 StringSequenceCallbackFunctionLongSequenceArg* NativeValueTraits<StringSequenceC
allbackFunctionLongSequenceArg>::NativeValue(v8::Isolate* isolate, v8::Local<v8:
:Value> value, ExceptionState& exceptionState) { |
89 StringSequenceCallbackFunctionLongSequenceArg* nativeValue = StringSequenceCal
lbackFunctionLongSequenceArg::Create(ScriptState::Current(isolate), value); | 89 StringSequenceCallbackFunctionLongSequenceArg* nativeValue = StringSequenceCal
lbackFunctionLongSequenceArg::Create(ScriptState::Current(isolate), value); |
90 if (!nativeValue) { | 90 if (!nativeValue) { |
91 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 91 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
92 "StringSequenceCallbackFunctionLongSequenceArg")); | 92 "StringSequenceCallbackFunctionLongSequenceArg")); |
93 } | 93 } |
94 return nativeValue; | 94 return nativeValue; |
95 } | 95 } |
96 | 96 |
97 } // namespace blink | 97 } // namespace blink |
OLD | NEW |