| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; | 89 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; |
| 90 bool get(const String&, RefPtr<SpeechRecognitionResult>&) const; | 90 bool get(const String&, RefPtr<SpeechRecognitionResult>&) const; |
| 91 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const; | 91 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const; |
| 92 bool get(const String&, RefPtr<MediaStream>&) const; | 92 bool get(const String&, RefPtr<MediaStream>&) const; |
| 93 bool get(const String&, RefPtr<EventTarget>&) const; | 93 bool get(const String&, RefPtr<EventTarget>&) const; |
| 94 bool get(const String&, HashSet<AtomicString>&) const; | 94 bool get(const String&, HashSet<AtomicString>&) const; |
| 95 bool get(const String&, Dictionary&) const; | 95 bool get(const String&, Dictionary&) const; |
| 96 bool get(const String&, Vector<String>&) const; | 96 bool get(const String&, Vector<String>&) const; |
| 97 bool get(const String&, ArrayValue&) const; | 97 bool get(const String&, ArrayValue&) const; |
| 98 bool get(const String&, RefPtr<DOMError>&) const; | 98 bool get(const String&, RefPtr<DOMError>&) const; |
| 99 bool get(const String&, RefPtr<VoidCallback>&) const; | 99 bool get(const String&, OwnPtr<VoidCallback>&) const; |
| 100 bool get(const String&, v8::Local<v8::Value>&) const; | 100 bool get(const String&, v8::Local<v8::Value>&) const; |
| 101 | 101 |
| 102 class ConversionContext { | 102 class ConversionContext { |
| 103 public: | 103 public: |
| 104 ConversionContext(const String& interfaceName, const String& methodName,
ExceptionState& exceptionState) | 104 ConversionContext(const String& interfaceName, const String& methodName,
ExceptionState& exceptionState) |
| 105 : m_interfaceName(interfaceName) | 105 : m_interfaceName(interfaceName) |
| 106 , m_methodName(methodName) | 106 , m_methodName(methodName) |
| 107 , m_exceptionState(exceptionState) | 107 , m_exceptionState(exceptionState) |
| 108 , m_dirty(true) | 108 , m_dirty(true) |
| 109 { | 109 { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key,
"does not have " + (context.typeName().isEmpty() ? String("the expected type.")
: ("a " + context.typeName() + " type.")))); | 326 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key,
"does not have " + (context.typeName().isEmpty() ? String("the expected type.")
: ("a " + context.typeName() + " type.")))); |
| 327 return false; | 327 return false; |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 return true; | 330 return true; |
| 331 } | 331 } |
| 332 | 332 |
| 333 } | 333 } |
| 334 | 334 |
| 335 #endif // Dictionary_h | 335 #endif // Dictionary_h |
| OLD | NEW |