| 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 #ifndef DartWebkitClassIds_h |
| 8 #define DartWebkitClassIds_h |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 enum { |
| 13 _InvalidClassId = 0, |
| 14 _HistoryCrossFrameClassId, |
| 15 _LocationCrossFrameClassId, |
| 16 _DOMWindowCrossFrameClassId, |
| 17 _DateTimeClassId, |
| 18 _JsObjectClassId, |
| 19 _JsFunctionClassId, |
| 20 _JsArrayClassId, |
| 21 // New types that are not auto-generated should be added here. |
| 22 |
| 23 {% for interface in interfaces %} |
| 24 {% filter conditional(interface.conditional_string) %} |
| 25 {{interface.name}}ClassId, |
| 26 {% endfilter %} |
| 27 {% endfor %} |
| 28 {% for callback in callbacks %} |
| 29 {% filter conditional(interface.conditional_string) %} |
| 30 {{callback.name}}ClassId, |
| 31 {% endfilter %} |
| 32 {% endfor %} |
| 33 NumWebkitClassIds, |
| 34 }; |
| 35 |
| 36 class ActiveDOMObject; |
| 37 class EventTarget; |
| 38 class Node; |
| 39 typedef ActiveDOMObject* (*ToActiveDOMObject)(void* value); |
| 40 typedef EventTarget* (*ToEventTarget)(void* value); |
| 41 typedef Node* (*ToNode)(void* value); |
| 42 typedef struct { |
| 43 const char* jsName; |
| 44 int base_class_id; |
| 45 ToActiveDOMObject toActiveDOMObject; |
| 46 ToEventTarget toEventTarget; |
| 47 ToNode toNode; |
| 48 } DartWrapperTypeInfo; |
| 49 typedef DartWrapperTypeInfo _DartWebkitClassInfo[NumWebkitClassIds]; |
| 50 |
| 51 extern _DartWebkitClassInfo DartWebkitClassInfo; |
| 52 |
| 53 } // Namspace WebCore |
| 54 |
| 55 #endif // DartWebkitClassIds_h |
| OLD | NEW |