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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool get(const String&, RefPtr<TrackBase>&) const; | 90 bool get(const String&, RefPtr<TrackBase>&) const; |
91 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; | 91 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; |
92 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResult>&) const; | 92 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResult>&) const; |
93 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResultList>&) co
nst; | 93 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResultList>&) co
nst; |
94 bool get(const String&, RefPtr<MediaStream>&) const; | 94 bool get(const String&, RefPtr<MediaStream>&) const; |
95 bool get(const String&, RefPtr<EventTarget>&) const; | 95 bool get(const String&, RefPtr<EventTarget>&) const; |
96 bool get(const String&, HashSet<AtomicString>&) const; | 96 bool get(const String&, HashSet<AtomicString>&) const; |
97 bool get(const String&, Dictionary&) const; | 97 bool get(const String&, Dictionary&) const; |
98 bool get(const String&, Vector<String>&) const; | 98 bool get(const String&, Vector<String>&) const; |
99 bool get(const String&, ArrayValue&) const; | 99 bool get(const String&, ArrayValue&) const; |
100 bool get(const String&, RefPtr<DOMError>&) const; | 100 bool get(const String&, RefPtrWillBeRawPtr<DOMError>&) const; |
101 bool get(const String&, OwnPtr<VoidCallback>&) const; | 101 bool get(const String&, OwnPtr<VoidCallback>&) const; |
102 bool get(const String&, v8::Local<v8::Value>&) const; | 102 bool get(const String&, v8::Local<v8::Value>&) const; |
103 | 103 |
104 class ConversionContext { | 104 class ConversionContext { |
105 public: | 105 public: |
106 ConversionContext(const String& interfaceName, const String& methodName,
ExceptionState& exceptionState) | 106 ConversionContext(const String& interfaceName, const String& methodName,
ExceptionState& exceptionState) |
107 : m_interfaceName(interfaceName) | 107 : m_interfaceName(interfaceName) |
108 , m_methodName(methodName) | 108 , m_methodName(methodName) |
109 , m_exceptionState(exceptionState) | 109 , m_exceptionState(exceptionState) |
110 , m_dirty(true) | 110 , m_dirty(true) |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) | 343 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) |
344 return true; | 344 return true; |
345 | 345 |
346 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); | 346 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); |
347 return false; | 347 return false; |
348 } | 348 } |
349 | 349 |
350 } | 350 } |
351 | 351 |
352 #endif // Dictionary_h | 352 #endif // Dictionary_h |
OLD | NEW |