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

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

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/V8TestInterfaceGarbageCollected.h
diff --git a/Source/bindings/tests/results/V8TestInterfaceGarbageCollected.h b/Source/bindings/tests/results/V8TestInterfaceGarbageCollected.h
index c225429214a8a61de1e49ef4fe1907c4c2d3af99..af06fd4fdb178ab5c01c2c70d45288cd521c0590 100644
--- a/Source/bindings/tests/results/V8TestInterfaceGarbageCollected.h
+++ b/Source/bindings/tests/results/V8TestInterfaceGarbageCollected.h
@@ -22,11 +22,11 @@ public:
static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*);
static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Value>, v8::Isolate*);
static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
- static TestInterfaceGarbageCollected* toNative(v8::Handle<v8::Object> object)
+ static TestInterfaceGarbageCollected* toImpl(v8::Handle<v8::Object> object)
{
- return fromInternalPointer(blink::toInternalPointer(object));
+ return toImpl(blink::toScriptWrappableBase(object));
}
- static TestInterfaceGarbageCollected* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
+ static TestInterfaceGarbageCollected* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
static const WrapperTypeInfo wrapperTypeInfo;
static void refObject(ScriptWrappableBase* internalPointer);
static void derefObject(ScriptWrappableBase* internalPointer);
@@ -36,14 +36,14 @@ public:
static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCount + 0;
static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 1;
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1 + 1;
- static inline ScriptWrappableBase* toInternalPointer(TestInterfaceGarbageCollected* impl)
+ static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceGarbageCollected* impl)
{
- return impl->toInternalPointer();
+ return impl->toScriptWrappableBase();
}
- static inline TestInterfaceGarbageCollected* fromInternalPointer(ScriptWrappableBase* internalPointer)
+ static inline TestInterfaceGarbageCollected* toImpl(ScriptWrappableBase* internalPointer)
{
- return ScriptWrappableBase::fromInternalPointer<TestInterfaceGarbageCollected>(internalPointer);
+ return internalPointer->toImpl<TestInterfaceGarbageCollected>();
}
static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8::Isolate*) { }
static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { }

Powered by Google App Engine
This is Rietveld 408576698