| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 bool Dictionary::get(const String& key, RefPtr<ArrayBufferView>& value) const | 430 bool Dictionary::get(const String& key, RefPtr<ArrayBufferView>& value) const |
| 431 { | 431 { |
| 432 v8::Local<v8::Value> v8Value; | 432 v8::Local<v8::Value> v8Value; |
| 433 if (!getKey(key, v8Value)) | 433 if (!getKey(key, v8Value)) |
| 434 return false; | 434 return false; |
| 435 | 435 |
| 436 value = V8ArrayBufferView::toNativeWithTypeCheck(m_isolate, v8Value); | 436 value = V8ArrayBufferView::toNativeWithTypeCheck(m_isolate, v8Value); |
| 437 return true; | 437 return true; |
| 438 } | 438 } |
| 439 | 439 |
| 440 bool Dictionary::get(const String& key, RefPtr<MIDIPort>& value) const | 440 bool Dictionary::get(const String& key, RefPtrWillBeMember<MIDIPort>& value) con
st |
| 441 { | 441 { |
| 442 v8::Local<v8::Value> v8Value; | 442 v8::Local<v8::Value> v8Value; |
| 443 if (!getKey(key, v8Value)) | 443 if (!getKey(key, v8Value)) |
| 444 return false; | 444 return false; |
| 445 | 445 |
| 446 value = V8MIDIPort::toNativeWithTypeCheck(m_isolate, v8Value); | 446 value = V8MIDIPort::toNativeWithTypeCheck(m_isolate, v8Value); |
| 447 return true; | 447 return true; |
| 448 } | 448 } |
| 449 | 449 |
| 450 bool Dictionary::get(const String& key, RefPtr<MediaKeyError>& value) const | 450 bool Dictionary::get(const String& key, RefPtr<MediaKeyError>& value) const |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 | 735 |
| 736 return *this; | 736 return *this; |
| 737 } | 737 } |
| 738 | 738 |
| 739 void Dictionary::ConversionContext::throwTypeError(const String& detail) | 739 void Dictionary::ConversionContext::throwTypeError(const String& detail) |
| 740 { | 740 { |
| 741 exceptionState().throwTypeError(detail); | 741 exceptionState().throwTypeError(detail); |
| 742 } | 742 } |
| 743 | 743 |
| 744 } // namespace WebCore | 744 } // namespace WebCore |
| OLD | NEW |