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

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

Issue 725023002: Remove Dictionary::getWithUndefinedOrNullCheck() (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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 getPropertyNames(Vector<String>&) const; 127 bool getPropertyNames(Vector<String>&) const;
128 128
129 bool getWithUndefinedOrNullCheck(const String&, String&) const;
130 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>& ) const;
131 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Path2D>&) const;
132
133 bool hasProperty(const String&) const; 129 bool hasProperty(const String&) const;
134 130
135 v8::Isolate* isolate() const { return m_isolate; } 131 v8::Isolate* isolate() const { return m_isolate; }
136 132
137 bool getKey(const String& key, v8::Local<v8::Value>&) const; 133 bool getKey(const String& key, v8::Local<v8::Value>&) const;
138 134
139 private: 135 private:
140 v8::Handle<v8::Value> m_options; 136 v8::Handle<v8::Value> m_options;
141 v8::Isolate* m_isolate; 137 v8::Isolate* m_isolate;
142 }; 138 };
(...skipping 29 matching lines...) Expand all
172 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, T& value); 168 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, T& value);
173 template <typename T> 169 template <typename T>
174 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, Nullable<T>& value); 170 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, Nullable<T>& value);
175 template <template <typename> class PointerType, typename T> 171 template <template <typename> class PointerType, typename T>
176 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, PointerType<T>& value); 172 static bool convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, PointerType<T>& value);
177 }; 173 };
178 174
179 } 175 }
180 176
181 #endif // Dictionary_h 177 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/Dictionary.cpp » ('j') | Source/modules/indexeddb/IDBDatabase.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698