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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 10 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceConstructor3.h" 8 #include "V8TestInterfaceConstructor3.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 20 matching lines...) Expand all
31 namespace TestInterfaceConstructor3V8Internal { 31 namespace TestInterfaceConstructor3V8Internal {
32 32
33 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 33 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
34 { 34 {
35 if (UNLIKELY(info.Length() < 1)) { 35 if (UNLIKELY(info.Length() < 1)) {
36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs olate()); 36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs olate());
37 return; 37 return;
38 } 38 }
39 V8StringResource<> stringArg; 39 V8StringResource<> stringArg;
40 { 40 {
41 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 41 stringArg = info[0];
42 if (!stringArg.prepare())
43 return;
42 } 44 }
43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg); 45 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg);
44 v8::Local<v8::Object> wrapper = info.Holder(); 46 v8::Local<v8::Object> wrapper = info.Holder();
45 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3:: wrapperTypeInfo, wrapper); 47 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3:: wrapperTypeInfo, wrapper);
46 v8SetReturnValue(info, wrapper); 48 v8SetReturnValue(info, wrapper);
47 } 49 }
48 50
49 } // namespace TestInterfaceConstructor3V8Internal 51 } // namespace TestInterfaceConstructor3V8Internal
50 52
51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info) 53 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info)
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 { 110 {
109 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref(); 111 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref();
110 } 112 }
111 113
112 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable) 114 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable)
113 { 115 {
114 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); 116 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref();
115 } 117 }
116 118
117 } // namespace blink 119 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698