| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 DECLARE_PROPERTY_ACCESSOR_SETTER(DOMWindowOpener); | 219 DECLARE_PROPERTY_ACCESSOR_SETTER(DOMWindowOpener); |
| 217 | 220 |
| 218 DECLARE_PROPERTY_ACCESSOR(DocumentLocation); | 221 DECLARE_PROPERTY_ACCESSOR(DocumentLocation); |
| 219 DECLARE_PROPERTY_ACCESSOR(DocumentImplementation); | 222 DECLARE_PROPERTY_ACCESSOR(DocumentImplementation); |
| 220 DECLARE_PROPERTY_ACCESSOR_GETTER(EventSrcElement); | 223 DECLARE_PROPERTY_ACCESSOR_GETTER(EventSrcElement); |
| 221 DECLARE_PROPERTY_ACCESSOR(EventReturnValue); | 224 DECLARE_PROPERTY_ACCESSOR(EventReturnValue); |
| 222 DECLARE_PROPERTY_ACCESSOR_GETTER(EventDataTransfer); | 225 DECLARE_PROPERTY_ACCESSOR_GETTER(EventDataTransfer); |
| 223 DECLARE_PROPERTY_ACCESSOR_GETTER(EventClipboardData); | 226 DECLARE_PROPERTY_ACCESSOR_GETTER(EventClipboardData); |
| 224 | 227 |
| 225 DECLARE_PROPERTY_ACCESSOR(DOMWindowEventHandler); | 228 DECLARE_PROPERTY_ACCESSOR(DOMWindowEventHandler); |
| 226 DECLARE_PROPERTY_ACCESSOR(ElementEventHandler); | 229 DECLARE_PROPERTY_ACCESSOR(NodeEventHandler); |
| 227 | 230 |
| 228 DECLARE_CALLBACK(HTMLCanvasElementGetContext); | 231 DECLARE_CALLBACK(HTMLCanvasElementGetContext); |
| 229 | 232 |
| 230 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementSrc); | 233 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementSrc); |
| 231 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementLocation); | 234 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLFrameElementLocation); |
| 232 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLIFrameElementSrc); | 235 DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLIFrameElementSrc); |
| 233 | 236 |
| 234 DECLARE_PROPERTY_ACCESSOR_SETTER(AttrValue); | 237 DECLARE_PROPERTY_ACCESSOR_SETTER(AttrValue); |
| 235 | 238 |
| 236 DECLARE_PROPERTY_ACCESSOR(HTMLOptionsCollectionLength); | 239 DECLARE_PROPERTY_ACCESSOR(HTMLOptionsCollectionLength); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 537 |
| 535 private: | 538 private: |
| 536 static v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments&,
bool singleShot); | 539 static v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments&,
bool singleShot); |
| 537 static void ClearTimeoutImpl(const v8::Arguments&); | 540 static void ClearTimeoutImpl(const v8::Arguments&); |
| 538 static void WindowSetLocation(DOMWindow*, const String&); | 541 static void WindowSetLocation(DOMWindow*, const String&); |
| 539 }; | 542 }; |
| 540 | 543 |
| 541 } // namespace WebCore | 544 } // namespace WebCore |
| 542 | 545 |
| 543 #endif // V8CustomBinding_h | 546 #endif // V8CustomBinding_h |
| OLD | NEW |