diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 19:16:29 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 19:16:29 +0000 |
commit | a6309f8198825442d77f0fc9aa70c82ae5dd6d04 (patch) | |
tree | 1ff2b6257184f746d15a1c4cdd91d41e038af3bc /webkit/port/bindings/v8/v8_custom.h | |
parent | eb6c8c24620c8f9f8afd3523cac74f03df0cfe52 (diff) | |
download | chromium_src-a6309f8198825442d77f0fc9aa70c82ae5dd6d04.zip chromium_src-a6309f8198825442d77f0fc9aa70c82ae5dd6d04.tar.gz chromium_src-a6309f8198825442d77f0fc9aa70c82ae5dd6d04.tar.bz2 |
More v8 bindings work to support executing worker and handling events in its worker context.
For now, we still execute the worker script in the same renderer process with v8 locker. It will be rerouted once we have worker process ready.
Review URL: http://codereview.chromium.org/18821
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9399 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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h index 72f9979..d27ed41 100644 --- a/webkit/port/bindings/v8/v8_custom.h +++ b/webkit/port/bindings/v8/v8_custom.h @@ -88,6 +88,11 @@ class V8Custom { kDefaultWrapperInternalFieldCount + 0; static const int kWorkerInternalFieldCount = kDefaultWrapperInternalFieldCount + 1; + + static const int kWorkerContextRequestCacheIndex = + kDefaultWrapperInternalFieldCount + 0; + static const int kWorkerContextInternalFieldCount = + kDefaultWrapperInternalFieldCount + 1; #endif static const int kDOMWindowLocationIndex = @@ -425,6 +430,15 @@ DECLARE_PROPERTY_ACCESSOR(WorkerOnerror) DECLARE_CALLBACK(WorkerConstructor) DECLARE_CALLBACK(WorkerAddEventListener) DECLARE_CALLBACK(WorkerRemoveEventListener) + +DECLARE_PROPERTY_ACCESSOR_GETTER(WorkerContextSelf) +DECLARE_PROPERTY_ACCESSOR(WorkerContextOnmessage) +DECLARE_CALLBACK(WorkerContextSetTimeout) +DECLARE_CALLBACK(WorkerContextClearTimeout) +DECLARE_CALLBACK(WorkerContextSetInterval) +DECLARE_CALLBACK(WorkerContextClearInterval) +DECLARE_CALLBACK(WorkerContextAddEventListener) +DECLARE_CALLBACK(WorkerContextRemoveEventListener) #endif #undef DECLARE_INDEXED_ACCESS_CHECK |