| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 WrapperTypeInfo V8TestExtendedEvent::info = { V8TestExtendedEvent::GetTemplate,
V8TestExtendedEvent::derefObject, 0, 0, 0, V8TestExtendedEvent::installPerContex
tPrototypeProperties, &V8TestEvent::info, WrapperTypeObjectPrototype }; | 63 WrapperTypeInfo V8TestExtendedEvent::info = { V8TestExtendedEvent::GetTemplate,
V8TestExtendedEvent::derefObject, 0, 0, 0, V8TestExtendedEvent::installPerContex
tPrototypeProperties, &V8TestEvent::info, WrapperTypeObjectPrototype }; |
| 64 | 64 |
| 65 namespace EventV8Internal { | 65 namespace EventV8Internal { |
| 66 | 66 |
| 67 template <typename T> void V8_USE(T) { } | 67 template <typename T> void V8_USE(T) { } |
| 68 | 68 |
| 69 static void locationAttributeGetter(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) | 69 static void locationAttributeGetter(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
| 70 { | 70 { |
| 71 Event* imp = V8TestExtendedEvent::toNative(info.Holder()); | 71 Event* imp = V8TestExtendedEvent::toNative(info.Holder()); |
| 72 v8SetReturnValueUnsigned(info, imp->location()); | 72 v8SetReturnValueUnsigned(info, imp->location()); |
| 73 return; | |
| 74 } | 73 } |
| 75 | 74 |
| 76 static void locationAttributeGetterCallback(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) | 75 static void locationAttributeGetterCallback(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 77 { | 76 { |
| 78 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 77 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 79 EventV8Internal::locationAttributeGetter(name, info); | 78 EventV8Internal::locationAttributeGetter(name, info); |
| 80 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 79 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 81 } | 80 } |
| 82 | 81 |
| 83 static void keyLocationAttributeGetter(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 82 static void keyLocationAttributeGetter(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
| 84 { | 83 { |
| 85 Event* imp = V8TestExtendedEvent::toNative(info.Holder()); | 84 Event* imp = V8TestExtendedEvent::toNative(info.Holder()); |
| 86 v8SetReturnValueUnsigned(info, imp->location()); | 85 v8SetReturnValueUnsigned(info, imp->location()); |
| 87 return; | |
| 88 } | 86 } |
| 89 | 87 |
| 90 static void keyLocationAttributeGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) | 88 static void keyLocationAttributeGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 91 { | 89 { |
| 92 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 93 UseCounter::countDeprecation(activeScriptExecutionContext(), UseCounter::Key
boardEventKeyLocation); | 91 UseCounter::countDeprecation(activeScriptExecutionContext(), UseCounter::Key
boardEventKeyLocation); |
| 94 EventV8Internal::keyLocationAttributeGetter(name, info); | 92 EventV8Internal::keyLocationAttributeGetter(name, info); |
| 95 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 93 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 96 } | 94 } |
| 97 | 95 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 215 } |
| 218 | 216 |
| 219 void V8TestExtendedEvent::derefObject(void* object) | 217 void V8TestExtendedEvent::derefObject(void* object) |
| 220 { | 218 { |
| 221 fromInternalPointer(object)->deref(); | 219 fromInternalPointer(object)->deref(); |
| 222 } | 220 } |
| 223 | 221 |
| 224 } // namespace WebCore | 222 } // namespace WebCore |
| 225 | 223 |
| 226 #endif // ENABLE(TEST) | 224 #endif // ENABLE(TEST) |
| OLD | NEW |