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

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

Issue 26571005: Enforcing that custom tag extensions have correct super classes. (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
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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 static Dart_Handle dateToDart(double); 477 static Dart_Handle dateToDart(double);
478 static double dartToDate(Dart_Handle, Dart_Handle&); 478 static double dartToDate(Dart_Handle, Dart_Handle&);
479 static double dartToDate(Dart_NativeArguments args, int idx, Dart_Handle&); 479 static double dartToDate(Dart_NativeArguments args, int idx, Dart_Handle&);
480 static bool isHtmlElement(DartDOMData*, Dart_Handle); 480 static bool isHtmlElement(DartDOMData*, Dart_Handle);
481 static bool isDateTime(DartDOMData*, Dart_Handle); 481 static bool isDateTime(DartDOMData*, Dart_Handle);
482 static bool isBlob(DartDOMData*, Dart_Handle); 482 static bool isBlob(DartDOMData*, Dart_Handle);
483 static bool isImageData(DartDOMData*, Dart_Handle); 483 static bool isImageData(DartDOMData*, Dart_Handle);
484 static bool isIDBKeyRange(DartDOMData*, Dart_Handle); 484 static bool isIDBKeyRange(DartDOMData*, Dart_Handle);
485 static bool isTypeSubclassOf(Dart_Handle type, intptr_t libraryId, const cha r* typeName); 485 static bool isTypeSubclassOf(Dart_Handle type, intptr_t libraryId, const cha r* typeName);
486 static bool isTypeSubclassOfTag(Dart_Handle type, const String& tagName);
486 static bool objectIsType(Dart_Handle, Dart_Handle type); 487 static bool objectIsType(Dart_Handle, Dart_Handle type);
487 488
488 static bool isTypedData(Dart_Handle); 489 static bool isTypedData(Dart_Handle);
489 490
490 static Dart_Handle arrayBufferToDart(WTF::ArrayBuffer*); 491 static Dart_Handle arrayBufferToDart(WTF::ArrayBuffer*);
491 static Dart_Handle arrayBufferToDart(PassRefPtr<WTF::ArrayBuffer> value) 492 static Dart_Handle arrayBufferToDart(PassRefPtr<WTF::ArrayBuffer> value)
492 { 493 {
493 return arrayBufferToDart(value.get()); 494 return arrayBufferToDart(value.get());
494 } 495 }
495 496
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 } 651 }
651 }; 652 };
652 653
653 654
654 #define DART_UNIMPLEMENTED_EXCEPTION() DartUtilities::notImplementedException(__ FILE__, __LINE__) 655 #define DART_UNIMPLEMENTED_EXCEPTION() DartUtilities::notImplementedException(__ FILE__, __LINE__)
655 #define DART_UNIMPLEMENTED() Dart_ThrowException(DART_UNIMPLEMENTED_EXCEPTION()) ; 656 #define DART_UNIMPLEMENTED() Dart_ThrowException(DART_UNIMPLEMENTED_EXCEPTION()) ;
656 657
657 } // namespace WebCore 658 } // namespace WebCore
658 659
659 #endif // DartUtilities_h 660 #endif // DartUtilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698