| OLD | NEW |
| 1 // Copyright 2011, Google Inc. | 1 // Copyright 2011, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 static Dart_Handle scriptValueToDart(const ScriptValue& value); | 471 static Dart_Handle scriptValueToDart(const ScriptValue& value); |
| 472 | 472 |
| 473 static PassRefPtr<SerializedScriptValue> dartToSerializedScriptValue(Dart_Ha
ndle, Dart_Handle& exception); | 473 static PassRefPtr<SerializedScriptValue> dartToSerializedScriptValue(Dart_Ha
ndle, Dart_Handle& exception); |
| 474 static Dart_Handle serializedScriptValueToDart(PassRefPtr<SerializedScriptVa
lue>); | 474 static Dart_Handle serializedScriptValueToDart(PassRefPtr<SerializedScriptVa
lue>); |
| 475 | 475 |
| 476 static Dart_Handle dateToDart(double); | 476 static Dart_Handle dateToDart(double); |
| 477 static double dartToDate(Dart_Handle, Dart_Handle&); | 477 static double dartToDate(Dart_Handle, Dart_Handle&); |
| 478 static double dartToDate(Dart_NativeArguments args, int idx, Dart_Handle&); | 478 static double dartToDate(Dart_NativeArguments args, int idx, Dart_Handle&); |
| 479 static bool isDateTime(DartDOMData*, Dart_Handle); | 479 static bool isDateTime(DartDOMData*, Dart_Handle); |
| 480 static bool isTypeSubclassOf(Dart_Handle type, intptr_t libraryId, const cha
r* typeName); | 480 static bool isTypeSubclassOf(Dart_Handle type, intptr_t libraryId, const cha
r* typeName); |
| 481 static bool isTypeSubclassOfTag(Dart_Handle type, const String& tagName); | 481 static Dart_Handle getAndValidateNativeType(Dart_Handle type, const String&
tagName); |
| 482 static bool objectIsType(Dart_Handle, Dart_Handle type); | 482 static bool objectIsType(Dart_Handle, Dart_Handle type); |
| 483 | 483 |
| 484 static bool isTypedData(Dart_Handle); | 484 static bool isTypedData(Dart_Handle); |
| 485 | 485 |
| 486 static Dart_Handle arrayBufferToDart(WTF::ArrayBuffer*); | 486 static Dart_Handle arrayBufferToDart(WTF::ArrayBuffer*); |
| 487 static Dart_Handle arrayBufferToDart(PassRefPtr<WTF::ArrayBuffer> value) | 487 static Dart_Handle arrayBufferToDart(PassRefPtr<WTF::ArrayBuffer> value) |
| 488 { | 488 { |
| 489 return arrayBufferToDart(value.get()); | 489 return arrayBufferToDart(value.get()); |
| 490 } | 490 } |
| 491 | 491 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 } | 634 } |
| 635 }; | 635 }; |
| 636 | 636 |
| 637 | 637 |
| 638 #define DART_UNIMPLEMENTED_EXCEPTION() DartUtilities::notImplementedException(__
FILE__, __LINE__) | 638 #define DART_UNIMPLEMENTED_EXCEPTION() DartUtilities::notImplementedException(__
FILE__, __LINE__) |
| 639 #define DART_UNIMPLEMENTED() Dart_ThrowException(DART_UNIMPLEMENTED_EXCEPTION())
; | 639 #define DART_UNIMPLEMENTED() Dart_ThrowException(DART_UNIMPLEMENTED_EXCEPTION())
; |
| 640 | 640 |
| 641 } // namespace WebCore | 641 } // namespace WebCore |
| 642 | 642 |
| 643 #endif // DartUtilities_h | 643 #endif // DartUtilities_h |
| OLD | NEW |