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

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

Issue 101443002: IDL compiler: remove redundant '_name' from template parameters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/templates/callback_interface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/callback_interface.h
diff --git a/Source/bindings/templates/callback_interface.h b/Source/bindings/templates/callback_interface.h
index 35b1db5c61b2fc0f8e9203acf2df5478835285a1..bf836e793a97434fbab5dc55f4e26a04ae21fa00 100644
--- a/Source/bindings/templates/callback_interface.h
+++ b/Source/bindings/templates/callback_interface.h
@@ -32,8 +32,8 @@
{# FIXME: Rename to Python when switch #}
// This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
-#ifndef {{v8_class_name}}_h
-#define {{v8_class_name}}_h
+#ifndef {{v8_class}}_h
+#define {{v8_class}}_h
{% filter conditional(conditional_string) %}
{% for filename in header_includes %}
@@ -44,18 +44,18 @@ namespace WebCore {
class ExecutionContext;
-class {{v8_class_name}} : public {{cpp_class_name}}, public ActiveDOMCallback {
+class {{v8_class}} : public {{cpp_class}}, public ActiveDOMCallback {
public:
{% set ptr_type = 'PassRefPtr' if ref_counted else 'PassOwnPtr' %}
{% set adopt_type = 'adoptRef' if ref_counted else 'adoptPtr' %}
- static {{ptr_type}}<{{v8_class_name}}> create(v8::Handle<v8::Value> jsValue, ExecutionContext* context)
+ static {{ptr_type}}<{{v8_class}}> create(v8::Handle<v8::Value> jsValue, ExecutionContext* context)
{
ASSERT(jsValue->IsObject());
ASSERT(context);
- return {{adopt_type}}(new {{v8_class_name}}(v8::Handle<v8::Object>::Cast(jsValue), context));
+ return {{adopt_type}}(new {{v8_class}}(v8::Handle<v8::Object>::Cast(jsValue), context));
}
- virtual ~{{v8_class_name}}();
+ virtual ~{{v8_class}}();
{% for method in methods %}
virtual {{method.return_cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}});
@@ -64,7 +64,7 @@ public:
virtual ExecutionContext* executionContext() const { return ContextLifecycleObserver::executionContext(); }
private:
- {{v8_class_name}}(v8::Handle<v8::Object>, ExecutionContext*);
+ {{v8_class}}(v8::Handle<v8::Object>, ExecutionContext*);
ScopedPersistent<v8::Object> m_callback;
RefPtr<DOMWrapperWorld> m_world;
@@ -72,4 +72,4 @@ private:
}
{% endfilter %}
-#endif // {{v8_class_name}}_h
+#endif // {{v8_class}}_h
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/templates/callback_interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698