| OLD | NEW |
| 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} | 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 {% filter conditional(conditional_string) %} | 38 {% filter conditional(conditional_string) %} |
| 39 {% for filename in header_includes %} | 39 {% for filename in header_includes %} |
| 40 #include "{{filename}}" | 40 #include "{{filename}}" |
| 41 {% endfor %} | 41 {% endfor %} |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 {% if has_event_constructor %} | 45 {% if has_event_constructor %} |
| 46 class Dictionary; | 46 class Dictionary; |
| 47 {% endif %} | 47 {% endif %} |
| 48 {% if named_constructor %} |
| 49 class {{v8_class}}Constructor { |
| 50 public: |
| 51 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*, WrapperWor
ldType); |
| 52 static const WrapperTypeInfo wrapperTypeInfo; |
| 53 }; |
| 54 |
| 55 {% endif %} |
| 48 class {{v8_class}} { | 56 class {{v8_class}} { |
| 49 public: | 57 public: |
| 50 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); | 58 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); |
| 51 static bool hasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); | 59 static bool hasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); |
| 52 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*, WrapperWor
ldType); | 60 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*, WrapperWor
ldType); |
| 53 static {{cpp_class}}* toNative(v8::Handle<v8::Object> object) | 61 static {{cpp_class}}* toNative(v8::Handle<v8::Object> object) |
| 54 { | 62 { |
| 55 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); | 63 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
| 56 } | 64 } |
| 57 static void derefObject(void*); | 65 static void derefObject(void*); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 241 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 234 } | 242 } |
| 235 | 243 |
| 236 {% if has_event_constructor %} | 244 {% if has_event_constructor %} |
| 237 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const String& = ""); | 245 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const String& = ""); |
| 238 | 246 |
| 239 {% endif %} | 247 {% endif %} |
| 240 } | 248 } |
| 241 {% endfilter %} | 249 {% endfilter %} |
| 242 #endif // {{v8_class}}_h | 250 #endif // {{v8_class}}_h |
| OLD | NEW |