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

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

Issue 345883004: IDL: Use V8StringResource<WithNullCheck> for nullable DOMString (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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_types.py ('k') | no next file » | 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/V8HTMLCollection.h" 10 #include "bindings/core/v8/V8HTMLCollection.h"
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 { 1534 {
1535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1536 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); 1536 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info);
1537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1538 } 1538 }
1539 1539
1540 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1540 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1541 { 1541 {
1542 v8::Handle<v8::Object> holder = info.Holder(); 1542 v8::Handle<v8::Object> holder = info.Holder();
1543 TestObject* impl = V8TestObject::toNative(holder); 1543 TestObject* impl = V8TestObject::toNative(holder);
1544 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 1544 TOSTRING_VOID(V8StringResource<WithNullCheck>, cppValue, v8Value);
1545 impl->setStringOrNullAttribute(cppValue); 1545 impl->setStringOrNullAttribute(cppValue);
1546 } 1546 }
1547 1547
1548 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1548 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1549 { 1549 {
1550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1551 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); 1551 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info);
1552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1553 } 1553 }
1554 1554
(...skipping 5467 matching lines...) Expand 10 before | Expand all | Expand 10 after
7022 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 7022 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
7023 { 7023 {
7024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7025 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); 7025 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info);
7026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7027 } 7027 }
7028 7028
7029 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 7029 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
7030 { 7030 {
7031 TestObject* impl = V8TestObject::toNative(info.Holder()); 7031 TestObject* impl = V8TestObject::toNative(info.Holder());
7032 V8StringResource<> defaultStringArg; 7032 V8StringResource<WithNullCheck> defaultStringArg;
7033 { 7033 {
7034 v8::TryCatch block; 7034 v8::TryCatch block;
7035 V8RethrowTryCatchScope rethrow(block); 7035 V8RethrowTryCatchScope rethrow(block);
7036 if (info.Length() > 0) { 7036 if (info.Length() > 0) {
7037 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); 7037 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0]));
7038 } else { 7038 } else {
7039 defaultStringArg = nullptr; 7039 defaultStringArg = nullptr;
7040 } 7040 }
7041 } 7041 }
7042 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); 7042 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg);
7043 } 7043 }
7044 7044
7045 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 7045 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
7046 { 7046 {
7047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7048 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); 7048 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info);
7049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7050 } 7050 }
7051 7051
7052 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 7052 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
7053 { 7053 {
7054 TestObject* impl = V8TestObject::toNative(info.Holder()); 7054 TestObject* impl = V8TestObject::toNative(info.Holder());
7055 V8StringResource<> defaultStringArg; 7055 V8StringResource<WithNullCheck> defaultStringArg;
7056 { 7056 {
7057 if (info.Length() > 0) { 7057 if (info.Length() > 0) {
7058 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); 7058 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]);
7059 } else { 7059 } else {
7060 defaultStringArg = nullptr; 7060 defaultStringArg = nullptr;
7061 } 7061 }
7062 } 7062 }
7063 impl->voidMethodDefaultNullableStringArg(defaultStringArg); 7063 impl->voidMethodDefaultNullableStringArg(defaultStringArg);
7064 } 7064 }
7065 7065
(...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after
10194 fromInternalPointer(object)->deref(); 10194 fromInternalPointer(object)->deref();
10195 } 10195 }
10196 10196
10197 template<> 10197 template<>
10198 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 10198 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
10199 { 10199 {
10200 return toV8(impl, creationContext, isolate); 10200 return toV8(impl, creationContext, isolate);
10201 } 10201 }
10202 10202
10203 } // namespace WebCore 10203 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698