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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 429853002: IDL: Add build target for IDL dictionary impl generation in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 8172 matching lines...) Expand 10 before | Expand all | Expand 10 after
8183 impl->overloadedMethodJ(stringArg); 8183 impl->overloadedMethodJ(stringArg);
8184 } 8184 }
8185 8185
8186 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8186 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8187 { 8187 {
8188 TestObject* impl = V8TestObject::toNative(info.Holder()); 8188 TestObject* impl = V8TestObject::toNative(info.Holder());
8189 TestDictionary* testDictionaryArg; 8189 TestDictionary* testDictionaryArg;
8190 { 8190 {
8191 v8::TryCatch block; 8191 v8::TryCatch block;
8192 V8RethrowTryCatchScope rethrow(block); 8192 V8RethrowTryCatchScope rethrow(block);
8193 TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative(inf o.GetIsolate(), info[0])); 8193 if (!info[0]->IsUndefined()) {
8194 TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative (info.GetIsolate(), info[0]));
8195 } else {
8196 testDictionaryArg = TestDictionary::create();
8197 }
8194 } 8198 }
8195 impl->overloadedMethodJ(testDictionaryArg); 8199 impl->overloadedMethodJ(testDictionaryArg);
8196 } 8200 }
8197 8201
8198 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8202 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8199 { 8203 {
8200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8204 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8201 switch (std::min(1, info.Length())) { 8205 switch (std::min(1, info.Length())) {
8202 case 1: 8206 case 1:
8203 if (info[0]->IsObject()) { 8207 if (info[0]->IsObject()) {
(...skipping 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after
11328 // FIXME: We should support more exceptions. 11332 // FIXME: We should support more exceptions.
11329 RELEASE_ASSERT_NOT_REACHED(); 11333 RELEASE_ASSERT_NOT_REACHED();
11330 } 11334 }
11331 block.ReThrow(); 11335 block.ReThrow();
11332 return false; 11336 return false;
11333 } 11337 }
11334 return true; 11338 return true;
11335 } 11339 }
11336 11340
11337 } // namespace blink 11341 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698