| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 #include "config.h" |
| 8 #include "DartWebkitClassIds.h" |
| 9 |
| 10 #include "bindings/core/dart/DartLibraryIds.h" |
| 11 {% for interface in interfaces %} |
| 12 #include "bindings/{{interface.component_dir}}/dart/Dart{{interface.name}}.h" |
| 13 {% endfor %} |
| 14 |
| 15 namespace blink { |
| 16 |
| 17 ActiveDOMObject* toNullActiveDOMObject(void* value) { return 0; } |
| 18 EventTarget* toNullEventTarget(void* value) { return 0; } |
| 19 Node* toNullNode(void* value) { return 0; } |
| 20 _DartWebkitClassInfo DartWebkitClassInfo = { |
| 21 { |
| 22 "_InvalidClassId", -1, |
| 23 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 24 }, |
| 25 { |
| 26 "_HistoryCrossFrame", -1, |
| 27 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 28 }, |
| 29 { |
| 30 "_LocationCrossFrame", -1, |
| 31 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 32 }, |
| 33 { |
| 34 "_DOMWindowCrossFrame", -1, |
| 35 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 36 }, |
| 37 { |
| 38 "DateTime", -1, |
| 39 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 40 }, |
| 41 { |
| 42 "JsObject", -1, |
| 43 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 44 }, |
| 45 { |
| 46 "JsFunction", _JsObjectClassId, |
| 47 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 48 }, |
| 49 { |
| 50 "JsArray", _JsObjectClassId, |
| 51 toNullActiveDOMObject, toNullEventTarget, toNullNode |
| 52 }, |
| 53 |
| 54 // New types that are not auto-generated should be added here. |
| 55 |
| 56 {% for interface in interfaces %} |
| 57 {% filter conditional(interface.conditional_string) %} |
| 58 { |
| 59 "{{interface.name}}", |
| 60 {% if interface.parent_interface %} |
| 61 {{interface.parent_interface}}ClassId, |
| 62 {% else %} |
| 63 -1, |
| 64 {% endif %} |
| 65 {% if interface.is_active_dom_object %} |
| 66 Dart{{interface.name}}::toActiveDOMObject, |
| 67 {% else %} |
| 68 toNullActiveDOMObject, |
| 69 {% endif %} |
| 70 {% if interface.is_event_target %} |
| 71 Dart{{interface.name}}::toEventTarget, |
| 72 {% else %} |
| 73 toNullEventTarget, |
| 74 {% endif %} |
| 75 {% if interface.is_node %} |
| 76 Dart{{interface.name}}::toNode |
| 77 {% else %} |
| 78 toNullNode |
| 79 {% endif %} |
| 80 }, |
| 81 {% endfilter %} |
| 82 {% endfor %} |
| 83 }; |
| 84 |
| 85 |
| 86 Dart_NativeFunction blinkSnapshotResolver(Dart_Handle name, int argumentCount, b
ool* autoSetupScope) |
| 87 { |
| 88 {% for interface in interfaces %} |
| 89 {% filter conditional(interface.conditional_string) %} |
| 90 {% if interface.has_resolver %} |
| 91 if (Dart_NativeFunction func = Dart{{interface.name}}::resolver(name
, argumentCount, autoSetupScope)) |
| 92 return func; |
| 93 {% endif %} |
| 94 {% endfilter %} |
| 95 {% endfor %} |
| 96 return 0; |
| 97 } |
| 98 |
| 99 const uint8_t* blinkSnapshotSymbolizer(Dart_NativeFunction nf) |
| 100 { |
| 101 {% for interface in interfaces %} |
| 102 {% filter conditional(interface.conditional_string) %} |
| 103 {% if interface.has_resolver %} |
| 104 if (const uint8_t* r = Dart{{interface.name}}::symbolizer(nf)) |
| 105 return r; |
| 106 {% endif %} |
| 107 {% endfilter %} |
| 108 {% endfor %} |
| 109 return 0; |
| 110 } |
| 111 |
| 112 } // namespace blink |
| OLD | NEW |