| OLD | NEW |
| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool fillTestEventConstructorInit(TestEventConstructorInit& eventInit, const Dic
tionary& options) | 120 bool fillTestEventConstructorInit(TestEventConstructorInit& eventInit, const Dic
tionary& options) |
| 121 { | 121 { |
| 122 options.get("attr2", eventInit.attr2); | 122 options.get("attr2", eventInit.attr2); |
| 123 return true; | 123 return true; |
| 124 } | 124 } |
| 125 | 125 |
| 126 void V8TestEventConstructor::constructorCallback(const v8::FunctionCallbackInfo<
v8::Value>& args) | 126 void V8TestEventConstructor::constructorCallback(const v8::FunctionCallbackInfo<
v8::Value>& args) |
| 127 { | 127 { |
| 128 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 128 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 129 if (!args.IsConstructCall()) { | 129 if (!args.IsConstructCall()) { |
| 130 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); | 130 throwTypeError(ExceptionMessages::failedToConstruct("TestEventConstructo
r", "Please use the 'new' operator, this DOM object constructor cannot be called
as a function."), args.GetIsolate()); |
| 131 return; | 131 return; |
| 132 } | 132 } |
| 133 | 133 |
| 134 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 134 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 135 args.GetReturnValue().Set(args.Holder()); | 135 args.GetReturnValue().Set(args.Holder()); |
| 136 return; | 136 return; |
| 137 } | 137 } |
| 138 | 138 |
| 139 TestEventConstructorV8Internal::constructor(args); | 139 TestEventConstructorV8Internal::constructor(args); |
| 140 } | 140 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); | 202 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); |
| 203 return wrapper; | 203 return wrapper; |
| 204 } | 204 } |
| 205 | 205 |
| 206 void V8TestEventConstructor::derefObject(void* object) | 206 void V8TestEventConstructor::derefObject(void* object) |
| 207 { | 207 { |
| 208 fromInternalPointer(object)->deref(); | 208 fromInternalPointer(object)->deref(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace WebCore | 211 } // namespace WebCore |
| OLD | NEW |