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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ConversionContext& m_context; | 121 ConversionContext& m_context; |
122 }; | 122 }; |
123 | 123 |
124 bool convert(ConversionContext&, const String&, Dictionary&) const; | 124 bool convert(ConversionContext&, const String&, Dictionary&) const; |
125 | 125 |
126 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; | 126 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; |
127 bool getOwnPropertyNames(Vector<String>&) const; | 127 bool getOwnPropertyNames(Vector<String>&) const; |
128 | 128 |
129 bool getWithUndefinedOrNullCheck(const String&, String&) const; | 129 bool getWithUndefinedOrNullCheck(const String&, String&) const; |
130 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>&
) const; | 130 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>&
) const; |
131 bool getWithUndefinedOrNullCheck(const String&, RefPtr<Path2D>&) const; | 131 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Path2D>&)
const; |
132 | 132 |
133 bool hasProperty(const String&) const; | 133 bool hasProperty(const String&) const; |
134 | 134 |
135 v8::Isolate* isolate() const { return m_isolate; } | 135 v8::Isolate* isolate() const { return m_isolate; } |
136 | 136 |
137 private: | 137 private: |
138 bool getKey(const String& key, v8::Local<v8::Value>&) const; | 138 bool getKey(const String& key, v8::Local<v8::Value>&) const; |
139 | 139 |
140 v8::Handle<v8::Value> m_options; | 140 v8::Handle<v8::Value> m_options; |
141 v8::Isolate* m_isolate; | 141 v8::Isolate* m_isolate; |
(...skipping 20 matching lines...) Expand all Loading... |
162 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, T& value); | 162 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, T& value); |
163 template <typename T> | 163 template <typename T> |
164 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, Nullable<T>& value); | 164 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, Nullable<T>& value); |
165 template <template <typename> class PointerType, typename T> | 165 template <template <typename> class PointerType, typename T> |
166 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, PointerType<T>& value); | 166 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const
String& key, PointerType<T>& value); |
167 }; | 167 }; |
168 | 168 |
169 } | 169 } |
170 | 170 |
171 #endif // Dictionary_h | 171 #endif // Dictionary_h |
OLD | NEW |