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

Unified Diff: Source/bindings/tests/results/V8TestCustomLegacyCallInterface.cpp

Issue 80153003: IDL compiler: [CustomLegacyCall] interfaces, cleanup header conditional spacing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month 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
Index: Source/bindings/tests/results/V8TestCustomLegacyCallInterface.cpp
diff --git a/Source/bindings/tests/results/V8TestCustomIsReachableInterface.cpp b/Source/bindings/tests/results/V8TestCustomLegacyCallInterface.cpp
similarity index 72%
copy from Source/bindings/tests/results/V8TestCustomIsReachableInterface.cpp
copy to Source/bindings/tests/results/V8TestCustomLegacyCallInterface.cpp
index 320bfd5da98a31f09f199091b627a5f2a90772bd..87150f230b136e52ae5f888d5fe8ccfefca42a3f 100644
--- a/Source/bindings/tests/results/V8TestCustomIsReachableInterface.cpp
+++ b/Source/bindings/tests/results/V8TestCustomLegacyCallInterface.cpp
@@ -31,7 +31,7 @@
// This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
#include "config.h"
-#include "V8TestCustomIsReachableInterface.h"
+#include "V8TestCustomLegacyCallInterface.h"
#include "RuntimeEnabledFeatures.h"
#include "bindings/v8/ScriptController.h"
@@ -45,10 +45,10 @@
namespace WebCore {
-static void initializeScriptWrappableForInterface(TestCustomIsReachableInterface* object)
+static void initializeScriptWrappableForInterface(TestCustomLegacyCallInterface* object)
{
if (ScriptWrappable::wrapperCanBeStoredInObject(object))
- ScriptWrappable::setTypeInfoInObject(object, &V8TestCustomIsReachableInterface::wrapperTypeInfo);
+ ScriptWrappable::setTypeInfoInObject(object, &V8TestCustomLegacyCallInterface::wrapperTypeInfo);
else
ASSERT_NOT_REACHED();
}
@@ -59,26 +59,26 @@ static void initializeScriptWrappableForInterface(TestCustomIsReachableInterface
// the local declaration does not pick up the surrounding namespace. Therefore, we provide this function
// in the global namespace.
// (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/feedback/details/664619/the-namespace-of-local-function-declarations-in-c)
-void webCoreInitializeScriptWrappableForInterface(WebCore::TestCustomIsReachableInterface* object)
+void webCoreInitializeScriptWrappableForInterface(WebCore::TestCustomLegacyCallInterface* object)
{
WebCore::initializeScriptWrappableForInterface(object);
}
namespace WebCore {
-const WrapperTypeInfo V8TestCustomIsReachableInterface::wrapperTypeInfo = { V8TestCustomIsReachableInterface::GetTemplate, V8TestCustomIsReachableInterface::derefObject, 0, 0, V8TestCustomIsReachableInterface::resolveWrapperReachability, V8TestCustomIsReachableInterface::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype };
+const WrapperTypeInfo V8TestCustomLegacyCallInterface::wrapperTypeInfo = { V8TestCustomLegacyCallInterface::GetTemplate, V8TestCustomLegacyCallInterface::derefObject, 0, 0, 0, V8TestCustomLegacyCallInterface::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype };
-namespace TestCustomIsReachableInterfaceV8Internal {
+namespace TestCustomLegacyCallInterfaceV8Internal {
template <typename T> void V8_USE(T) { }
-} // namespace TestCustomIsReachableInterfaceV8Internal
+} // namespace TestCustomLegacyCallInterfaceV8Internal
-static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomIsReachableInterfaceTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
+static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomLegacyCallInterfaceTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
functionTemplate->ReadOnlyPrototype();
v8::Local<v8::Signature> defaultSignature;
- defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestCustomIsReachableInterface", v8::Local<v8::FunctionTemplate>(), V8TestCustomIsReachableInterface::internalFieldCount,
+ defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestCustomLegacyCallInterface", v8::Local<v8::FunctionTemplate>(), V8TestCustomLegacyCallInterface::internalFieldCount,
0, 0,
0, 0,
0, 0,
@@ -88,13 +88,14 @@ static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomIsReachableInterfac
v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate();
UNUSED_PARAM(instanceTemplate);
UNUSED_PARAM(prototypeTemplate);
+ functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestCustomLegacyCallInterface::legacyCallCustom);
// Custom toString template
functionTemplate->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->toStringTemplate());
return functionTemplate;
}
-v8::Handle<v8::FunctionTemplate> V8TestCustomIsReachableInterface::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
+v8::Handle<v8::FunctionTemplate> V8TestCustomLegacyCallInterface::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
V8PerIsolateData* data = V8PerIsolateData::from(isolate);
V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWorldType).find(&wrapperTypeInfo);
@@ -104,27 +105,27 @@ v8::Handle<v8::FunctionTemplate> V8TestCustomIsReachableInterface::GetTemplate(v
TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
v8::HandleScope handleScope(isolate);
v8::Handle<v8::FunctionTemplate> templ =
- ConfigureV8TestCustomIsReachableInterfaceTemplate(data->rawTemplate(&wrapperTypeInfo, currentWorldType), isolate, currentWorldType);
+ ConfigureV8TestCustomLegacyCallInterfaceTemplate(data->rawTemplate(&wrapperTypeInfo, currentWorldType), isolate, currentWorldType);
data->templateMap(currentWorldType).add(&wrapperTypeInfo, UnsafePersistent<v8::FunctionTemplate>(isolate, templ));
return handleScope.Close(templ);
}
-bool V8TestCustomIsReachableInterface::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType)
+bool V8TestCustomLegacyCallInterface::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValue, currentWorldType);
}
-bool V8TestCustomIsReachableInterface::hasInstanceInAnyWorld(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate)
+bool V8TestCustomLegacyCallInterface::hasInstanceInAnyWorld(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate)
{
return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValue, MainWorld)
|| V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValue, IsolatedWorld)
|| V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValue, WorkerWorld);
}
-v8::Handle<v8::Object> V8TestCustomIsReachableInterface::createWrapper(PassRefPtr<TestCustomIsReachableInterface> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+v8::Handle<v8::Object> V8TestCustomLegacyCallInterface::createWrapper(PassRefPtr<TestCustomLegacyCallInterface> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
- ASSERT(!DOMDataStore::containsWrapper<V8TestCustomIsReachableInterface>(impl.get(), isolate));
+ ASSERT(!DOMDataStore::containsWrapper<V8TestCustomLegacyCallInterface>(impl.get(), isolate));
if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) {
const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObject(impl.get());
// Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapperTypeInfo. These will both have
@@ -137,11 +138,11 @@ v8::Handle<v8::Object> V8TestCustomIsReachableInterface::createWrapper(PassRefPt
return wrapper;
installPerContextEnabledProperties(wrapper, impl.get(), isolate);
- V8DOMWrapper::associateObjectWithWrapper<V8TestCustomIsReachableInterface>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent);
+ V8DOMWrapper::associateObjectWithWrapper<V8TestCustomLegacyCallInterface>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
return wrapper;
}
-void V8TestCustomIsReachableInterface::derefObject(void* object)
+void V8TestCustomLegacyCallInterface::derefObject(void* object)
{
fromInternalPointer(object)->deref();
}

Powered by Google App Engine
This is Rietveld 408576698