Chromium Code Reviews| Index: Source/bindings/core/v8/NativeValueTraits.h |
| diff --git a/Source/bindings/core/v8/NativeValueTraits.h b/Source/bindings/core/v8/NativeValueTraits.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bdbfdfe9424f6ecf2a3100547a3b6df9dd8c2026 |
| --- /dev/null |
| +++ b/Source/bindings/core/v8/NativeValueTraits.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NativeValueTraits_h |
| +#define NativeValueTraits_h |
| + |
| +namespace v8 { |
|
Yuki
2015/03/16 08:03:07
You'd better include <v8.h>, which is a third part
vivekg
2015/03/16 08:32:17
Done.
|
| +class Isolate; |
| +template <typename T> |
| +class Local; |
| +class Value; |
| +} // namespace v8 |
| + |
| +namespace blink { |
| + |
| +class ExceptionState; |
| + |
| +template <typename T> |
| +struct NativeValueTraits { |
| + static T nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&); |
|
Yuki
2015/03/16 08:03:07
I'm not quite sure why this has been const v8::Loc
vivekg
2015/03/16 08:32:17
I will take this up as follow up patch.
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // NativeValueTraits_h |