| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 #ifndef Dart$(INTERFACE)_h | 7 #ifndef Dart$(INTERFACE)_h |
| 8 #define Dart$(INTERFACE)_h | 8 #define Dart$(INTERFACE)_h |
| 9 | 9 |
| 10 #include "DartDOMWrapper.h" | 10 #include "DartDOMWrapper.h" |
| 11 #include "DartWrapperTypeInfo.h" | |
| 12 $WEBCORE_INCLUDES | 11 $WEBCORE_INCLUDES |
| 13 #include <dart_api.h> | 12 #include <dart_api.h> |
| 14 | 13 |
| 15 namespace WebCore { | 14 namespace WebCore { |
| 16 | 15 |
| 17 struct Dart$INTERFACE { | 16 struct Dart$INTERFACE { |
| 18 static const char* const dartImplementationClassName; | 17 static const char* const dartImplementationClassName; |
| 19 static const char* const dartImplementationLibraryName; | 18 static const char* const dartImplementationLibraryName; |
| 20 typedef $WEBCORE_CLASS_NAME NativeType; | 19 typedef $WEBCORE_CLASS_NAME NativeType; |
| 21 static const bool isNode = $IS_NODE; | 20 static const bool isNode = $IS_NODE; |
| 22 static const bool isActive = $IS_ACTIVE; | 21 static const bool isActive = $IS_ACTIVE; |
| 23 static const bool isEventTarget = $IS_EVENT_TARGET; | 22 static const bool isEventTarget = $IS_EVENT_TARGET; |
| 24 static DartWrapperTypeInfo info; | |
| 25 | 23 |
| 26 $TO_NATIVE | 24 $TO_NATIVE |
| 27 $TO_DART | 25 $TO_DART |
| 28 static Dart_Handle toDart(PassRefPtr< $WEBCORE_CLASS_NAME > value) | 26 static Dart_Handle toDart(PassRefPtr< $WEBCORE_CLASS_NAME > value) |
| 29 { | 27 { |
| 30 return toDart(value.get()); | 28 return toDart(value.get()); |
| 31 } | 29 } |
| 32 | 30 |
| 33 static Dart_NativeFunction resolver(Dart_Handle name, int argumentCount); | 31 static Dart_NativeFunction resolver(Dart_Handle name, int argumentCount); |
| 34 }; | 32 }; |
| 35 | 33 |
| 36 template<> | |
| 37 class DartWrapperTypeTraits<$WEBCORE_CLASS_NAME > { | |
| 38 public: | |
| 39 static DartWrapperTypeInfo* info() { return &Dart$INTERFACE::info; } | |
| 40 }; | |
| 41 | |
| 42 namespace Dart$(INTERFACE)Internal { | 34 namespace Dart$(INTERFACE)Internal { |
| 43 $DECLARATIONS | 35 $DECLARATIONS |
| 44 } | 36 } |
| 45 | 37 |
| 46 } | 38 } |
| 47 | 39 |
| 48 #endif // Dart$(INTERFACE)_h | 40 #endif // Dart$(INTERFACE)_h |
| OLD | NEW |