Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: Source/bindings/core/v8/Dictionary.h

Issue 661453004: Add getPropertyNames to v8 Dictionaries and make use of in Keyframes processing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 m_context.resetPerPropertyContext(); 118 m_context.resetPerPropertyContext();
119 } 119 }
120 private: 120 private:
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 bool getPropertyNames(Vector<String>&) const;
128 129
129 bool getWithUndefinedOrNullCheck(const String&, String&) const; 130 bool getWithUndefinedOrNullCheck(const String&, String&) const;
130 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>& ) const; 131 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>& ) const;
131 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Path2D>&) const; 132 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Path2D>&) const;
132 133
133 bool hasProperty(const String&) const; 134 bool hasProperty(const String&) const;
134 135
135 v8::Isolate* isolate() const { return m_isolate; } 136 v8::Isolate* isolate() const { return m_isolate; }
136 137
137 bool getKey(const String& key, v8::Local<v8::Value>&) const; 138 bool getKey(const String& key, v8::Local<v8::Value>&) const;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, T& value); 173 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, T& value);
173 template <typename T> 174 template <typename T>
174 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, Nullable<T>& value); 175 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, Nullable<T>& value);
175 template <template <typename> class PointerType, typename T> 176 template <template <typename> class PointerType, typename T>
176 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, PointerType<T>& value); 177 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, PointerType<T>& value);
177 }; 178 };
178 179
179 } 180 }
180 181
181 #endif // Dictionary_h 182 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « LayoutTests/web-animations-api/w3c/keyframe-properties.html ('k') | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698