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

Unified Diff: Source/bindings/v8/ScriptFunction.cpp

Issue 351423002: Moved files under Source/bindings/v8 to Source/bindings/core/v8. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ScriptFunction.h ('k') | Source/bindings/v8/ScriptFunctionCall.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptFunction.cpp
diff --git a/Source/bindings/v8/ScriptFunction.cpp b/Source/bindings/v8/ScriptFunction.cpp
deleted file mode 100644
index 18315a4b6e367960e3d7fff6b8b2fab06f413f09..0000000000000000000000000000000000000000
--- a/Source/bindings/v8/ScriptFunction.cpp
+++ /dev/null
@@ -1,32 +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.
-
-#include "config.h"
-#include "bindings/v8/ScriptFunction.h"
-
-#include "bindings/v8/V8Binding.h"
-
-namespace WebCore {
-
-void ScriptFunction::callCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
-{
- v8::Isolate* isolate = args.GetIsolate();
- ASSERT(!args.Data().IsEmpty());
- ScriptFunction* function = ScriptFunction::Cast(args.Data());
- v8::Local<v8::Value> value = args.Length() > 0 ? args[0] : v8::Local<v8::Value>(v8::Undefined(isolate));
-
- ScriptValue result = function->call(ScriptValue(ScriptState::current(isolate), value));
-
- v8SetReturnValue(args, result.v8Value());
-}
-
-v8::Handle<v8::Function> ScriptFunction::adoptByGarbageCollector(PassOwnPtr<ScriptFunction> function)
-{
- if (!function)
- return v8::Handle<v8::Function>();
- v8::Isolate* isolate = function->isolate();
- return createClosure(&ScriptFunction::callCallback, function.leakPtr()->releaseToV8GarbageCollector(), isolate);
-}
-
-} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/ScriptFunction.h ('k') | Source/bindings/v8/ScriptFunctionCall.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698