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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1014 v8::Local<v8::Value> v8DoneIteratorResult(v8::Isolate*); | 1014 v8::Local<v8::Value> v8DoneIteratorResult(v8::Isolate*); |
1015 | 1015 |
1016 // Returns an object representing {done: false, value: |value|}. | 1016 // Returns an object representing {done: false, value: |value|}. |
1017 v8::Local<v8::Value> v8IteratorResult(v8::Isolate*, v8::Handle<v8::Value>); | 1017 v8::Local<v8::Value> v8IteratorResult(v8::Isolate*, v8::Handle<v8::Value>); |
1018 template <typename T> | 1018 template <typename T> |
1019 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) | 1019 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) |
1020 { | 1020 { |
1021 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value( value, scriptState->context()->Global(), scriptState->isolate())); | 1021 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value( value, scriptState->context()->Global(), scriptState->isolate())); |
1022 } | 1022 } |
1023 | 1023 |
1024 typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Is olate*); | |
tasak
2014/10/14 05:28:20
If moving this typedef to V8DOMConfiguration.h, we
| |
1025 | |
1024 } // namespace blink | 1026 } // namespace blink |
1025 | 1027 |
1026 #endif // V8Binding_h | 1028 #endif // V8Binding_h |
OLD | NEW |