OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 bool SetHiddenValue(Handle<String> key, Handle<Value> value); | 1162 bool SetHiddenValue(Handle<String> key, Handle<Value> value); |
1163 Local<Value> GetHiddenValue(Handle<String> key); | 1163 Local<Value> GetHiddenValue(Handle<String> key); |
1164 bool DeleteHiddenValue(Handle<String> key); | 1164 bool DeleteHiddenValue(Handle<String> key); |
1165 | 1165 |
1166 /** | 1166 /** |
1167 * Clone this object with a fast but shallow copy. Values will point | 1167 * Clone this object with a fast but shallow copy. Values will point |
1168 * to the same values as the original object. | 1168 * to the same values as the original object. |
1169 */ | 1169 */ |
1170 Local<Object> Clone(); | 1170 Local<Object> Clone(); |
1171 | 1171 |
| 1172 /** |
| 1173 * Set the backing store of the indexed properties to be managed by the |
| 1174 * embedding layer. Access to the indexed properties will follow the rules |
| 1175 * spelled out in CanvasPixelArray. |
| 1176 * Note: The embedding program still owns the data and needs to ensure that |
| 1177 * the backing store is preserved while V8 has a reference. |
| 1178 */ |
| 1179 void SetIndexedPropertiesToPixelData(uint8_t* data, int length); |
| 1180 |
1172 static Local<Object> New(); | 1181 static Local<Object> New(); |
1173 static Object* Cast(Value* obj); | 1182 static Object* Cast(Value* obj); |
1174 private: | 1183 private: |
1175 Object(); | 1184 Object(); |
1176 }; | 1185 }; |
1177 | 1186 |
1178 | 1187 |
1179 /** | 1188 /** |
1180 * An instance of the built-in array constructor (ECMA-262, 15.4.2). | 1189 * An instance of the built-in array constructor (ECMA-262, 15.4.2). |
1181 */ | 1190 */ |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 | 2627 |
2619 } // namespace v8 | 2628 } // namespace v8 |
2620 | 2629 |
2621 | 2630 |
2622 #undef V8EXPORT | 2631 #undef V8EXPORT |
2623 #undef V8EXPORT_INLINE | 2632 #undef V8EXPORT_INLINE |
2624 #undef TYPE_CHECK | 2633 #undef TYPE_CHECK |
2625 | 2634 |
2626 | 2635 |
2627 #endif // V8_H_ | 2636 #endif // V8_H_ |
OLD | NEW |