#include "third_party/blink/renderer/bindings/core/v8/script_function.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
namespace blink {
namespace {
void InstallCallableHolderTemplate(v8::Isolate*,
const DOMWrapperWorld&,
v8::Local<v8::Template> interface_template) { … }
const WrapperTypeInfo callable_holder_info = …;
}
class CORE_EXPORT CallableHolder final : public ScriptWrappable { … };
const WrapperTypeInfo& CallableHolder::wrapper_type_info_ = …;
ScriptValue ScriptFunction::Callable::Call(ScriptState*, ScriptValue) { … }
void ScriptFunction::Callable::CallRaw(
ScriptState* script_state,
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
ScriptFunction::ScriptFunction(ScriptState* script_state, Callable* callable)
: … { … }
}