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

Unified Diff: Source/bindings/templates/interface.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
« no previous file with comments | « Source/bindings/templates/dictionary_v8.cpp ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/interface.h
diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h
index b3b3e7b0a0b72f87362533f33a552e10e8b338cf..22719e3ca822880bea93a7c24d8638b3d4d21313 100644
--- a/Source/bindings/templates/interface.h
+++ b/Source/bindings/templates/interface.h
@@ -45,11 +45,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 {{cpp_class}}* toNative(v8::Handle<v8::Object> object)
+ static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object)
{
- return fromInternalPointer(blink::toInternalPointer(object));
+ return toImpl(blink::toScriptWrappableBase(object));
}
- static {{cpp_class}}* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
+ static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
static const WrapperTypeInfo wrapperTypeInfo;
static void refObject(ScriptWrappableBase* internalPointer);
static void derefObject(ScriptWrappableBase* internalPointer);
@@ -148,14 +148,14 @@ public:
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}};
{% endif %}
{# End custom internal fields #}
- static inline ScriptWrappableBase* toInternalPointer({{cpp_class}}* impl)
+ static inline ScriptWrappableBase* toScriptWrappableBase({{cpp_class}}* impl)
{
- return impl->toInternalPointer();
+ return impl->toScriptWrappableBase();
}
- static inline {{cpp_class}}* fromInternalPointer(ScriptWrappableBase* internalPointer)
+ static inline {{cpp_class}}* toImpl(ScriptWrappableBase* internalPointer)
{
- return ScriptWrappableBase::fromInternalPointer<{{cpp_class}}>(internalPointer);
+ return internalPointer->toImpl<{{cpp_class}}>();
}
{% if interface_name == 'Window' %}
static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8::AccessType, v8::Local<v8::Value> data);
« no previous file with comments | « Source/bindings/templates/dictionary_v8.cpp ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698