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

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

Issue 101403002: IDL compiler: Consolidate test IDL files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More Created 7 years 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/V8TestInterfaceDoNotCheckConstants.cpp
diff --git a/Source/bindings/tests/results/V8TestDoNotCheckConstantsInterface.cpp b/Source/bindings/tests/results/V8TestInterfaceDoNotCheckConstants.cpp
similarity index 74%
rename from Source/bindings/tests/results/V8TestDoNotCheckConstantsInterface.cpp
rename to Source/bindings/tests/results/V8TestInterfaceDoNotCheckConstants.cpp
index b5db376157918b23fe15dc2d6b00dcdbb3b88bca..22c86fbec69fa9145f3611d8a075032a56fca263 100644
--- a/Source/bindings/tests/results/V8TestDoNotCheckConstantsInterface.cpp
+++ b/Source/bindings/tests/results/V8TestInterfaceDoNotCheckConstants.cpp
@@ -31,7 +31,7 @@
// This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
#include "config.h"
-#include "V8TestDoNotCheckConstantsInterface.h"
+#include "V8TestInterfaceDoNotCheckConstants.h"
#include "RuntimeEnabledFeatures.h"
#include "bindings/v8/ScriptController.h"
@@ -45,10 +45,10 @@
namespace WebCore {
-static void initializeScriptWrappableForInterface(TestDoNotCheckConstantsInterface* object)
+static void initializeScriptWrappableForInterface(TestInterfaceDoNotCheckConstants* object)
{
if (ScriptWrappable::wrapperCanBeStoredInObject(object))
- ScriptWrappable::setTypeInfoInObject(object, &V8TestDoNotCheckConstantsInterface::wrapperTypeInfo);
+ ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceDoNotCheckConstants::wrapperTypeInfo);
else
ASSERT_NOT_REACHED();
}
@@ -59,26 +59,26 @@ static void initializeScriptWrappableForInterface(TestDoNotCheckConstantsInterfa
// 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::TestDoNotCheckConstantsInterface* object)
+void webCoreInitializeScriptWrappableForInterface(WebCore::TestInterfaceDoNotCheckConstants* object)
{
WebCore::initializeScriptWrappableForInterface(object);
}
namespace WebCore {
-const WrapperTypeInfo V8TestDoNotCheckConstantsInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestDoNotCheckConstantsInterface::GetTemplate, V8TestDoNotCheckConstantsInterface::derefObject, 0, 0, 0, V8TestDoNotCheckConstantsInterface::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype };
+const WrapperTypeInfo V8TestInterfaceDoNotCheckConstants::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceDoNotCheckConstants::GetTemplate, V8TestInterfaceDoNotCheckConstants::derefObject, 0, 0, 0, V8TestInterfaceDoNotCheckConstants::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype };
-namespace TestDoNotCheckConstantsInterfaceV8Internal {
+namespace TestInterfaceDoNotCheckConstantsV8Internal {
template <typename T> void V8_USE(T) { }
-} // namespace TestDoNotCheckConstantsInterfaceV8Internal
+} // namespace TestInterfaceDoNotCheckConstantsV8Internal
-static v8::Handle<v8::FunctionTemplate> ConfigureV8TestDoNotCheckConstantsInterfaceTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
+static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceDoNotCheckConstantsTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
functionTemplate->ReadOnlyPrototype();
v8::Local<v8::Signature> defaultSignature;
- defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestDoNotCheckConstantsInterface", v8::Local<v8::FunctionTemplate>(), V8TestDoNotCheckConstantsInterface::internalFieldCount,
+ defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestInterfaceDoNotCheckConstants", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceDoNotCheckConstants::internalFieldCount,
0, 0,
0, 0,
0, 0,
@@ -88,18 +88,18 @@ static v8::Handle<v8::FunctionTemplate> ConfigureV8TestDoNotCheckConstantsInterf
v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate();
UNUSED_PARAM(instanceTemplate);
UNUSED_PARAM(prototypeTemplate);
- static const V8DOMConfiguration::ConstantConfiguration V8TestDoNotCheckConstantsInterfaceConstants[] = {
+ static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceDoNotCheckConstantsConstants[] = {
{"CONST_VALUE_0", 0},
{"CONST_JAVASCRIPT", 1},
};
- V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8TestDoNotCheckConstantsInterfaceConstants, WTF_ARRAY_LENGTH(V8TestDoNotCheckConstantsInterfaceConstants), isolate);
+ V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8TestInterfaceDoNotCheckConstantsConstants, WTF_ARRAY_LENGTH(V8TestInterfaceDoNotCheckConstantsConstants), isolate);
// Custom toString template
functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::String::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
return functionTemplate;
}
-v8::Handle<v8::FunctionTemplate> V8TestDoNotCheckConstantsInterface::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
+v8::Handle<v8::FunctionTemplate> V8TestInterfaceDoNotCheckConstants::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
V8PerIsolateData* data = V8PerIsolateData::from(isolate);
V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWorldType).find(&wrapperTypeInfo);
@@ -109,27 +109,27 @@ v8::Handle<v8::FunctionTemplate> V8TestDoNotCheckConstantsInterface::GetTemplate
TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
v8::EscapableHandleScope handleScope(isolate);
v8::Local<v8::FunctionTemplate> templ =
- ConfigureV8TestDoNotCheckConstantsInterfaceTemplate(data->rawTemplate(&wrapperTypeInfo, currentWorldType), isolate, currentWorldType);
+ ConfigureV8TestInterfaceDoNotCheckConstantsTemplate(data->rawTemplate(&wrapperTypeInfo, currentWorldType), isolate, currentWorldType);
data->templateMap(currentWorldType).add(&wrapperTypeInfo, UnsafePersistent<v8::FunctionTemplate>(isolate, templ));
return handleScope.Escape(templ);
}
-bool V8TestDoNotCheckConstantsInterface::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType)
+bool V8TestInterfaceDoNotCheckConstants::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValue, currentWorldType);
}
-bool V8TestDoNotCheckConstantsInterface::hasInstanceInAnyWorld(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate)
+bool V8TestInterfaceDoNotCheckConstants::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> V8TestDoNotCheckConstantsInterface::createWrapper(PassRefPtr<TestDoNotCheckConstantsInterface> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+v8::Handle<v8::Object> V8TestInterfaceDoNotCheckConstants::createWrapper(PassRefPtr<TestInterfaceDoNotCheckConstants> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
- ASSERT(!DOMDataStore::containsWrapper<V8TestDoNotCheckConstantsInterface>(impl.get(), isolate));
+ ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceDoNotCheckConstants>(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
@@ -142,17 +142,17 @@ v8::Handle<v8::Object> V8TestDoNotCheckConstantsInterface::createWrapper(PassRef
return wrapper;
installPerContextEnabledProperties(wrapper, impl.get(), isolate);
- V8DOMWrapper::associateObjectWithWrapper<V8TestDoNotCheckConstantsInterface>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
+ V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceDoNotCheckConstants>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
return wrapper;
}
-void V8TestDoNotCheckConstantsInterface::derefObject(void* object)
+void V8TestInterfaceDoNotCheckConstants::derefObject(void* object)
{
fromInternalPointer(object)->deref();
}
template<>
-v8::Handle<v8::Value> toV8NoInline(TestDoNotCheckConstantsInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+v8::Handle<v8::Value> toV8NoInline(TestInterfaceDoNotCheckConstants* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
return toV8(impl, creationContext, isolate);
}

Powered by Google App Engine
This is Rietveld 408576698