| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 bool Dictionary::get(const String& key, RefPtrWillBeMember<MIDIPort>& value) con
st | 451 bool Dictionary::get(const String& key, RefPtrWillBeMember<MIDIPort>& value) con
st |
| 452 { | 452 { |
| 453 v8::Local<v8::Value> v8Value; | 453 v8::Local<v8::Value> v8Value; |
| 454 if (!getKey(key, v8Value)) | 454 if (!getKey(key, v8Value)) |
| 455 return false; | 455 return false; |
| 456 | 456 |
| 457 value = V8MIDIPort::toNativeWithTypeCheck(m_isolate, v8Value); | 457 value = V8MIDIPort::toNativeWithTypeCheck(m_isolate, v8Value); |
| 458 return true; | 458 return true; |
| 459 } | 459 } |
| 460 | 460 |
| 461 bool Dictionary::get(const String& key, RefPtr<MediaKeyError>& value) const | 461 bool Dictionary::get(const String& key, RefPtrWillBeMember<MediaKeyError>& value
) const |
| 462 { | 462 { |
| 463 v8::Local<v8::Value> v8Value; | 463 v8::Local<v8::Value> v8Value; |
| 464 if (!getKey(key, v8Value)) | 464 if (!getKey(key, v8Value)) |
| 465 return false; | 465 return false; |
| 466 | 466 |
| 467 value = V8MediaKeyError::toNativeWithTypeCheck(m_isolate, v8Value); | 467 value = V8MediaKeyError::toNativeWithTypeCheck(m_isolate, v8Value); |
| 468 return true; | 468 return true; |
| 469 } | 469 } |
| 470 | 470 |
| 471 bool Dictionary::get(const String& key, RefPtrWillBeMember<TrackBase>& value) co
nst | 471 bool Dictionary::get(const String& key, RefPtrWillBeMember<TrackBase>& value) co
nst |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 | 746 |
| 747 return *this; | 747 return *this; |
| 748 } | 748 } |
| 749 | 749 |
| 750 void Dictionary::ConversionContext::throwTypeError(const String& detail) | 750 void Dictionary::ConversionContext::throwTypeError(const String& detail) |
| 751 { | 751 { |
| 752 exceptionState().throwTypeError(detail); | 752 exceptionState().throwTypeError(detail); |
| 753 } | 753 } |
| 754 | 754 |
| 755 } // namespace WebCore | 755 } // namespace WebCore |
| OLD | NEW |