| Index: WebCore/bindings/v8/custom/V8CustomBinding.h
|
| diff --git a/WebCore/bindings/v8/custom/V8CustomBinding.h b/WebCore/bindings/v8/custom/V8CustomBinding.h
|
| index 6dfbddcf6d18e4ec8976478880f43006c98c18e7..d78ccbf17944b804fd7849283e48533851a1c59b 100644
|
| --- a/WebCore/bindings/v8/custom/V8CustomBinding.h
|
| +++ b/WebCore/bindings/v8/custom/V8CustomBinding.h
|
| @@ -150,6 +150,12 @@ namespace WebCore {
|
| static const int kStyleSheetOwnerNodeIndex = kDefaultWrapperInternalFieldCount + 0;
|
| static const int kStyleSheetInternalFieldCount = kDefaultWrapperInternalFieldCount + 1;
|
|
|
| +#if ENABLE(WEB_SOCKETS)
|
| + static const int kWebSocketCacheIndex = kDefaultWrapperInternalFieldCount + 0;
|
| + static const int kWebSocketInternalFieldCount = kDefaultWrapperInternalFieldCount + 1;
|
| +#endif
|
| +
|
| +
|
| #define DECLARE_PROPERTY_ACCESSOR_GETTER(NAME) \
|
| static v8::Handle<v8::Value> v8##NAME##AccessorGetter( \
|
| v8::Local<v8::String> name, const v8::AccessorInfo& info)
|
| @@ -503,6 +509,15 @@ namespace WebCore {
|
| DECLARE_CALLBACK(SharedWorkerConstructor);
|
| #endif
|
|
|
| +#if ENABLE(WEB_SOCKETS)
|
| + DECLARE_PROPERTY_ACCESSOR(WebSocketOnopen);
|
| + DECLARE_PROPERTY_ACCESSOR(WebSocketOnmessage);
|
| + DECLARE_PROPERTY_ACCESSOR(WebSocketOnclose);
|
| + DECLARE_CALLBACK(WebSocketConstructor);
|
| + DECLARE_CALLBACK(WebSocketSend);
|
| + DECLARE_CALLBACK(WebSocketClose);
|
| +#endif
|
| +
|
| #undef DECLARE_INDEXED_ACCESS_CHECK
|
| #undef DECLARE_NAMED_ACCESS_CHECK
|
|
|
|
|