| OLD | NEW | 
|   1 {% filter format_blink_cpp_source_code %} |   1 {% filter format_blink_cpp_source_code %} | 
|   2  |   2  | 
|   3 {% include 'copyright_block.txt' %} |   3 {% include 'copyright_block.txt' %} | 
|   4 #ifndef {{v8_original_class}}_h |   4 #ifndef {{v8_original_class}}_h | 
|   5 #define {{v8_original_class}}_h |   5 #define {{v8_original_class}}_h | 
|   6  |   6  | 
|   7 {% for filename in header_includes %} |   7 {% for filename in header_includes %} | 
|   8 #include "{{filename}}" |   8 #include "{{filename}}" | 
|   9 {% endfor %} |   9 {% endfor %} | 
|  10  |  10  | 
|  11 namespace blink { |  11 namespace blink { | 
|  12  |  12  | 
|  13 class ExceptionState; |  13 class ExceptionState; | 
|  14  |  14  | 
|  15 class {{v8_class}} { |  15 class {{v8_class}} { | 
|  16 public: |  16  public: | 
|  17     {{exported}}static void toImpl(v8::Isolate*, v8::Local<v8::Value>, {{cpp_cla
    ss}}&, ExceptionState&); |  17   {{exported}}static void toImpl(v8::Isolate*, v8::Local<v8::Value>, {{cpp_class
    }}&, ExceptionState&); | 
|  18 }; |  18 }; | 
|  19  |  19  | 
|  20 {{exported}}bool toV8{{cpp_class}}(const {{cpp_class}}&, v8::Local<v8::Object> d
    ictionary, v8::Local<v8::Object> creationContext, v8::Isolate*); |  20 {{exported}}bool toV8{{cpp_class}}(const {{cpp_class}}&, v8::Local<v8::Object> d
    ictionary, v8::Local<v8::Object> creationContext, v8::Isolate*); | 
|  21  |  21  | 
|  22 template<class CallbackInfo> |  22 template<class CallbackInfo> | 
|  23 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im
    pl) |  23 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im
    pl) { | 
|  24 { |  24   v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.
    GetIsolate())); | 
|  25     v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf
    o.GetIsolate())); |  | 
|  26 } |  25 } | 
|  27  |  26  | 
|  28 template <> |  27 template <> | 
|  29 struct NativeValueTraits<{{cpp_class}}> { |  28 struct NativeValueTraits<{{cpp_class}}> { | 
|  30     static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Excepti
    onState&); |  29   static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Exception
    State&); | 
|  31 }; |  30 }; | 
|  32  |  31  | 
|  33 template <> |  32 template <> | 
|  34 struct V8TypeOf<{{cpp_class}}> { |  33 struct V8TypeOf<{{cpp_class}}> { | 
|  35     typedef {{v8_class}} Type; |  34   typedef {{v8_class}} Type; | 
|  36 }; |  35 }; | 
|  37  |  36  | 
|  38 } // namespace blink |  37 }  // namespace blink | 
|  39  |  38  | 
|  40 #endif // {{v8_original_class}}_h |  39 #endif  // {{v8_original_class}}_h | 
|  41  |  40  | 
|  42 {% endfilter %}{# format_blink_cpp_source_code #} |  41 {% endfilter %}{# format_blink_cpp_source_code #} | 
| OLD | NEW |