diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-21 23:48:34 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-21 23:48:34 +0000 |
commit | 9257d0132435d1248ca586e878ee67b1b8dcdb56 (patch) | |
tree | 5a6f4164d9f25dc7f0f6b0e83b81c37491141b39 /webkit/port/bindings/v8/v8_custom.h | |
parent | a1a61172ee9e1c59f257c4c8c49d4b9eb4c046e9 (diff) | |
download | chromium_src-9257d0132435d1248ca586e878ee67b1b8dcdb56.zip chromium_src-9257d0132435d1248ca586e878ee67b1b8dcdb56.tar.gz chromium_src-9257d0132435d1248ca586e878ee67b1b8dcdb56.tar.bz2 |
Add V8 bindings for Worker.
Review URL: http://codereview.chromium.org/17246
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_custom.h')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h index 1dd2858..3d23b26 100644 --- a/webkit/port/bindings/v8/v8_custom.h +++ b/webkit/port/bindings/v8/v8_custom.h @@ -83,6 +83,13 @@ class V8Custom { static const int kMessagePortInternalFieldCount = kDefaultWrapperInternalFieldCount + 2; +#if ENABLE(WORKERS) + static const int kWorkerRequestCacheIndex = + kDefaultWrapperInternalFieldCount + 0; + static const int kWorkerInternalFieldCount = + kDefaultWrapperInternalFieldCount + 1; +#endif + static const int kDOMWindowLocationIndex = kDefaultWrapperInternalFieldCount + 0; static const int kDOMWindowNavigatorIndex = @@ -406,6 +413,15 @@ DECLARE_CALLBACK(SVGElementInstanceAddEventListener) DECLARE_CALLBACK(SVGElementInstanceRemoveEventListener) #endif +// Worker +#if ENABLE(WORKERS) +DECLARE_PROPERTY_ACCESSOR(WorkerOnmessage) +DECLARE_PROPERTY_ACCESSOR(WorkerOnerror) +DECLARE_CALLBACK(WorkerConstructor) +DECLARE_CALLBACK(WorkerAddEventListener) +DECLARE_CALLBACK(WorkerRemoveEventListener) +#endif + #undef DECLARE_INDEXED_ACCESS_CHECK #undef DECLARE_NAMED_ACCESS_CHECK |