| 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 #if ENABLE(TEST) | 22 #if ENABLE(TEST) |
| 23 #include "V8TestExtendedEvent.h" | 23 #include "V8TestExtendedEvent.h" |
| 24 | 24 |
| 25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 26 #include "V8TestEvent.h" | 26 #include "V8TestEvent.h" |
| 27 #include "bindings/v8/Dictionary.h" | 27 #include "bindings/v8/Dictionary.h" |
| 28 #include "bindings/v8/ExceptionMessages.h" |
| 28 #include "bindings/v8/ScriptController.h" | 29 #include "bindings/v8/ScriptController.h" |
| 29 #include "bindings/v8/V8Binding.h" | 30 #include "bindings/v8/V8Binding.h" |
| 30 #include "bindings/v8/V8DOMConfiguration.h" | 31 #include "bindings/v8/V8DOMConfiguration.h" |
| 31 #include "bindings/v8/V8DOMWrapper.h" | 32 #include "bindings/v8/V8DOMWrapper.h" |
| 32 #include "bindings/v8/V8ObjectConstructor.h" | 33 #include "bindings/v8/V8ObjectConstructor.h" |
| 33 #include "core/dom/ContextFeatures.h" | 34 #include "core/dom/ContextFeatures.h" |
| 34 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 35 #include "core/page/PageConsole.h" | 36 #include "core/page/PageConsole.h" |
| 36 #include "core/page/UseCounter.h" | 37 #include "core/page/UseCounter.h" |
| 37 #include "core/platform/chromium/TraceEvent.h" | 38 #include "core/platform/chromium/TraceEvent.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 { | 91 { |
| 91 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 92 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 92 UseCounter::countDeprecation(activeScriptExecutionContext(), UseCounter::Key
boardEventKeyLocation); | 93 UseCounter::countDeprecation(activeScriptExecutionContext(), UseCounter::Key
boardEventKeyLocation); |
| 93 EventV8Internal::keyLocationAttributeGetter(name, info); | 94 EventV8Internal::keyLocationAttributeGetter(name, info); |
| 94 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 95 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 95 } | 96 } |
| 96 | 97 |
| 97 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 98 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 98 { | 99 { |
| 99 if (args.Length() < 1) { | 100 if (args.Length() < 1) { |
| 100 throwNotEnoughArgumentsError(args.GetIsolate()); | 101 throwTypeError(ExceptionMessages::failedToConstruct("Event", "An event n
ame must be provided."), args.GetIsolate()); |
| 101 return; | 102 return; |
| 102 } | 103 } |
| 103 | 104 |
| 104 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]); | 105 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]); |
| 105 EventInit eventInit; | 106 EventInit eventInit; |
| 106 if (args.Length() >= 2) { | 107 if (args.Length() >= 2) { |
| 107 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate
())); | 108 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate
())); |
| 108 if (!fillEventInit(eventInit, options)) | 109 if (!fillEventInit(eventInit, options)) |
| 109 return; | 110 return; |
| 110 } | 111 } |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 217 } |
| 217 | 218 |
| 218 void V8TestExtendedEvent::derefObject(void* object) | 219 void V8TestExtendedEvent::derefObject(void* object) |
| 219 { | 220 { |
| 220 fromInternalPointer(object)->deref(); | 221 fromInternalPointer(object)->deref(); |
| 221 } | 222 } |
| 222 | 223 |
| 223 } // namespace WebCore | 224 } // namespace WebCore |
| 224 | 225 |
| 225 #endif // ENABLE(TEST) | 226 #endif // ENABLE(TEST) |
| OLD | NEW |