OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CUSTOM_H__ | 5 #ifndef V8_CUSTOM_H__ |
6 #define V8_CUSTOM_H__ | 6 #define V8_CUSTOM_H__ |
7 | 7 |
8 #include <v8.h> | 8 #include <v8.h> |
9 #include "v8_index.h" | 9 #include "v8_index.h" |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 static const int kMessageChannelInternalFieldCount = | 76 static const int kMessageChannelInternalFieldCount = |
77 kDefaultWrapperInternalFieldCount + 2; | 77 kDefaultWrapperInternalFieldCount + 2; |
78 | 78 |
79 static const int kMessagePortRequestCacheIndex = | 79 static const int kMessagePortRequestCacheIndex = |
80 kDefaultWrapperInternalFieldCount + 0; | 80 kDefaultWrapperInternalFieldCount + 0; |
81 static const int kMessagePortEntangledPortIndex = | 81 static const int kMessagePortEntangledPortIndex = |
82 kDefaultWrapperInternalFieldCount + 1; | 82 kDefaultWrapperInternalFieldCount + 1; |
83 static const int kMessagePortInternalFieldCount = | 83 static const int kMessagePortInternalFieldCount = |
84 kDefaultWrapperInternalFieldCount + 2; | 84 kDefaultWrapperInternalFieldCount + 2; |
85 | 85 |
| 86 #if ENABLE(WORKERS) |
| 87 static const int kWorkerRequestCacheIndex = |
| 88 kDefaultWrapperInternalFieldCount + 0; |
| 89 static const int kWorkerInternalFieldCount = |
| 90 kDefaultWrapperInternalFieldCount + 1; |
| 91 #endif |
| 92 |
86 static const int kDOMWindowLocationIndex = | 93 static const int kDOMWindowLocationIndex = |
87 kDefaultWrapperInternalFieldCount + 0; | 94 kDefaultWrapperInternalFieldCount + 0; |
88 static const int kDOMWindowNavigatorIndex = | 95 static const int kDOMWindowNavigatorIndex = |
89 kDefaultWrapperInternalFieldCount + 1; | 96 kDefaultWrapperInternalFieldCount + 1; |
90 static const int kDOMWindowInternalFieldCount = | 97 static const int kDOMWindowInternalFieldCount = |
91 kDefaultWrapperInternalFieldCount + 2; | 98 kDefaultWrapperInternalFieldCount + 2; |
92 | 99 |
93 static const int kStyleSheetOwnerNodeIndex = | 100 static const int kStyleSheetOwnerNodeIndex = |
94 kDefaultWrapperInternalFieldCount + 0; | 101 kDefaultWrapperInternalFieldCount + 0; |
95 static const int kStyleSheetInternalFieldCount = | 102 static const int kStyleSheetInternalFieldCount = |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // SVG custom properties and callbacks | 406 // SVG custom properties and callbacks |
400 #if ENABLE(SVG) | 407 #if ENABLE(SVG) |
401 DECLARE_PROPERTY_ACCESSOR_GETTER(SVGLengthValue) | 408 DECLARE_PROPERTY_ACCESSOR_GETTER(SVGLengthValue) |
402 DECLARE_CALLBACK(SVGLengthConvertToSpecifiedUnits) | 409 DECLARE_CALLBACK(SVGLengthConvertToSpecifiedUnits) |
403 DECLARE_CALLBACK(SVGMatrixInverse) | 410 DECLARE_CALLBACK(SVGMatrixInverse) |
404 DECLARE_CALLBACK(SVGMatrixRotateFromVector) | 411 DECLARE_CALLBACK(SVGMatrixRotateFromVector) |
405 DECLARE_CALLBACK(SVGElementInstanceAddEventListener) | 412 DECLARE_CALLBACK(SVGElementInstanceAddEventListener) |
406 DECLARE_CALLBACK(SVGElementInstanceRemoveEventListener) | 413 DECLARE_CALLBACK(SVGElementInstanceRemoveEventListener) |
407 #endif | 414 #endif |
408 | 415 |
| 416 // Worker |
| 417 #if ENABLE(WORKERS) |
| 418 DECLARE_PROPERTY_ACCESSOR(WorkerOnmessage) |
| 419 DECLARE_PROPERTY_ACCESSOR(WorkerOnerror) |
| 420 DECLARE_CALLBACK(WorkerConstructor) |
| 421 DECLARE_CALLBACK(WorkerAddEventListener) |
| 422 DECLARE_CALLBACK(WorkerRemoveEventListener) |
| 423 #endif |
| 424 |
409 #undef DECLARE_INDEXED_ACCESS_CHECK | 425 #undef DECLARE_INDEXED_ACCESS_CHECK |
410 #undef DECLARE_NAMED_ACCESS_CHECK | 426 #undef DECLARE_NAMED_ACCESS_CHECK |
411 | 427 |
412 #undef DECLARE_PROPERTY_ACCESSOR_SETTER | 428 #undef DECLARE_PROPERTY_ACCESSOR_SETTER |
413 #undef DECLARE_PROPERTY_ACCESSOR_GETTER | 429 #undef DECLARE_PROPERTY_ACCESSOR_GETTER |
414 #undef DECLARE_PROPERTY_ACCESSOR | 430 #undef DECLARE_PROPERTY_ACCESSOR |
415 | 431 |
416 #undef DECLARE_NAMED_PROPERTY_GETTER | 432 #undef DECLARE_NAMED_PROPERTY_GETTER |
417 #undef DECLARE_NAMED_PROPERTY_SETTER | 433 #undef DECLARE_NAMED_PROPERTY_SETTER |
418 #undef DECLARE_NAMED_PROPERTY_DELETER | 434 #undef DECLARE_NAMED_PROPERTY_DELETER |
(...skipping 19 matching lines...) Expand all Loading... |
438 | 454 |
439 private: | 455 private: |
440 static v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments& args, | 456 static v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments& args, |
441 bool single_shot); | 457 bool single_shot); |
442 }; | 458 }; |
443 | 459 |
444 } // namespace WebCore | 460 } // namespace WebCore |
445 | 461 |
446 #endif // V8_CUSTOM_H__ | 462 #endif // V8_CUSTOM_H__ |
447 | 463 |
OLD | NEW |