OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 struct DictionaryHelperTraits<Element> { | 475 struct DictionaryHelperTraits<Element> { |
476 typedef V8Element type; | 476 typedef V8Element type; |
477 }; | 477 }; |
478 | 478 |
479 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<Uint8Array>& value); | 479 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<Uint8Array>& value); |
480 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<ArrayBufferView>& value); | 480 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<ArrayBufferView>& value); |
481 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<MediaKeyError>& value); | 481 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<MediaKeyError>& value); |
482 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<DOMError>& value); | 482 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<DOMError>& value); |
483 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<Storage>& value); | 483 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<Storage>& value); |
484 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<Element>& value); | 484 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
WillBeMember<Element>& value); |
| 485 template bool DictionaryHelper::get(const Dictionary&, const String& key, RawPtr
<Element>& value); |
485 | 486 |
486 template <typename T> | 487 template <typename T> |
487 struct IntegralTypeTraits { | 488 struct IntegralTypeTraits { |
488 }; | 489 }; |
489 | 490 |
490 template <> | 491 template <> |
491 struct IntegralTypeTraits<uint8_t> { | 492 struct IntegralTypeTraits<uint8_t> { |
492 static inline uint8_t toIntegral(v8::Handle<v8::Value> value, IntegerConvers
ionConfiguration configuration, ExceptionState& exceptionState) | 493 static inline uint8_t toIntegral(v8::Handle<v8::Value> value, IntegerConvers
ionConfiguration configuration, ExceptionState& exceptionState) |
493 { | 494 { |
494 return toUInt8(value, configuration, exceptionState); | 495 return toUInt8(value, configuration, exceptionState); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 Dictionary::ConversionContextScope scope(context); | 653 Dictionary::ConversionContextScope scope(context); |
653 | 654 |
654 v8::Local<v8::Value> v8Value; | 655 v8::Local<v8::Value> v8Value; |
655 if (!dictionary.get(key, v8Value)) | 656 if (!dictionary.get(key, v8Value)) |
656 return true; | 657 return true; |
657 | 658 |
658 return DictionaryHelper::get(dictionary, key, value); | 659 return DictionaryHelper::get(dictionary, key, value); |
659 } | 660 } |
660 | 661 |
661 } // namespace blink | 662 } // namespace blink |
OLD | NEW |