| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 WebCore::initializeScriptWrappableForInterface(object); | 55 WebCore::initializeScriptWrappableForInterface(object); |
| 56 } | 56 } |
| 57 | 57 |
| 58 namespace WebCore { | 58 namespace WebCore { |
| 59 const WrapperTypeInfo V8TestMediaQueryListListener::wrapperTypeInfo = { V8TestMe
diaQueryListListener::GetTemplate, V8TestMediaQueryListListener::derefObject, 0,
0, 0, V8TestMediaQueryListListener::installPerContextEnabledPrototypeProperties
, 0, WrapperTypeObjectPrototype }; | 59 const WrapperTypeInfo V8TestMediaQueryListListener::wrapperTypeInfo = { V8TestMe
diaQueryListListener::GetTemplate, V8TestMediaQueryListListener::derefObject, 0,
0, 0, V8TestMediaQueryListListener::installPerContextEnabledPrototypeProperties
, 0, WrapperTypeObjectPrototype }; |
| 60 | 60 |
| 61 namespace TestMediaQueryListListenerV8Internal { | 61 namespace TestMediaQueryListListenerV8Internal { |
| 62 | 62 |
| 63 template <typename T> void V8_USE(T) { } | 63 template <typename T> void V8_USE(T) { } |
| 64 | 64 |
| 65 static void methodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 65 static void methodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 66 { | 66 { |
| 67 if (UNLIKELY(args.Length() < 1)) { | 67 if (UNLIKELY(info.Length() < 1)) { |
| 68 throwTypeError(ExceptionMessages::failedToExecute("method", "TestMediaQu
eryListListener", ExceptionMessages::notEnoughArguments(1, args.Length())), args
.GetIsolate()); | 68 throwTypeError(ExceptionMessages::failedToExecute("method", "TestMediaQu
eryListListener", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); |
| 69 return; | 69 return; |
| 70 } | 70 } |
| 71 TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(arg
s.Holder()); | 71 TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(inf
o.Holder()); |
| 72 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, listener, MediaQueryListList
ener::create(ScriptValue(args[0], args.GetIsolate()))); | 72 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, listener, MediaQueryListList
ener::create(ScriptValue(info[0], info.GetIsolate()))); |
| 73 imp->method(listener); | 73 imp->method(listener); |
| 74 } | 74 } |
| 75 | 75 |
| 76 static void methodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args
) | 76 static void methodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 77 { | 77 { |
| 78 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 78 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 79 TestMediaQueryListListenerV8Internal::methodMethod(args); | 79 TestMediaQueryListListenerV8Internal::methodMethod(info); |
| 80 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 80 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace TestMediaQueryListListenerV8Internal | 83 } // namespace TestMediaQueryListListenerV8Internal |
| 84 | 84 |
| 85 static const V8DOMConfiguration::MethodConfiguration V8TestMediaQueryListListene
rMethods[] = { | 85 static const V8DOMConfiguration::MethodConfiguration V8TestMediaQueryListListene
rMethods[] = { |
| 86 {"method", TestMediaQueryListListenerV8Internal::methodMethodCallback, 0, 1}
, | 86 {"method", TestMediaQueryListListenerV8Internal::methodMethodCallback, 0, 1}
, |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestMediaQueryListListenerTem
plate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldT
ype currentWorldType) | 89 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestMediaQueryListListenerTem
plate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldT
ype currentWorldType) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl,
&wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 152 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl,
&wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 153 return wrapper; | 153 return wrapper; |
| 154 } | 154 } |
| 155 | 155 |
| 156 void V8TestMediaQueryListListener::derefObject(void* object) | 156 void V8TestMediaQueryListListener::derefObject(void* object) |
| 157 { | 157 { |
| 158 fromInternalPointer(object)->deref(); | 158 fromInternalPointer(object)->deref(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace WebCore | 161 } // namespace WebCore |
| OLD | NEW |