OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 class V8Custom { | 94 class V8Custom { |
95 public: | 95 public: |
96 // Constants. | 96 // Constants. |
97 static const int kDOMWrapperTypeIndex = 0; | 97 static const int kDOMWrapperTypeIndex = 0; |
98 static const int kDOMWrapperObjectIndex = 1; | 98 static const int kDOMWrapperObjectIndex = 1; |
99 static const int kDefaultWrapperInternalFieldCount = 2; | 99 static const int kDefaultWrapperInternalFieldCount = 2; |
100 | 100 |
101 static const int kNPObjectInternalFieldCount = kDefaultWrapperInternalFi
eldCount + 0; | 101 static const int kNPObjectInternalFieldCount = kDefaultWrapperInternalFi
eldCount + 0; |
102 | 102 |
103 static const int kDocumentImplementationIndex = kDefaultWrapperInternalF
ieldCount + 0; | 103 static const int kNodeEventListenerCacheIndex = kDefaultWrapperInternalF
ieldCount + 0; |
104 static const int kDocumentMinimumInternalFieldCount = kDefaultWrapperInt
ernalFieldCount + 1; | 104 static const int kNodeMinimumInternalFieldCount = kDefaultWrapperInterna
lFieldCount + 1; |
| 105 |
| 106 static const int kDocumentImplementationIndex = kNodeMinimumInternalFiel
dCount + 0; |
| 107 static const int kDocumentMinimumInternalFieldCount = kNodeMinimumIntern
alFieldCount + 1; |
105 | 108 |
106 static const int kHTMLDocumentMarkerIndex = kDocumentMinimumInternalFiel
dCount + 0; | 109 static const int kHTMLDocumentMarkerIndex = kDocumentMinimumInternalFiel
dCount + 0; |
107 static const int kHTMLDocumentShadowIndex = kDocumentMinimumInternalFiel
dCount + 1; | 110 static const int kHTMLDocumentShadowIndex = kDocumentMinimumInternalFiel
dCount + 1; |
108 static const int kHTMLDocumentInternalFieldCount = kDocumentMinimumInter
nalFieldCount + 2; | 111 static const int kHTMLDocumentInternalFieldCount = kDocumentMinimumInter
nalFieldCount + 2; |
109 | 112 |
110 static const int kXMLHttpRequestCacheIndex = kDefaultWrapperInternalFiel
dCount + 0; | 113 static const int kXMLHttpRequestCacheIndex = kDefaultWrapperInternalFiel
dCount + 0; |
111 static const int kXMLHttpRequestInternalFieldCount = kDefaultWrapperInte
rnalFieldCount + 1; | 114 static const int kXMLHttpRequestInternalFieldCount = kDefaultWrapperInte
rnalFieldCount + 1; |
112 | 115 |
113 static const int kMessageChannelPort1Index = kDefaultWrapperInternalFiel
dCount + 0; | 116 static const int kMessageChannelPort1Index = kDefaultWrapperInternalFiel
dCount + 0; |
114 static const int kMessageChannelPort2Index = kDefaultWrapperInternalFiel
dCount + 1; | 117 static const int kMessageChannelPort2Index = kDefaultWrapperInternalFiel
dCount + 1; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 DECLARE_PROPERTY_ACCESSOR_SETTER(DOMWindowOpener); | 216 DECLARE_PROPERTY_ACCESSOR_SETTER(DOMWindowOpener); |
214 | 217 |
215 DECLARE_PROPERTY_ACCESSOR(DocumentLocation); | 218 DECLARE_PROPERTY_ACCESSOR(DocumentLocation); |
216 DECLARE_PROPERTY_ACCESSOR(DocumentImplementation); | 219 DECLARE_PROPERTY_ACCESSOR(DocumentImplementation); |
217 DECLARE_PROPERTY_ACCESSOR_GETTER(EventSrcElement); | 220 DECLARE_PROPERTY_ACCESSOR_GETTER(EventSrcElement); |
218 DECLARE_PROPERTY_ACCESSOR(EventReturnValue); | 221 DECLARE_PROPERTY_ACCESSOR(EventReturnValue); |
219 DECLARE_PROPERTY_ACCESSOR_GETTER(EventDataTransfer); | 222 DECLARE_PROPERTY_ACCESSOR_GETTER(EventDataTransfer); |
220 DECLARE_PROPERTY_ACCESSOR_GETTER(EventClipboardData); | 223 DECLARE_PROPERTY_ACCESSOR_GETTER(EventClipboardData); |
221 | 224 |
222 DECLARE_PROPERTY_ACCESSOR(DOMWindowEventHandler); | 225 DECLARE_PROPERTY_ACCESSOR(DOMWindowEventHandler); |
223 DECLARE_PROPERTY_ACCESSOR(ElementEventHandler); | 226 DECLARE_PROPERTY_ACCESSOR(NodeEventHandler); |
224 | 227 |
225 DECLARE_CALLBACK(HTMLCanvasElementGetContext); | 228 DECLARE_CALLBACK(HTMLCanvasElementGetContext); |
226 | 229 |
227 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementSrc); | 230 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementSrc); |
228 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementLocation); | 231 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementLocation); |
229 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLIFrameElementSrc); | 232 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLIFrameElementSrc); |
230 | 233 |
231 DECLARE_PROPERTY_ACCESSOR_SETTER(AttrValue); | 234 DECLARE_PROPERTY_ACCESSOR_SETTER(AttrValue); |
232 | 235 |
233 DECLARE_PROPERTY_ACCESSOR(HTMLOptionsCollectionLength); | 236 DECLARE_PROPERTY_ACCESSOR(HTMLOptionsCollectionLength); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 | 529 |
527 private: | 530 private: |
528 static v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments&,
bool singleShot); | 531 static v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments&,
bool singleShot); |
529 static void ClearTimeoutImpl(const v8::Arguments&); | 532 static void ClearTimeoutImpl(const v8::Arguments&); |
530 static void WindowSetLocation(DOMWindow*, const String&); | 533 static void WindowSetLocation(DOMWindow*, const String&); |
531 }; | 534 }; |
532 | 535 |
533 } // namespace WebCore | 536 } // namespace WebCore |
534 | 537 |
535 #endif // V8CustomBinding_h | 538 #endif // V8CustomBinding_h |
OLD | NEW |