| 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "V8TestEventConstructor.h" | 22 #include "V8TestEventConstructor.h" |
| 23 | 23 |
| 24 #include "RuntimeEnabledFeatures.h" | 24 #include "RuntimeEnabledFeatures.h" |
| 25 #include "bindings/v8/Dictionary.h" | 25 #include "bindings/v8/Dictionary.h" |
| 26 #include "bindings/v8/ExceptionMessages.h" |
| 26 #include "bindings/v8/ScriptController.h" | 27 #include "bindings/v8/ScriptController.h" |
| 27 #include "bindings/v8/V8Binding.h" | 28 #include "bindings/v8/V8Binding.h" |
| 28 #include "bindings/v8/V8DOMConfiguration.h" | 29 #include "bindings/v8/V8DOMConfiguration.h" |
| 29 #include "bindings/v8/V8DOMWrapper.h" | 30 #include "bindings/v8/V8DOMWrapper.h" |
| 30 #include "bindings/v8/V8ObjectConstructor.h" | 31 #include "bindings/v8/V8ObjectConstructor.h" |
| 31 #include "core/dom/ContextFeatures.h" | 32 #include "core/dom/ContextFeatures.h" |
| 32 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
| 33 #include "core/platform/chromium/TraceEvent.h" | 34 #include "core/platform/chromium/TraceEvent.h" |
| 34 #include "wtf/UnusedParam.h" | 35 #include "wtf/UnusedParam.h" |
| 35 | 36 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 static void attr2AttributeGetterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 86 static void attr2AttributeGetterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 86 { | 87 { |
| 87 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 88 TestEventConstructorV8Internal::attr2AttributeGetter(name, info); | 89 TestEventConstructorV8Internal::attr2AttributeGetter(name, info); |
| 89 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 90 } | 91 } |
| 91 | 92 |
| 92 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 93 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 93 { | 94 { |
| 94 if (args.Length() < 1) { | 95 if (args.Length() < 1) { |
| 95 throwNotEnoughArgumentsError(args.GetIsolate()); | 96 throwTypeError(ExceptionMessages::failedToConstruct("TestEventConstructo
r", "An event name must be provided."), args.GetIsolate()); |
| 96 return; | 97 return; |
| 97 } | 98 } |
| 98 | 99 |
| 99 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]); | 100 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]); |
| 100 TestEventConstructorInit eventInit; | 101 TestEventConstructorInit eventInit; |
| 101 if (args.Length() >= 2) { | 102 if (args.Length() >= 2) { |
| 102 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate
())); | 103 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate
())); |
| 103 if (!fillTestEventConstructorInit(eventInit, options)) | 104 if (!fillTestEventConstructorInit(eventInit, options)) |
| 104 return; | 105 return; |
| 105 } | 106 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); | 202 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); |
| 202 return wrapper; | 203 return wrapper; |
| 203 } | 204 } |
| 204 | 205 |
| 205 void V8TestEventConstructor::derefObject(void* object) | 206 void V8TestEventConstructor::derefObject(void* object) |
| 206 { | 207 { |
| 207 fromInternalPointer(object)->deref(); | 208 fromInternalPointer(object)->deref(); |
| 208 } | 209 } |
| 209 | 210 |
| 210 } // namespace WebCore | 211 } // namespace WebCore |
| OLD | NEW |