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

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

Issue 22649003: Have the Performance interface inherit EventTarget (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline additional w3c test Created 7 years, 4 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/tests/idls/TestObject.idl ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestObject.h
diff --git a/Source/bindings/tests/results/V8TestObject.h b/Source/bindings/tests/results/V8TestObject.h
index a6de18b4dee9ecdd7010ba1b2100e308ed850afc..553a94fc6d04b782aabdfbcc6c4c728a9fbfc9a8 100644
--- a/Source/bindings/tests/results/V8TestObject.h
+++ b/Source/bindings/tests/results/V8TestObject.h
@@ -21,6 +21,7 @@
#ifndef V8TestObject_h
#define V8TestObject_h
+#include "V8EventTarget.h"
#include "bindings/bindings/tests/idls/TestObj.h"
#include "bindings/v8/V8Binding.h"
#include "bindings/v8/V8DOMWrapper.h"
@@ -39,6 +40,7 @@ public:
}
static void derefObject(void*);
static WrapperTypeInfo info;
+ static EventTarget* toEventTarget(v8::Handle<v8::Object>);
static void customMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
static void customMethodWithArgsMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
static void classMethod2MethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
@@ -49,12 +51,12 @@ public:
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1;
static inline void* toInternalPointer(TestObj* impl)
{
- return impl;
+ return V8EventTarget::toInternalPointer(impl);
}
static inline TestObj* fromInternalPointer(void* object)
{
- return static_cast<TestObj*>(object);
+ return static_cast<TestObj*>(V8EventTarget::fromInternalPointer(object));
}
static void installPerContextProperties(v8::Handle<v8::Object>, TestObj*, v8::Isolate*);
static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8::Isolate*);
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698