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

Unified Diff: Source/bindings/templates/callback_interface.h

Issue 112383002: IDL compiler: sync Python to r163665 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: New test results Created 7 years 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/templates/callback_interface.h
diff --git a/Source/bindings/templates/callback_interface.h b/Source/bindings/templates/callback_interface.h
index 9ec7757bf552533d76107ada5f65a247554599fa..acd58673bea4b5b2d1d81b7b924e6983129afd9e 100644
--- a/Source/bindings/templates/callback_interface.h
+++ b/Source/bindings/templates/callback_interface.h
@@ -46,7 +46,7 @@ class ExecutionContext;
class {{v8_class}} : public {{cpp_class}}, public ActiveDOMCallback {
public:
- static PassOwnPtr<{{v8_class}}> create(v8::Handle<v8::Object> callback, ExecutionContext* context)
+ static PassOwnPtr<{{v8_class}}> create(v8::Handle<v8::Function> callback, ExecutionContext* context)
{
ASSERT(context);
return adoptPtr(new {{v8_class}}(callback, context));
@@ -58,9 +58,9 @@ public:
virtual {{method.return_cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}});
{% endfor %}
private:
- {{v8_class}}(v8::Handle<v8::Object>, ExecutionContext*);
+ {{v8_class}}(v8::Handle<v8::Function>, ExecutionContext*);
- ScopedPersistent<v8::Object> m_callback;
+ ScopedPersistent<v8::Function> m_callback;
RefPtr<DOMWrapperWorld> m_world;
};
« no previous file with comments | « Source/bindings/scripts/unstable/v8_callback_interface.py ('k') | Source/bindings/templates/callback_interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698