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

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

Issue 22604003: Make DataTransferItem.getAsString() argument mandatory and nullable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take Arv's feedback into consideration Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/dom/DataTransferItem.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after
3755 return; 3755 return;
3756 } 3756 }
3757 3757
3758 static void methodWithCallbackAndOptionalArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& args) 3758 static void methodWithCallbackAndOptionalArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& args)
3759 { 3759 {
3760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 3760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
3761 TestObjV8Internal::methodWithCallbackAndOptionalArgMethod(args); 3761 TestObjV8Internal::methodWithCallbackAndOptionalArgMethod(args);
3762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 3762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
3763 } 3763 }
3764 3764
3765 static void methodWithNullableCallbackArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& args)
3766 {
3767 if (args.Length() < 1) {
3768 throwNotEnoughArgumentsError(args.GetIsolate());
3769 return;
3770 }
3771 TestObj* imp = V8TestObject::toNative(args.Holder());
3772 if (args.Length() <= 0 || !(args[0]->IsFunction() || args[0]->IsNull())) {
3773 throwTypeError(args.GetIsolate());
3774 return;
3775 }
3776 RefPtr<TestCallback> callback = args[0]->IsNull() ? 0 : V8TestCallback::crea te(args[0], getScriptExecutionContext());
3777 imp->methodWithNullableCallbackArg(callback);
3778
3779 return;
3780 }
3781
3782 static void methodWithNullableCallbackArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& args)
3783 {
3784 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
3785 TestObjV8Internal::methodWithNullableCallbackArgMethod(args);
3786 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
3787 }
3788
3765 static void staticMethodWithCallbackAndOptionalArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& args) 3789 static void staticMethodWithCallbackAndOptionalArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& args)
3766 { 3790 {
3767 RefPtr<TestCallback> callback; 3791 RefPtr<TestCallback> callback;
3768 if (args.Length() > 0 && !args[0]->IsNull() && !args[0]->IsUndefined()) { 3792 if (args.Length() > 0 && !args[0]->IsNull() && !args[0]->IsUndefined()) {
3769 if (!args[0]->IsFunction()) { 3793 if (!args[0]->IsFunction()) {
3770 throwTypeError(args.GetIsolate()); 3794 throwTypeError(args.GetIsolate());
3771 return; 3795 return;
3772 } 3796 }
3773 callback = V8TestCallback::create(args[0], getScriptExecutionContext()); 3797 callback = V8TestCallback::create(args[0], getScriptExecutionContext());
3774 } 3798 }
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
5482 {"withActiveWindowAndFirstWindow", TestObjV8Internal::withActiveWindowAndFir stWindowMethodCallback, 0, 0}, 5506 {"withActiveWindowAndFirstWindow", TestObjV8Internal::withActiveWindowAndFir stWindowMethodCallback, 0, 0},
5483 {"methodWithOptionalArg", TestObjV8Internal::methodWithOptionalArgMethodCall back, 0, 0}, 5507 {"methodWithOptionalArg", TestObjV8Internal::methodWithOptionalArgMethodCall back, 0, 0},
5484 {"methodWithNonOptionalArgAndOptionalArg", TestObjV8Internal::methodWithNonO ptionalArgAndOptionalArgMethodCallback, 0, 1}, 5508 {"methodWithNonOptionalArgAndOptionalArg", TestObjV8Internal::methodWithNonO ptionalArgAndOptionalArgMethodCallback, 0, 1},
5485 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1}, 5509 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1},
5486 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth odCallback, 0, 0}, 5510 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth odCallback, 0, 0},
5487 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona lStringIsUndefinedMethodCallback, 0, 0}, 5511 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona lStringIsUndefinedMethodCallback, 0, 0},
5488 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption alStringIsNullStringMethodCallback, 0, 0}, 5512 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption alStringIsNullStringMethodCallback, 0, 0},
5489 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall back, 0, 1}, 5513 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall back, 0, 1},
5490 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC allbackArgAndCallbackArgMethodCallback, 0, 2}, 5514 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC allbackArgAndCallbackArgMethodCallback, 0, 2},
5491 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn dOptionalArgMethodCallback, 0, 0}, 5515 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn dOptionalArgMethodCallback, 0, 0},
5516 {"methodWithNullableCallbackArg", TestObjV8Internal::methodWithNullableCallb ackArgMethodCallback, 0, 1},
5492 {"methodWithEnforceRangeInt8", TestObjV8Internal::methodWithEnforceRangeInt8 MethodCallback, 0, 1}, 5517 {"methodWithEnforceRangeInt8", TestObjV8Internal::methodWithEnforceRangeInt8 MethodCallback, 0, 1},
5493 {"methodWithEnforceRangeUInt8", TestObjV8Internal::methodWithEnforceRangeUIn t8MethodCallback, 0, 1}, 5518 {"methodWithEnforceRangeUInt8", TestObjV8Internal::methodWithEnforceRangeUIn t8MethodCallback, 0, 1},
5494 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt 32MethodCallback, 0, 1}, 5519 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt 32MethodCallback, 0, 1},
5495 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI nt32MethodCallback, 0, 1}, 5520 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI nt32MethodCallback, 0, 1},
5496 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt 64MethodCallback, 0, 1}, 5521 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt 64MethodCallback, 0, 1},
5497 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI nt64MethodCallback, 0, 1}, 5522 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI nt64MethodCallback, 0, 1},
5498 #if ENABLE(Condition1) 5523 #if ENABLE(Condition1)
5499 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback, 0, 0}, 5524 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback, 0, 0},
5500 #endif // ENABLE(Condition1) 5525 #endif // ENABLE(Condition1)
5501 #if ENABLE(Condition1) && ENABLE(Condition2) 5526 #if ENABLE(Condition1) && ENABLE(Condition2)
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
5764 installPerContextProperties(wrapper, impl.get(), isolate); 5789 installPerContextProperties(wrapper, impl.get(), isolate);
5765 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5790 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5766 return wrapper; 5791 return wrapper;
5767 } 5792 }
5768 void V8TestObject::derefObject(void* object) 5793 void V8TestObject::derefObject(void* object)
5769 { 5794 {
5770 fromInternalPointer(object)->deref(); 5795 fromInternalPointer(object)->deref();
5771 } 5796 }
5772 5797
5773 } // namespace WebCore 5798 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/dom/DataTransferItem.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698