Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1138)

Side by Side Diff: Source/bindings/core/v8/NativeValueTraits.h

Issue 1009503003: [bindings] Introduce ScriptValue.to<T> to convert to native values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding new file NativeValueTraits.h Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/ScriptValue.h » ('j') | Source/bindings/core/v8/V8Binding.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698