| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 } | 519 } |
| 520 | 520 |
| 521 inline v8::MaybeLocal<v8::Value> v8DateOrNaN(v8::Isolate* isolate, double value) | 521 inline v8::MaybeLocal<v8::Value> v8DateOrNaN(v8::Isolate* isolate, double value) |
| 522 { | 522 { |
| 523 ASSERT(isolate); | 523 ASSERT(isolate); |
| 524 return v8::Date::New(isolate->GetCurrentContext(), std::isfinite(value) ? va
lue : std::numeric_limits<double>::quiet_NaN()); | 524 return v8::Date::New(isolate->GetCurrentContext(), std::isfinite(value) ? va
lue : std::numeric_limits<double>::quiet_NaN()); |
| 525 } | 525 } |
| 526 | 526 |
| 527 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. | 527 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. |
| 528 PassRefPtrWillBeRawPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Handl
e<v8::Object>, ScriptState*); | 528 PassRefPtrWillBeRawPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Handl
e<v8::Object>, ScriptState*); |
| 529 PassRefPtrWillBeRawPtr<XPathNSResolver> toXPathNSResolver(ScriptState*, v8::Hand
le<v8::Value>); | 529 XPathNSResolver* toXPathNSResolver(ScriptState*, v8::Handle<v8::Value>); |
| 530 | 530 |
| 531 bool toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, v8::Isolate*, Excepti
onState&); | 531 bool toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, v8::Isolate*, Excepti
onState&); |
| 532 | 532 |
| 533 // Converts a JavaScript value to an array as per the Web IDL specification: | 533 // Converts a JavaScript value to an array as per the Web IDL specification: |
| 534 // http://www.w3.org/TR/2012/CR-WebIDL-20120419/#es-array | 534 // http://www.w3.org/TR/2012/CR-WebIDL-20120419/#es-array |
| 535 template <class T, class V8T> | 535 template <class T, class V8T> |
| 536 Vector<RefPtr<T>> toRefPtrNativeArrayUnchecked(v8::Local<v8::Value> v8Value, uin
t32_t length, v8::Isolate* isolate, ExceptionState& exceptionState) | 536 Vector<RefPtr<T>> toRefPtrNativeArrayUnchecked(v8::Local<v8::Value> v8Value, uin
t32_t length, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 537 { | 537 { |
| 538 Vector<RefPtr<T>> result; | 538 Vector<RefPtr<T>> result; |
| 539 result.reserveInitialCapacity(length); | 539 result.reserveInitialCapacity(length); |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol
ate*, ExecutionContext*, v8::Handle<v8::Function>); | 999 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol
ate*, ExecutionContext*, v8::Handle<v8::Function>); |
| 1000 | 1000 |
| 1001 // Callback functions used by generated code. | 1001 // Callback functions used by generated code. |
| 1002 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName,
const v8::PropertyCallbackInfo<v8::Value>&); | 1002 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName,
const v8::PropertyCallbackInfo<v8::Value>&); |
| 1003 | 1003 |
| 1004 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso
late*); | 1004 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso
late*); |
| 1005 | 1005 |
| 1006 } // namespace blink | 1006 } // namespace blink |
| 1007 | 1007 |
| 1008 #endif // V8Binding_h | 1008 #endif // V8Binding_h |
| OLD | NEW |