OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! |
6 | 6 |
7 #ifndef {{v8_class}}_h | 7 #ifndef {{v8_class}}_h |
8 #define {{v8_class}}_h | 8 #define {{v8_class}}_h |
9 | 9 |
10 {% filter conditional(conditional_string) %} | 10 {% filter conditional(conditional_string) %} |
11 {% for filename in header_includes %} | 11 {% for filename in header_includes %} |
12 #include "{{filename}}" | 12 #include "{{filename}}" |
13 {% endfor %} | 13 {% endfor %} |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 {% if has_event_constructor %} | 17 {% if has_event_constructor %} |
18 class Dictionary; | 18 class Dictionary; |
19 {% endif %} | 19 {% endif %} |
20 {% if named_constructor %} | 20 {% if named_constructor %} |
21 class {{v8_class}}Constructor { | 21 class {{v8_class}}Constructor { |
22 public: | 22 public: |
23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 23 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
24 static const WrapperTypeInfo wrapperTypeInfo; | 24 static const WrapperTypeInfo wrapperTypeInfo; |
25 }; | 25 }; |
26 | 26 |
27 {% endif %} | 27 {% endif %} |
28 class {{v8_class}} { | 28 class {{v8_class}} { |
29 public: | 29 public: |
30 {% if has_private_script %} | 30 {% if has_private_script %} |
31 class PrivateScript { | 31 class PrivateScript { |
32 public: | 32 public: |
33 {% for method in methods if method.is_implemented_in_private_script %} | 33 {% for method in methods if method.is_implemented_in_private_script %} |
34 static bool {{method.name}}Method({{method.argument_declarations_for_pri
vate_script | join(', ')}}); | 34 static bool {{method.name}}Method({{method.argument_declarations_for_pri
vate_script | join(', ')}}); |
35 {% endfor %} | 35 {% endfor %} |
36 {% for attribute in attributes if attribute.is_implemented_in_private_sc
ript %} | 36 {% for attribute in attributes if attribute.is_implemented_in_private_sc
ript %} |
37 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.cpp_type}}* result); | 37 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.cpp_type}}* result); |
38 {% if not attribute.is_read_only %} | 38 {% if not attribute.is_read_only %} |
39 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); | 39 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c
lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); |
40 {% endif %} | 40 {% endif %} |
41 {% endfor %} | 41 {% endfor %} |
42 }; | 42 }; |
43 | 43 |
44 {% endif %} | 44 {% endif %} |
45 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); | 45 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
46 {% if is_array_buffer_or_view %} | 46 {% if is_array_buffer_or_view %} |
47 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object); | 47 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object); |
48 {% else %} | 48 {% else %} |
49 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 49 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
50 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 50 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
51 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) | 51 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) |
52 { | 52 { |
53 return blink::toScriptWrappable(object)->toImpl<{{cpp_class}}>(); | 53 return blink::toScriptWrappable(object)->toImpl<{{cpp_class}}>(); |
54 } | 54 } |
55 {% endif %} | 55 {% endif %} |
56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value
>); | 56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value
>); |
57 {% if has_partial_interface %} | 57 {% if has_partial_interface %} |
58 static WrapperTypeInfo wrapperTypeInfo; | 58 static WrapperTypeInfo wrapperTypeInfo; |
59 {% else %} | 59 {% else %} |
60 static const WrapperTypeInfo wrapperTypeInfo; | 60 static const WrapperTypeInfo wrapperTypeInfo; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 {% endif %}{# has_custom_to_v8 #} | 196 {% endif %}{# has_custom_to_v8 #} |
197 {% if has_event_constructor %} | 197 {% if has_event_constructor %} |
198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); | 198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info); |
199 | 199 |
200 {% endif %} | 200 {% endif %} |
201 } // namespace blink | 201 } // namespace blink |
202 {% endfilter %} | 202 {% endfilter %} |
203 | 203 |
204 #endif // {{v8_class}}_h | 204 #endif // {{v8_class}}_h |
OLD | NEW |