| 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 15 matching lines...) Expand all Loading... |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/ArrayValue.h" | 28 #include "bindings/core/v8/ArrayValue.h" |
| 29 #include "bindings/core/v8/DictionaryHelperForBindings.h" | 29 #include "bindings/core/v8/DictionaryHelperForBindings.h" |
| 30 #include "bindings/core/v8/ExceptionMessages.h" | 30 #include "bindings/core/v8/ExceptionMessages.h" |
| 31 #include "bindings/core/v8/ExceptionState.h" | 31 #include "bindings/core/v8/ExceptionState.h" |
| 32 #include "bindings/core/v8/V8Binding.h" | 32 #include "bindings/core/v8/V8Binding.h" |
| 33 #include "bindings/core/v8/V8DOMError.h" | 33 #include "bindings/core/v8/V8DOMError.h" |
| 34 #include "bindings/core/v8/V8Element.h" | 34 #include "bindings/core/v8/V8Element.h" |
| 35 #include "bindings/core/v8/V8EventTarget.h" | 35 #include "bindings/core/v8/V8EventTarget.h" |
| 36 #include "bindings/core/v8/V8MediaKeyError.h" | |
| 37 #include "bindings/core/v8/V8Path2D.h" | 36 #include "bindings/core/v8/V8Path2D.h" |
| 38 #include "bindings/core/v8/V8VoidCallback.h" | 37 #include "bindings/core/v8/V8VoidCallback.h" |
| 39 #include "bindings/core/v8/V8Window.h" | 38 #include "bindings/core/v8/V8Window.h" |
| 40 #include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h" | 39 #include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h" |
| 41 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" | 40 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" |
| 42 #include "wtf/MathExtras.h" | 41 #include "wtf/MathExtras.h" |
| 43 | 42 |
| 44 namespace blink { | 43 namespace blink { |
| 45 | 44 |
| 46 template <> | 45 template <> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 struct DictionaryHelperTraits<Uint8Array> { | 408 struct DictionaryHelperTraits<Uint8Array> { |
| 410 typedef V8Uint8Array type; | 409 typedef V8Uint8Array type; |
| 411 }; | 410 }; |
| 412 | 411 |
| 413 template <> | 412 template <> |
| 414 struct DictionaryHelperTraits<ArrayBufferView> { | 413 struct DictionaryHelperTraits<ArrayBufferView> { |
| 415 typedef V8ArrayBufferView type; | 414 typedef V8ArrayBufferView type; |
| 416 }; | 415 }; |
| 417 | 416 |
| 418 template <> | 417 template <> |
| 419 struct DictionaryHelperTraits<MediaKeyError> { | |
| 420 typedef V8MediaKeyError type; | |
| 421 }; | |
| 422 | |
| 423 template <> | |
| 424 struct DictionaryHelperTraits<DOMError> { | 418 struct DictionaryHelperTraits<DOMError> { |
| 425 typedef V8DOMError type; | 419 typedef V8DOMError type; |
| 426 }; | 420 }; |
| 427 | 421 |
| 428 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<Uint8Array>& value); | 422 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<Uint8Array>& value); |
| 429 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<ArrayBufferView>& value); | 423 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<ArrayBufferView>& value); |
| 430 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<MediaKeyError>& value); | |
| 431 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<DOMError>& value); | 424 template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
<DOMError>& value); |
| 432 | 425 |
| 433 template <typename T> | 426 template <typename T> |
| 434 struct IntegralTypeTraits { | 427 struct IntegralTypeTraits { |
| 435 }; | 428 }; |
| 436 | 429 |
| 437 template <> | 430 template <> |
| 438 struct IntegralTypeTraits<uint8_t> { | 431 struct IntegralTypeTraits<uint8_t> { |
| 439 static inline uint8_t toIntegral(v8::Handle<v8::Value> value, IntegerConvers
ionConfiguration configuration, ExceptionState& exceptionState) | 432 static inline uint8_t toIntegral(v8::Handle<v8::Value> value, IntegerConvers
ionConfiguration configuration, ExceptionState& exceptionState) |
| 440 { | 433 { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<unsigned>& value); | 574 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<unsigned>& value); |
| 582 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<unsigned long>& value); | 575 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<unsigned long>& value); |
| 583 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<int>& value); | 576 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<int>& value); |
| 584 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<long>& value); | 577 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<long>& value); |
| 585 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<long long>& value); | 578 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<long long>& value); |
| 586 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<unsigned long long>& value); | 579 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, Nullable<unsigned long long>& value); |
| 587 | 580 |
| 588 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<LocalDOMWindow>& value); | 581 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<LocalDOMWindow>& value); |
| 589 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<Uint8Array>& value); | 582 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<Uint8Array>& value); |
| 590 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<ArrayBufferView>& value); | 583 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<ArrayBufferView>& value); |
| 591 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<MediaKeyError>& value); | |
| 592 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<EventTarget>& value); | 584 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
nContext&, const String& key, RefPtr<EventTarget>& value); |
| 593 | 585 |
| 594 } // namespace blink | 586 } // namespace blink |
| OLD | NEW |