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

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

Issue 1051753003: bindings: Add toBoolean() to V8Binding.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 "V8TestInterfaceNamedConstructor.h" 8 #include "V8TestInterfaceNamedConstructor.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 V8StringResource<> stringArg; 94 V8StringResource<> stringArg;
95 bool defaultUndefinedOptionalBooleanArg; 95 bool defaultUndefinedOptionalBooleanArg;
96 int defaultUndefinedOptionalLongArg; 96 int defaultUndefinedOptionalLongArg;
97 V8StringResource<> defaultUndefinedOptionalStringArg; 97 V8StringResource<> defaultUndefinedOptionalStringArg;
98 V8StringResource<> defaultNullStringOptionalstringArg; 98 V8StringResource<> defaultNullStringOptionalstringArg;
99 V8StringResource<> optionalStringArg; 99 V8StringResource<> optionalStringArg;
100 { 100 {
101 stringArg = info[0]; 101 stringArg = info[0];
102 if (!stringArg.prepare()) 102 if (!stringArg.prepare())
103 return; 103 return;
104 defaultUndefinedOptionalBooleanArg = info[1]->BooleanValue(); 104 defaultUndefinedOptionalBooleanArg = toBoolean(info.GetIsolate(), info[1 ], exceptionState);
105 if (exceptionState.throwIfNeeded())
106 return;
105 defaultUndefinedOptionalLongArg = toInt32(info.GetIsolate(), info[2], No rmalConversion, exceptionState); 107 defaultUndefinedOptionalLongArg = toInt32(info.GetIsolate(), info[2], No rmalConversion, exceptionState);
106 if (exceptionState.throwIfNeeded()) 108 if (exceptionState.throwIfNeeded())
107 return; 109 return;
108 defaultUndefinedOptionalStringArg = info[3]; 110 defaultUndefinedOptionalStringArg = info[3];
109 if (!defaultUndefinedOptionalStringArg.prepare()) 111 if (!defaultUndefinedOptionalStringArg.prepare())
110 return; 112 return;
111 if (!info[4]->IsUndefined()) { 113 if (!info[4]->IsUndefined()) {
112 defaultNullStringOptionalstringArg = info[4]; 114 defaultNullStringOptionalstringArg = info[4];
113 if (!defaultNullStringOptionalstringArg.prepare()) 115 if (!defaultNullStringOptionalstringArg.prepare())
114 return; 116 return;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 { 209 {
208 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); 210 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref();
209 } 211 }
210 212
211 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab le) 213 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab le)
212 { 214 {
213 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); 215 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref();
214 } 216 }
215 217
216 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestDictionary.cpp ('k') | Source/bindings/tests/results/core/V8TestInterfaceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698