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

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

Issue 474173002: IDL: Use IdlNullableType wrapper to represent nullable types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alternative approach Created 6 years, 4 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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 7389 matching lines...) Expand 10 before | Expand all | Expand 10 after
7400 7400
7401 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 7401 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
7402 { 7402 {
7403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7404 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); 7404 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info);
7405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7406 } 7406 }
7407 7407
7408 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 7408 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
7409 { 7409 {
7410 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
7410 TestObject* impl = V8TestObject::toNative(info.Holder()); 7411 TestObject* impl = V8TestObject::toNative(info.Holder());
7411 V8StringResource<TreatNullAsNullString> defaultStringArg; 7412 V8StringResource<TreatNullAsNullString> defaultStringArg;
7412 { 7413 {
7413 v8::TryCatch block; 7414 v8::TryCatch block;
7414 V8RethrowTryCatchScope rethrow(block); 7415 V8RethrowTryCatchScope rethrow(block);
7415 if (!info[0]->IsUndefined()) { 7416 if (!info[0]->IsUndefined()) {
7416 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); 7417 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString (info[0], exceptionState), exceptionState);
7417 } else { 7418 } else {
7418 defaultStringArg = nullptr; 7419 defaultStringArg = nullptr;
7419 } 7420 }
7420 } 7421 }
7421 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); 7422 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg);
7422 } 7423 }
7423 7424
7424 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 7425 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
7425 { 7426 {
7426 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7427 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
(...skipping 3909 matching lines...) Expand 10 before | Expand all | Expand 10 after
11336 // FIXME: We should support more exceptions. 11337 // FIXME: We should support more exceptions.
11337 RELEASE_ASSERT_NOT_REACHED(); 11338 RELEASE_ASSERT_NOT_REACHED();
11338 } 11339 }
11339 block.ReThrow(); 11340 block.ReThrow();
11340 return false; 11341 return false;
11341 } 11342 }
11342 return true; 11343 return true;
11343 } 11344 }
11344 11345
11345 } // namespace blink 11346 } // namespace blink
OLDNEW
« Source/bindings/scripts/v8_types.py ('K') | « Source/bindings/scripts/v8_types.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698