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

Unified Diff: third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp

Issue 2183623004: Add IDLDictionaryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update class description Created 4 years, 5 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: third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp b/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp
index 1d13190eb01f7d8120fb1546fa0c1c7b0a12b0ad..769b1ce5854fe2aaa8e754f3b7bc1f3839daf62b 100644
--- a/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp
+++ b/third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp
@@ -88,14 +88,14 @@ void {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, {{
{% endfor %}
}
-v8::Local<v8::Value> toV8(const {{cpp_class}}& impl, v8::Local<v8::Object> creationContext, v8::Isolate* isolate)
+v8::Local<v8::Value> {{cpp_class}}::toV8Impl(v8::Local<v8::Object> creationContext, v8::Isolate* isolate) const
{
v8::Local<v8::Object> v8Object = v8::Object::New(isolate);
{% if parent_v8_class %}
- if (!toV8{{parent_cpp_class}}(impl, v8Object, creationContext, isolate))
+ if (!toV8{{parent_cpp_class}}(*this, v8Object, creationContext, isolate))
return v8::Local<v8::Value>();
{% endif %}
- if (!toV8{{cpp_class}}(impl, v8Object, creationContext, isolate))
+ if (!toV8{{cpp_class}}(*this, v8Object, creationContext, isolate))
return v8::Local<v8::Value>();
return v8Object;
}

Powered by Google App Engine
This is Rietveld 408576698