Chromium Code Reviews| 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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1015 v8::Local<v8::Value> v8DoneIteratorResult(v8::Isolate*); | 1015 v8::Local<v8::Value> v8DoneIteratorResult(v8::Isolate*); |
| 1016 | 1016 |
| 1017 // Returns an object representing {done: false, value: |value|}. | 1017 // Returns an object representing {done: false, value: |value|}. |
| 1018 v8::Local<v8::Value> v8IteratorResult(v8::Isolate*, v8::Handle<v8::Value>); | 1018 v8::Local<v8::Value> v8IteratorResult(v8::Isolate*, v8::Handle<v8::Value>); |
| 1019 template <typename T> | 1019 template <typename T> |
| 1020 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) | 1020 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) |
| 1021 { | 1021 { |
| 1022 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value( value, scriptState->context()->Global(), scriptState->isolate())); | 1022 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value( value, scriptState->context()->Global(), scriptState->isolate())); |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Is olate*); | |
|
haraken
2014/10/09 04:24:00
I'd add this to V8DOMConfiguration.h.
| |
| 1026 | |
| 1025 } // namespace blink | 1027 } // namespace blink |
| 1026 | 1028 |
| 1027 #endif // V8Binding_h | 1029 #endif // V8Binding_h |
| OLD | NEW |