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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types Created 3 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
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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl 9 // third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl
10 10
11 // clang-format off 11 // clang-format off
12 12
13 #ifndef VoidCallbackFunctionInterfaceArg_h 13 #ifndef VoidCallbackFunctionInterfaceArg_h
14 #define VoidCallbackFunctionInterfaceArg_h 14 #define VoidCallbackFunctionInterfaceArg_h
15 15
16 #include "bindings/core/v8/NativeValueTraits.h"
16 #include "bindings/core/v8/ScriptWrappable.h" 17 #include "bindings/core/v8/ScriptWrappable.h"
17 #include "bindings/core/v8/TraceWrapperV8Reference.h" 18 #include "bindings/core/v8/TraceWrapperV8Reference.h"
18 #include "core/CoreExport.h" 19 #include "core/CoreExport.h"
19 #include "platform/heap/Handle.h" 20 #include "platform/heap/Handle.h"
20 #include "wtf/text/WTFString.h" 21 #include "wtf/text/WTFString.h"
21 22
22 namespace blink { 23 namespace blink {
23 24
24 class ScriptState; 25 class ScriptState;
25 class HTMLDivElement; 26 class HTMLDivElement;
(...skipping 13 matching lines...) Expand all
39 return m_callback.newLocal(isolate); 40 return m_callback.newLocal(isolate);
40 } 41 }
41 42
42 private: 43 private:
43 VoidCallbackFunctionInterfaceArg(ScriptState*, v8::Local<v8::Function>); 44 VoidCallbackFunctionInterfaceArg(ScriptState*, v8::Local<v8::Function>);
44 45
45 RefPtr<ScriptState> m_scriptState; 46 RefPtr<ScriptState> m_scriptState;
46 TraceWrapperV8Reference<v8::Function> m_callback; 47 TraceWrapperV8Reference<v8::Function> m_callback;
47 }; 48 };
48 49
50 template <>
51 struct NativeValueTraits<VoidCallbackFunctionInterfaceArg> {
52 using ImplType = VoidCallbackFunctionInterfaceArg;
53 CORE_EXPORT static VoidCallbackFunctionInterfaceArg* nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
54 };
55
49 } // namespace blink 56 } // namespace blink
50 57
51 #endif // VoidCallbackFunctionInterfaceArg_h 58 #endif // VoidCallbackFunctionInterfaceArg_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698