Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: webkit/port/bindings/v8/v8_custom.h

Issue 17246: Add V8 bindings for Worker (Part I). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/port/bindings/v8/WorkerScriptController.cpp ('k') | webkit/port/bindings/v8/v8_index.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bindings/v8/v8_custom.h
===================================================================
--- webkit/port/bindings/v8/v8_custom.h (revision 8350)
+++ webkit/port/bindings/v8/v8_custom.h (working copy)
@@ -83,6 +83,13 @@
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(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
« no previous file with comments | « webkit/port/bindings/v8/WorkerScriptController.cpp ('k') | webkit/port/bindings/v8/v8_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698