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

Unified Diff: Source/bindings/tests/results/V8TestInterfaceImplementedAs.h

Issue 14988008: Rename DOMPath IDL interface to Path to match the specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
Index: Source/bindings/tests/results/V8TestInterfaceImplementedAs.h
diff --git a/Source/bindings/tests/results/V8TestNode.h b/Source/bindings/tests/results/V8TestInterfaceImplementedAs.h
similarity index 69%
copy from Source/bindings/tests/results/V8TestNode.h
copy to Source/bindings/tests/results/V8TestInterfaceImplementedAs.h
index 44b65ecf7e7e43cccd6d552ff872cd01991fff0c..66e46ca0f2311b5da97be68d2763fefde1f87162 100644
--- a/Source/bindings/tests/results/V8TestNode.h
+++ b/Source/bindings/tests/results/V8TestInterfaceImplementedAs.h
@@ -18,10 +18,10 @@
Boston, MA 02111-1307, USA.
*/
-#ifndef V8TestNode_h
-#define V8TestNode_h
+#ifndef V8TestInterfaceImplementedAs_h
+#define V8TestInterfaceImplementedAs_h
-#include "bindings/bindings/tests/idls/TestNode.h"
+#include "bindings/bindings/tests/idls/RealClass.h"
#include "bindings/v8/V8Binding.h"
#include "bindings/v8/V8DOMWrapper.h"
#include "bindings/v8/WrapperTypeInfo.h"
@@ -31,36 +31,34 @@
namespace WebCore {
-class V8TestNode {
+class V8TestInterfaceImplementedAs {
public:
- static const bool hasDependentLifetime = true;
+ static const bool hasDependentLifetime = false;
static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldType);
static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
static v8::Persistent<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWorldType);
- static TestNode* toNative(v8::Handle<v8::Object> object)
+ static RealClass* toNative(v8::Handle<v8::Object> object)
{
- return reinterpret_cast<TestNode*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+ return reinterpret_cast<RealClass*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
}
static void derefObject(void*);
static WrapperTypeInfo info;
- static EventTarget* toEventTarget(v8::Handle<v8::Object>);
- static v8::Handle<v8::Value> constructorCallback(const v8::Arguments&);
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
- static void installPerContextProperties(v8::Handle<v8::Object>, TestNode*, v8::Isolate*) { }
+ static void installPerContextProperties(v8::Handle<v8::Object>, RealClass*, v8::Isolate*) { }
static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8::Isolate*) { }
private:
- friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
- static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestNode>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
+ friend v8::Handle<v8::Object> wrap(RealClass*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
+ static v8::Handle<v8::Object> createWrapper(PassRefPtr<RealClass>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
};
template<>
-class WrapperTypeTraits<TestNode > {
+class WrapperTypeTraits<RealClass > {
public:
- static WrapperTypeInfo* info() { return &V8TestNode::info; }
+ static WrapperTypeInfo* info() { return &V8TestInterfaceImplementedAs::info; }
};
-inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Object> wrap(RealClass* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
@@ -68,12 +66,12 @@ inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creati
const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObject(impl);
// Might be a XXXConstructor::info instead of an XXX::info. These will both have
// the same object de-ref functions, though, so use that as the basis of the check.
- RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestNode::info.derefObjectFunction);
+ RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestInterfaceImplementedAs::info.derefObjectFunction);
}
- return V8TestNode::createWrapper(impl, creationContext, isolate);
+ return V8TestInterfaceImplementedAs::createWrapper(impl, creationContext, isolate);
}
-inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Value> toV8(RealClass* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
if (UNLIKELY(!impl))
return v8NullWithCheck(isolate);
@@ -83,7 +81,7 @@ inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio
return wrap(impl, creationContext, isolate);
}
-inline v8::Handle<v8::Value> toV8ForMainWorld(TestNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Value> toV8ForMainWorld(RealClass* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(worldType(isolate) == MainWorld);
if (UNLIKELY(!impl))
@@ -95,7 +93,7 @@ inline v8::Handle<v8::Value> toV8ForMainWorld(TestNode* impl, v8::Handle<v8::Obj
}
template<class HolderContainer, class Wrappable>
-inline v8::Handle<v8::Value> toV8Fast(TestNode* impl, const HolderContainer& container, Wrappable* wrappable)
+inline v8::Handle<v8::Value> toV8Fast(RealClass* impl, const HolderContainer& container, Wrappable* wrappable)
{
if (UNLIKELY(!impl))
return v8Null(container.GetIsolate());
@@ -106,7 +104,7 @@ inline v8::Handle<v8::Value> toV8Fast(TestNode* impl, const HolderContainer& con
}
template<class HolderContainer, class Wrappable>
-inline v8::Handle<v8::Value> toV8FastForMainWorld(TestNode* impl, const HolderContainer& container, Wrappable* wrappable)
+inline v8::Handle<v8::Value> toV8FastForMainWorld(RealClass* impl, const HolderContainer& container, Wrappable* wrappable)
{
ASSERT(worldType(container.GetIsolate()) == MainWorld);
if (UNLIKELY(!impl))
@@ -118,23 +116,23 @@ inline v8::Handle<v8::Value> toV8FastForMainWorld(TestNode* impl, const HolderCo
}
template<class HolderContainer, class Wrappable>
-inline v8::Handle<v8::Value> toV8FastForMainWorld(PassRefPtr< TestNode > impl, const HolderContainer& container, Wrappable* wrappable)
+inline v8::Handle<v8::Value> toV8FastForMainWorld(PassRefPtr< RealClass > impl, const HolderContainer& container, Wrappable* wrappable)
{
return toV8FastForMainWorld(impl.get(), container, wrappable);
}
template<class HolderContainer, class Wrappable>
-inline v8::Handle<v8::Value> toV8Fast(PassRefPtr< TestNode > impl, const HolderContainer& container, Wrappable* wrappable)
+inline v8::Handle<v8::Value> toV8Fast(PassRefPtr< RealClass > impl, const HolderContainer& container, Wrappable* wrappable)
{
return toV8Fast(impl.get(), container, wrappable);
}
-inline v8::Handle<v8::Value> toV8(PassRefPtr< TestNode > impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Value> toV8(PassRefPtr< RealClass > impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
return toV8(impl.get(), creationContext, isolate);
}
}
-#endif // V8TestNode_h
+#endif // V8TestInterfaceImplementedAs_h
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698