| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include <v8.h> | 42 #include <v8.h> |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 class ArrayValue; | 46 class ArrayValue; |
| 47 class DOMError; | 47 class DOMError; |
| 48 class Element; | 48 class Element; |
| 49 class LocalDOMWindow; | 49 class LocalDOMWindow; |
| 50 class Gamepad; | 50 class Gamepad; |
| 51 class MediaStream; | 51 class MediaStream; |
| 52 class HeaderMap; | |
| 53 class Headers; | 52 class Headers; |
| 54 class IDBKeyRange; | 53 class IDBKeyRange; |
| 55 class MIDIPort; | 54 class MIDIPort; |
| 56 class MediaKeyError; | 55 class MediaKeyError; |
| 57 class Notification; | 56 class Notification; |
| 58 class Path2D; | 57 class Path2D; |
| 59 class SpeechRecognitionResult; | 58 class SpeechRecognitionResult; |
| 60 class SpeechRecognitionResultList; | 59 class SpeechRecognitionResultList; |
| 61 class Storage; | 60 class Storage; |
| 62 class TrackBase; | 61 class TrackBase; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool get(const String&, Member<SpeechRecognitionResultList>&) const; | 102 bool get(const String&, Member<SpeechRecognitionResultList>&) const; |
| 104 bool get(const String&, Member<Gamepad>&) const; | 103 bool get(const String&, Member<Gamepad>&) const; |
| 105 bool get(const String&, Member<MediaStream>&) const; | 104 bool get(const String&, Member<MediaStream>&) const; |
| 106 bool get(const String&, RefPtrWillBeMember<EventTarget>&) const; | 105 bool get(const String&, RefPtrWillBeMember<EventTarget>&) const; |
| 107 bool get(const String&, HashSet<AtomicString>&) const; | 106 bool get(const String&, HashSet<AtomicString>&) const; |
| 108 bool get(const String&, Dictionary&) const; | 107 bool get(const String&, Dictionary&) const; |
| 109 bool get(const String&, Vector<String>&) const; | 108 bool get(const String&, Vector<String>&) const; |
| 110 bool get(const String&, ArrayValue&) const; | 109 bool get(const String&, ArrayValue&) const; |
| 111 bool get(const String&, RefPtrWillBeMember<DOMError>&) const; | 110 bool get(const String&, RefPtrWillBeMember<DOMError>&) const; |
| 112 bool get(const String&, v8::Local<v8::Value>&) const; | 111 bool get(const String&, v8::Local<v8::Value>&) const; |
| 113 bool get(const String&, RefPtr<HeaderMap>&) const; | |
| 114 bool get(const String&, RefPtr<Headers>&) const; | 112 bool get(const String&, RefPtr<Headers>&) const; |
| 115 | 113 |
| 116 // Sets properties using default attributes. | 114 // Sets properties using default attributes. |
| 117 bool set(const String&, const v8::Handle<v8::Value>&); | 115 bool set(const String&, const v8::Handle<v8::Value>&); |
| 118 bool set(const String&, const String&); | 116 bool set(const String&, const String&); |
| 119 bool set(const String&, unsigned); | 117 bool set(const String&, unsigned); |
| 120 bool set(const String&, const Dictionary&); | 118 bool set(const String&, const Dictionary&); |
| 121 | 119 |
| 122 v8::Handle<v8::Value> v8Value() const { return m_options; } | 120 v8::Handle<v8::Value> v8Value() const { return m_options; } |
| 123 | 121 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) | 357 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) |
| 360 return true; | 358 return true; |
| 361 | 359 |
| 362 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); | 360 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); |
| 363 return false; | 361 return false; |
| 364 } | 362 } |
| 365 | 363 |
| 366 } | 364 } |
| 367 | 365 |
| 368 #endif // Dictionary_h | 366 #endif // Dictionary_h |
| OLD | NEW |