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 Dart$(INTERFACE)_h |
| 8 #define Dart$(INTERFACE)_h |
| 9 |
| 10 #include "DartDOMWrapper.h" |
| 11 $WEBCORE_INCLUDE |
| 12 $ADDITIONAL_INCLUDES |
| 13 #include <dart_api.h> |
| 14 |
| 15 namespace WebCore { |
| 16 |
| 17 struct Dart$INTERFACE { |
| 18 static const char* const dartImplementationClassName; |
| 19 typedef $WEBCORE_CLASS_NAME NativeType; |
| 20 |
| 21 static PassRefPtr<NativeType> toNative(Dart_Handle handle, Dart_Handle& exce
ption) |
| 22 { |
| 23 return DartDOMWrapper::unwrapDartWrapper<Dart$INTERFACE>(handle, excepti
on); |
| 24 } |
| 25 |
| 26 static bool instanceOf(Dart_Handle handle) |
| 27 { |
| 28 return DartDOMWrapper::instanceOf(dartImplementationClassName, handle); |
| 29 } |
| 30 |
| 31 static Dart_NativeFunction resolver(Dart_Handle name, int argumentCount); |
| 32 }; |
| 33 |
| 34 $TO_DART_VALUE |
| 35 inline Dart_Handle toDartValue(PassRefPtr< $WEBCORE_CLASS_NAME > value) |
| 36 { |
| 37 return toDartValue(value.get()); |
| 38 } |
| 39 |
| 40 namespace Dart$(INTERFACE)Internal { |
| 41 $DECLARATIONS |
| 42 } |
| 43 |
| 44 } |
| 45 |
| 46 #endif // Dart$(INTERFACE)_h |
OLD | NEW |