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

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

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Smaller adjustments Created 6 years, 5 months 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/Dictionary.cpp » ('j') | Source/platform/heap/Handle.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/Dictionary.cpp » ('j') | Source/platform/heap/Handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698