OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 V(SVGTEXTPOSITIONINGELEMENT, SVGTextPositioningElement) \ | 275 V(SVGTEXTPOSITIONINGELEMENT, SVGTextPositioningElement) \ |
276 V(SVGTITLEELEMENT, SVGTitleElement) \ | 276 V(SVGTITLEELEMENT, SVGTitleElement) \ |
277 V(SVGTREFELEMENT, SVGTRefElement) \ | 277 V(SVGTREFELEMENT, SVGTRefElement) \ |
278 V(SVGTSPANELEMENT, SVGTSpanElement) \ | 278 V(SVGTSPANELEMENT, SVGTSpanElement) \ |
279 V(SVGVIEWELEMENT, SVGViewElement) \ | 279 V(SVGVIEWELEMENT, SVGViewElement) \ |
280 V(SVGELEMENT, SVGElement) \ | 280 V(SVGELEMENT, SVGElement) \ |
281 V(SVGDOCUMENT, SVGDocument) | 281 V(SVGDOCUMENT, SVGDocument) |
282 #endif // SVG | 282 #endif // SVG |
283 | 283 |
284 | 284 |
| 285 #if ENABLE(WEB_SOCKETS) |
| 286 #define WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ |
| 287 V(WEBSOCKET, WebSocket) |
| 288 #else |
| 289 #define WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) |
| 290 #endif |
| 291 |
285 // ACTIVE_DOM_OBJECT_TYPES are DOM_OBJECT_TYPES that need special treatement | 292 // ACTIVE_DOM_OBJECT_TYPES are DOM_OBJECT_TYPES that need special treatement |
286 // during GC. | 293 // during GC. |
287 #define ACTIVE_DOM_OBJECT_TYPES(V) \ | 294 #define ACTIVE_DOM_OBJECT_TYPES(V) \ |
288 V(MESSAGEPORT, MessagePort) \ | 295 V(MESSAGEPORT, MessagePort) \ |
289 V(XMLHTTPREQUEST, XMLHttpRequest) \ | 296 V(XMLHTTPREQUEST, XMLHttpRequest) \ |
290 WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ | 297 WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ |
291 SHARED_WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) | 298 SHARED_WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) |
| 299 WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) |
292 | 300 |
293 // NOTE: DOM_OBJECT_TYPES is split into two halves because | 301 // NOTE: DOM_OBJECT_TYPES is split into two halves because |
294 // Visual Studio's Intellinonsense crashes when macros get | 302 // Visual Studio's Intellinonsense crashes when macros get |
295 // too large. 10-29-08 | 303 // too large. 10-29-08 |
296 // DOM_OBJECT_TYPES are non-node DOM types. | 304 // DOM_OBJECT_TYPES are non-node DOM types. |
297 #define DOM_OBJECT_TYPES_1(V) \ | 305 #define DOM_OBJECT_TYPES_1(V) \ |
298 V(BARINFO, BarInfo) \ | 306 V(BARINFO, BarInfo) \ |
299 V(CANVASGRADIENT, CanvasGradient) \ | 307 V(CANVASGRADIENT, CanvasGradient) \ |
300 V(CANVASPATTERN, CanvasPattern) \ | 308 V(CANVASPATTERN, CanvasPattern) \ |
301 V(CANVASRENDERINGCONTEXT2D, CanvasRenderingContext2D) \ | 309 V(CANVASRENDERINGCONTEXT2D, CanvasRenderingContext2D) \ |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 static FunctionTemplateFactory GetFactory(V8WrapperType type); | 557 static FunctionTemplateFactory GetFactory(V8WrapperType type); |
550 | 558 |
551 // Returns a field to be used as cache for the template for the given ty
pe | 559 // Returns a field to be used as cache for the template for the given ty
pe |
552 // FIXME: Convert to getCache after all the bindings are in one place. | 560 // FIXME: Convert to getCache after all the bindings are in one place. |
553 static v8::Persistent<v8::FunctionTemplate>* GetCache(V8WrapperType type
); | 561 static v8::Persistent<v8::FunctionTemplate>* GetCache(V8WrapperType type
); |
554 }; | 562 }; |
555 | 563 |
556 } | 564 } |
557 | 565 |
558 #endif // V8Index_h | 566 #endif // V8Index_h |
OLD | NEW |