Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NativeValueTraits_h | |
| 6 #define NativeValueTraits_h | |
| 7 | |
| 8 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.
| |
| 9 class Isolate; | |
| 10 template <typename T> | |
| 11 class Local; | |
| 12 class Value; | |
| 13 } // namespace v8 | |
| 14 | |
| 15 namespace blink { | |
| 16 | |
| 17 class ExceptionState; | |
| 18 | |
| 19 template <typename T> | |
| 20 struct NativeValueTraits { | |
| 21 static T nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionSta te&); | |
|
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.
| |
| 22 }; | |
| 23 | |
| 24 } // namespace blink | |
| 25 | |
| 26 #endif // NativeValueTraits_h | |
| OLD | NEW |