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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 v8::Local<v8::Value> v8ReturnValue; | 64 v8::Local<v8::Value> v8ReturnValue; |
65 v8::TryCatch exceptionCatcher(m_scriptState->isolate()); | 65 v8::TryCatch exceptionCatcher(m_scriptState->isolate()); |
66 exceptionCatcher.SetVerbose(true); | 66 exceptionCatcher.SetVerbose(true); |
67 | 67 |
68 if (V8ScriptRunner::callFunction(m_callback.newLocal(m_scriptState->isolate())
, m_scriptState->getExecutionContext(), thisValue, 0, argv, m_scriptState->isola
te()).ToLocal(&v8ReturnValue)) { | 68 if (V8ScriptRunner::callFunction(m_callback.newLocal(m_scriptState->isolate())
, m_scriptState->getExecutionContext(), thisValue, 0, argv, m_scriptState->isola
te()).ToLocal(&v8ReturnValue)) { |
69 return true; | 69 return true; |
70 } | 70 } |
71 return false; | 71 return false; |
72 } | 72 } |
73 | 73 |
| 74 VoidCallbackFunction* NativeValueTraits<VoidCallbackFunction>::nativeValue(v8::I
solate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 75 return VoidCallbackFunction::create(ScriptState::current(isolate), value); |
| 76 } |
| 77 |
74 } // namespace blink | 78 } // namespace blink |
OLD | NEW |