| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 } | 554 } |
| 555 | 555 |
| 556 V8TRYCATCH(uint32_t, sequenceLength, lengthValue->Int32Value()); | 556 V8TRYCATCH(uint32_t, sequenceLength, lengthValue->Int32Value()); |
| 557 length = sequenceLength; | 557 length = sequenceLength; |
| 558 | 558 |
| 559 return v8Value; | 559 return v8Value; |
| 560 } | 560 } |
| 561 | 561 |
| 562 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*); | 562 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*); |
| 563 | 563 |
| 564 DOMWindow* toNativeDOMWindow(v8::Handle<v8::Value>, v8::Isolate*); |
| 565 |
| 564 inline bool isUndefinedOrNull(v8::Handle<v8::Value> value) | 566 inline bool isUndefinedOrNull(v8::Handle<v8::Value> value) |
| 565 { | 567 { |
| 566 return value->IsNull() || value->IsUndefined(); | 568 return value->IsNull() || value->IsUndefined(); |
| 567 } | 569 } |
| 568 | 570 |
| 569 // Returns true if the provided object is to be considered a 'host object',
as used in the | 571 // Returns true if the provided object is to be considered a 'host object',
as used in the |
| 570 // HTML5 structured clone algorithm. | 572 // HTML5 structured clone algorithm. |
| 571 inline bool isHostObject(v8::Handle<v8::Object> object) | 573 inline bool isHostObject(v8::Handle<v8::Object> object) |
| 572 { | 574 { |
| 573 // If the object has any internal fields, then we won't be able to seria
lize or deserialize | 575 // If the object has any internal fields, then we won't be able to seria
lize or deserialize |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 // Result values for platform object 'deleter' methods, | 702 // Result values for platform object 'deleter' methods, |
| 701 // http://www.w3.org/TR/WebIDL/#delete | 703 // http://www.w3.org/TR/WebIDL/#delete |
| 702 enum DeleteResult { | 704 enum DeleteResult { |
| 703 DeleteSuccess, | 705 DeleteSuccess, |
| 704 DeleteReject, | 706 DeleteReject, |
| 705 DeleteUnknownProperty | 707 DeleteUnknownProperty |
| 706 }; | 708 }; |
| 707 } // namespace WebCore | 709 } // namespace WebCore |
| 708 | 710 |
| 709 #endif // V8Binding_h | 711 #endif // V8Binding_h |
| OLD | NEW |