Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: Source/bindings/dart/DartUtilities.h

Issue 27769002: Fixing custom element type extensions to have correct native type (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/dart/DartDOMWrapper.h ('k') | Source/bindings/dart/DartUtilities.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/dart/DartDOMWrapper.h ('k') | Source/bindings/dart/DartUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698