1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
10 {% filter conditional(conditional_string) %}
11 {% for filename in header_includes %}
12 #include "{{filename}}"
17 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback {
19 static {{v8_class}}* create(v8::Handle<v8::Function> callback, ScriptState* scriptState)
21 return new {{v8_class}}(callback, scriptState);
24 virtual ~{{v8_class}}();
26 {% for method in methods %}
27 virtual {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override;
30 {{v8_class}}(v8::Handle<v8::Function>, ScriptState*);
32 ScopedPersistent<v8::Function> m_callback;
33 RefPtr<ScriptState> m_scriptState;
38 #endif // {{v8_class}}_h