Index: third_party/WebKit/Source/bindings/tests/results/modules/V8VoidCallbackFunctionModules.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8VoidCallbackFunctionModules.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8VoidCallbackFunctionModules.cpp |
deleted file mode 100644 |
index b3991db6552797f4e1c77b0442c2c1abe44200cd..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/bindings/tests/results/modules/V8VoidCallbackFunctionModules.cpp |
+++ /dev/null |
@@ -1,60 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
- |
-// clang-format off |
- |
-#include "V8VoidCallbackFunctionModules.h" |
- |
-#include "bindings/core/v8/ScriptState.h" |
-#include "bindings/core/v8/ToV8.h" |
-#include "bindings/core/v8/V8Binding.h" |
-#include "core/dom/ExecutionContext.h" |
-#include "wtf/Assertions.h" |
- |
-namespace blink { |
- |
-V8VoidCallbackFunctionModules::V8VoidCallbackFunctionModules(v8::Isolate* isolate, v8::Local<v8::Function> callback) |
- : m_callback(isolate, callback) |
-{ |
- DCHECK(!m_callback.isEmpty()); |
- m_callback.setPhantom(); |
-} |
- |
-DEFINE_TRACE(V8VoidCallbackFunctionModules) |
-{ |
-} |
- |
-bool V8VoidCallbackFunctionModules::call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, ExceptionState& exceptionState) |
-{ |
- if (!scriptState->contextIsValid()) |
- return false; |
- |
- ExecutionContext* context = scriptState->getExecutionContext(); |
- DCHECK(context); |
- if (context->activeDOMObjectsAreSuspended() || context->activeDOMObjectsAreStopped()) |
- return false; |
- |
- if (m_callback.isEmpty()) |
- return false; |
- |
- ScriptState::Scope scope(scriptState); |
- |
- v8::Local<v8::Value> thisValue = toV8(scriptWrappable, scriptState->context()->Global(), scriptState->isolate()); |
- |
- v8::Local<v8::Value> *argv = nullptr; |
- |
- v8::Local<v8::Value> v8ReturnValue; |
- v8::TryCatch exceptionCatcher(scriptState->isolate()); |
- exceptionCatcher.SetVerbose(true); |
- |
- if (V8ScriptRunner::callFunction(m_callback.newLocal(scriptState->isolate()), scriptState->getExecutionContext(), thisValue, 0, argv, scriptState->isolate()).ToLocal(&v8ReturnValue)) |
- { |
- return true; |
- } |
- return false; |
-} |
- |
-} // namespace blink |