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

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

Issue 154133003: IDL compiler: sync Python to r166698 (and add test case) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/V8TestInterfaceWillBeGarbageCollected.h
diff --git a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h
index 6810eb9a133ae736ed89be19c3a2de6c92e89b12..e209926aa4cfd7ff088ac5f8b8a20cf1a9232fdd 100644
--- a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h
+++ b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h
@@ -33,6 +33,7 @@
#ifndef V8TestInterfaceWillBeGarbageCollected_h
#define V8TestInterfaceWillBeGarbageCollected_h
+#include "V8EventTarget.h"
#include "bindings/tests/idls/TestInterfaceWillBeGarbageCollected.h"
#include "bindings/v8/V8Binding.h"
#include "bindings/v8/V8DOMWrapper.h"
@@ -51,17 +52,19 @@ public:
}
static const WrapperTypeInfo wrapperTypeInfo;
static void derefObject(void*);
+ static EventTarget* toEventTarget(v8::Handle<v8::Object>);
static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 0;
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1;
+ static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCount + 0;
+ static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 1;
+ static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 2;
static inline void* toInternalPointer(TestInterfaceWillBeGarbageCollected* impl)
{
- return impl;
+ return V8EventTarget::toInternalPointer(impl);
}
static inline TestInterfaceWillBeGarbageCollected* fromInternalPointer(void* object)
{
- return static_cast<TestInterfaceWillBeGarbageCollected*>(object);
+ return static_cast<TestInterfaceWillBeGarbageCollected*>(V8EventTarget::fromInternalPointer(object));
}
static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestInterfaceWillBeGarbageCollected*, v8::Isolate*) { }
static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { }

Powered by Google App Engine
This is Rietveld 408576698