| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 } | 750 } |
| 751 | 751 |
| 752 inline v8::Handle<v8::Value> v8DateOrNaN(double value, v8::Isolate* isolate) | 752 inline v8::Handle<v8::Value> v8DateOrNaN(double value, v8::Isolate* isolate) |
| 753 { | 753 { |
| 754 ASSERT(isolate); | 754 ASSERT(isolate); |
| 755 return v8::Date::New(isolate, std::isfinite(value) ? value : std::numeric_li
mits<double>::quiet_NaN()); | 755 return v8::Date::New(isolate, std::isfinite(value) ? value : std::numeric_li
mits<double>::quiet_NaN()); |
| 756 } | 756 } |
| 757 | 757 |
| 758 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. | 758 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. |
| 759 PassRefPtrWillBeRawPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Handl
e<v8::Object>, ScriptState*); | 759 PassRefPtrWillBeRawPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Handl
e<v8::Object>, ScriptState*); |
| 760 PassRefPtrWillBeRawPtr<XPathNSResolver> toXPathNSResolver(v8::Isolate*, v8::Hand
le<v8::Value>); | 760 XPathNSResolver* toXPathNSResolver(v8::Isolate*, v8::Handle<v8::Value>); |
| 761 | 761 |
| 762 template<class T> struct NativeValueTraits; | 762 template<class T> struct NativeValueTraits; |
| 763 | 763 |
| 764 bool toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, v8::Isolate*, Excepti
onState&); | 764 bool toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, v8::Isolate*, Excepti
onState&); |
| 765 | 765 |
| 766 // Converts a JavaScript value to an array as per the Web IDL specification: | 766 // Converts a JavaScript value to an array as per the Web IDL specification: |
| 767 // http://www.w3.org/TR/2012/CR-WebIDL-20120419/#es-array | 767 // http://www.w3.org/TR/2012/CR-WebIDL-20120419/#es-array |
| 768 template <class T, class V8T> | 768 template <class T, class V8T> |
| 769 Vector<RefPtr<T> > toRefPtrNativeArrayUnchecked(v8::Local<v8::Value> v8Value, ui
nt32_t length, v8::Isolate* isolate, ExceptionState& exceptionState) | 769 Vector<RefPtr<T> > toRefPtrNativeArrayUnchecked(v8::Local<v8::Value> v8Value, ui
nt32_t length, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 770 { | 770 { |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) | 1210 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) |
| 1211 { | 1211 { |
| 1212 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value(
value, scriptState->context()->Global(), scriptState->isolate())); | 1212 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value(
value, scriptState->context()->Global(), scriptState->isolate())); |
| 1213 } | 1213 } |
| 1214 | 1214 |
| 1215 typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Is
olate*); | 1215 typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Is
olate*); |
| 1216 | 1216 |
| 1217 } // namespace blink | 1217 } // namespace blink |
| 1218 | 1218 |
| 1219 #endif // V8Binding_h | 1219 #endif // V8Binding_h |
| OLD | NEW |