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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 template <> | 464 template <> |
465 struct DictionaryHelperTraits<DOMError> { | 465 struct DictionaryHelperTraits<DOMError> { |
466 typedef V8DOMError type; | 466 typedef V8DOMError type; |
467 }; | 467 }; |
468 | 468 |
469 template <> | 469 template <> |
470 struct DictionaryHelperTraits<Storage> { | 470 struct DictionaryHelperTraits<Storage> { |
471 typedef V8Storage type; | 471 typedef V8Storage type; |
472 }; | 472 }; |
473 | 473 |
| 474 template <> |
| 475 struct DictionaryHelperTraits<Element> { |
| 476 typedef V8Element type; |
| 477 }; |
| 478 |
474 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); |
475 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); |
476 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); |
477 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); |
478 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); |
479 | 485 |
480 template <typename T> | 486 template <typename T> |
481 struct IntegralTypeTraits { | 487 struct IntegralTypeTraits { |
482 }; | 488 }; |
483 | 489 |
484 template <> | 490 template <> |
485 struct IntegralTypeTraits<uint8_t> { | 491 struct IntegralTypeTraits<uint8_t> { |
486 static inline uint8_t toIntegral(v8::Handle<v8::Value> value, IntegerConvers
ionConfiguration configuration, ExceptionState& exceptionState) | 492 static inline uint8_t toIntegral(v8::Handle<v8::Value> value, IntegerConvers
ionConfiguration configuration, ExceptionState& exceptionState) |
487 { | 493 { |
488 return toUInt8(value, configuration, exceptionState); | 494 return toUInt8(value, configuration, exceptionState); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 Dictionary::ConversionContextScope scope(context); | 652 Dictionary::ConversionContextScope scope(context); |
647 | 653 |
648 v8::Local<v8::Value> v8Value; | 654 v8::Local<v8::Value> v8Value; |
649 if (!dictionary.get(key, v8Value)) | 655 if (!dictionary.get(key, v8Value)) |
650 return true; | 656 return true; |
651 | 657 |
652 return DictionaryHelper::get(dictionary, key, value); | 658 return DictionaryHelper::get(dictionary, key, value); |
653 } | 659 } |
654 | 660 |
655 } // namespace blink | 661 } // namespace blink |
OLD | NEW |