OLD | NEW |
1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
2 // All rights reserved. | 2 // 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 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 V8Custom::kWorkerContextInternalFieldCount); | 1597 V8Custom::kWorkerContextInternalFieldCount); |
1598 break; | 1598 break; |
1599 } | 1599 } |
1600 #endif // WORKERS | 1600 #endif // WORKERS |
1601 | 1601 |
1602 | 1602 |
1603 // The following objects are created from JavaScript. | 1603 // The following objects are created from JavaScript. |
1604 case V8ClassIndex::DOMPARSER: | 1604 case V8ClassIndex::DOMPARSER: |
1605 desc->SetCallHandler(USE_CALLBACK(DOMParserConstructor)); | 1605 desc->SetCallHandler(USE_CALLBACK(DOMParserConstructor)); |
1606 break; | 1606 break; |
| 1607 #if ENABLE(VIDEO) |
| 1608 case V8ClassIndex::HTMLAUDIOELEMENT: |
| 1609 desc->SetCallHandler(USE_CALLBACK(HTMLAudioElementConstructor)); |
| 1610 break; |
| 1611 #endif |
1607 case V8ClassIndex::HTMLIMAGEELEMENT: | 1612 case V8ClassIndex::HTMLIMAGEELEMENT: |
1608 desc->SetCallHandler(USE_CALLBACK(HTMLImageElementConstructor)); | 1613 desc->SetCallHandler(USE_CALLBACK(HTMLImageElementConstructor)); |
1609 break; | 1614 break; |
1610 case V8ClassIndex::HTMLOPTIONELEMENT: | 1615 case V8ClassIndex::HTMLOPTIONELEMENT: |
1611 desc->SetCallHandler(USE_CALLBACK(HTMLOptionElementConstructor)); | 1616 desc->SetCallHandler(USE_CALLBACK(HTMLOptionElementConstructor)); |
1612 break; | 1617 break; |
1613 case V8ClassIndex::WEBKITCSSMATRIX: | 1618 case V8ClassIndex::WEBKITCSSMATRIX: |
1614 desc->SetCallHandler(USE_CALLBACK(WebKitCSSMatrixConstructor)); | 1619 desc->SetCallHandler(USE_CALLBACK(WebKitCSSMatrixConstructor)); |
1615 break; | 1620 break; |
1616 case V8ClassIndex::WEBKITPOINT: | 1621 case V8ClassIndex::WEBKITPOINT: |
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3475 v8::HandleScope scope; | 3480 v8::HandleScope scope; |
3476 if (!context->GetData()->IsObject()) { | 3481 if (!context->GetData()->IsObject()) { |
3477 return -1; | 3482 return -1; |
3478 } | 3483 } |
3479 v8::Handle<v8::Value> data = context->GetData()->ToObject()->Get( | 3484 v8::Handle<v8::Value> data = context->GetData()->ToObject()->Get( |
3480 v8::String::New(kContextDebugDataValue)); | 3485 v8::String::New(kContextDebugDataValue)); |
3481 return data->IsInt32() ? data->Int32Value() : -1; | 3486 return data->IsInt32() ? data->Int32Value() : -1; |
3482 } | 3487 } |
3483 | 3488 |
3484 } // namespace WebCore | 3489 } // namespace WebCore |
OLD | NEW |