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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 template<> | 218 template<> |
219 struct V8ValueTraits<String> { | 219 struct V8ValueTraits<String> { |
220 static inline v8::Handle<v8::Value> arrayV8Value(const String& value, v8
::Isolate* isolate) | 220 static inline v8::Handle<v8::Value> arrayV8Value(const String& value, v8
::Isolate* isolate) |
221 { | 221 { |
222 return v8String(isolate, value); | 222 return v8String(isolate, value); |
223 } | 223 } |
224 }; | 224 }; |
225 | 225 |
226 template<> | 226 template<> |
| 227 struct V8ValueTraits<AtomicString> { |
| 228 static inline v8::Handle<v8::Value> arrayV8Value(const AtomicString& val
ue, v8::Isolate* isolate) |
| 229 { |
| 230 return v8String(isolate, value); |
| 231 } |
| 232 }; |
| 233 |
| 234 template<> |
227 struct V8ValueTraits<unsigned> { | 235 struct V8ValueTraits<unsigned> { |
228 static inline v8::Handle<v8::Value> arrayV8Value(const unsigned& value,
v8::Isolate* isolate) | 236 static inline v8::Handle<v8::Value> arrayV8Value(const unsigned& value,
v8::Isolate* isolate) |
229 { | 237 { |
230 return v8::Integer::NewFromUnsigned(isolate, value); | 238 return v8::Integer::NewFromUnsigned(isolate, value); |
231 } | 239 } |
232 }; | 240 }; |
233 | 241 |
234 template<> | 242 template<> |
235 struct V8ValueTraits<unsigned long> { | 243 struct V8ValueTraits<unsigned long> { |
236 static inline v8::Handle<v8::Value> arrayV8Value(const unsigned long& va
lue, v8::Isolate* isolate) | 244 static inline v8::Handle<v8::Value> arrayV8Value(const unsigned long& va
lue, v8::Isolate* isolate) |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // Result values for platform object 'deleter' methods, | 710 // Result values for platform object 'deleter' methods, |
703 // http://www.w3.org/TR/WebIDL/#delete | 711 // http://www.w3.org/TR/WebIDL/#delete |
704 enum DeleteResult { | 712 enum DeleteResult { |
705 DeleteSuccess, | 713 DeleteSuccess, |
706 DeleteReject, | 714 DeleteReject, |
707 DeleteUnknownProperty | 715 DeleteUnknownProperty |
708 }; | 716 }; |
709 } // namespace WebCore | 717 } // namespace WebCore |
710 | 718 |
711 #endif // V8Binding_h | 719 #endif // V8Binding_h |
OLD | NEW |