Index: Source/bindings/templates/interface.h |
diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h |
index 17b1f971efde2c8dc08e4a7faffa96c6764b23e9..4f6a50b08d6ed1b47af64d4ddd457be315acf097 100644 |
--- a/Source/bindings/templates/interface.h |
+++ b/Source/bindings/templates/interface.h |
@@ -27,6 +27,21 @@ public: |
{% endif %} |
class {{v8_class}} { |
public: |
+ {% if has_private_script %} |
+ class PrivateScript { |
+ public: |
+ {% for method in methods if method.is_implemented_in_private_script %} |
+ static bool {{method.name}}Method({{method.argument_declarations_for_private_script | join(', ')}}); |
+ {% endfor %} |
+ {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
+ static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_class}}* holderImpl, {{attribute.cpp_type}}* result); |
+ {% if not attribute.is_read_only %} |
+ static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_class}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); |
+ {% endif %} |
+ {% endfor %} |
+ }; |
+ |
+ {% endif %} |
static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Value>, v8::Isolate*); |
static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
@@ -55,9 +70,6 @@ public: |
static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
{% endfilter %} |
{% endif %} |
- {% if method.is_implemented_in_private_script %} |
- static bool {{method.name}}MethodImplementedInPrivateScript({{method.argument_declarations_for_private_script | join(', ')}}); |
- {% endif %} |
{% endfor %} |
{% if constructors or has_custom_constructor or has_event_constructor %} |
static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
@@ -76,12 +88,6 @@ public: |
static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
{% endfilter %} |
{% endif %} |
- {% if attribute.is_implemented_in_private_script %} |
- static bool {{attribute.name}}AttributeGetterImplementedInPrivateScript(LocalFrame* frame, {{cpp_class}}* holderImpl, {{attribute.cpp_type}}* result); |
- {% if not attribute.is_read_only or attribute.put_forwards %} |
- static bool {{attribute.name}}AttributeSetterImplementedInPrivateScript(LocalFrame* frame, {{cpp_class}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); |
- {% endif %} |
- {% endif %} |
{% endfor %} |
{# Custom special operations #} |
{% if indexed_property_getter and indexed_property_getter.is_custom %} |