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

Side by Side Diff: Source/bindings/tests/results/core/V8TestDictionaryDerived.h

Issue 759893002: IDL: Auto-generate NativeValueTraits for IDL dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #ifndef V8TestDictionaryDerived_h 7 #ifndef V8TestDictionaryDerived_h
8 #define V8TestDictionaryDerived_h 8 #define V8TestDictionaryDerived_h
9 9
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
11 #include "bindings/tests/idls/core/TestDictionaryDerivedImplementedAs.h" 11 #include "bindings/tests/idls/core/TestDictionaryDerivedImplementedAs.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class ExceptionState; 16 class ExceptionState;
17 17
18 class V8TestDictionaryDerivedImplementedAs { 18 class V8TestDictionaryDerivedImplementedAs {
19 public: 19 public:
20 static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, TestDictionaryDerive dImplementedAs&, ExceptionState&); 20 static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, TestDictionaryDerive dImplementedAs&, ExceptionState&);
21 }; 21 };
22 22
23 v8::Handle<v8::Value> toV8(TestDictionaryDerivedImplementedAs&, v8::Handle<v8::O bject>, v8::Isolate*); 23 v8::Handle<v8::Value> toV8(const TestDictionaryDerivedImplementedAs&, v8::Handle <v8::Object>, v8::Isolate*);
24 void toV8TestDictionaryDerivedImplementedAs(TestDictionaryDerivedImplementedAs&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8:: Isolate*); 24 void toV8TestDictionaryDerivedImplementedAs(const TestDictionaryDerivedImplement edAs&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext , v8::Isolate*);
25 25
26 template<class CallbackInfo> 26 template<class CallbackInfo>
27 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionaryDer ivedImplementedAs& impl) 27 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionaryDer ivedImplementedAs& impl)
28 { 28 {
29 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 29 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
30 } 30 }
31 31
32 template <>
33 struct NativeValueTraits<TestDictionaryDerivedImplementedAs> {
34 static TestDictionaryDerivedImplementedAs nativeValue(const v8::Handle<v8::V alue>&, v8::Isolate*, ExceptionState&);
35 };
36
32 } // namespace blink 37 } // namespace blink
33 38
34 #endif // V8TestDictionaryDerived_h 39 #endif // V8TestDictionaryDerived_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698