| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 return BindingSecurity::shouldAllowAccessToFrame(imp->frame(), DoNotReportSe
curityError); | 81 return BindingSecurity::shouldAllowAccessToFrame(imp->frame(), DoNotReportSe
curityError); |
| 82 } | 82 } |
| 83 | 83 |
| 84 static v8::Handle<v8::Value> excitingFunctionMethod(const v8::Arguments& args) | 84 static v8::Handle<v8::Value> excitingFunctionMethod(const v8::Arguments& args) |
| 85 { | 85 { |
| 86 if (args.Length() < 1) | 86 if (args.Length() < 1) |
| 87 return throwNotEnoughArgumentsError(args.GetIsolate()); | 87 return throwNotEnoughArgumentsError(args.GetIsolate()); |
| 88 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); | 88 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); |
| 89 if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame())) | 89 if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame())) |
| 90 return v8Undefined(); | 90 return v8Undefined(); |
| 91 ExceptionCode ec = 0; | |
| 92 V8TRYCATCH(Node*, nextChild, V8Node::HasInstance(args[0], args.GetIsolate(),
worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(a
rgs[0])) : 0); | 91 V8TRYCATCH(Node*, nextChild, V8Node::HasInstance(args[0], args.GetIsolate(),
worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(a
rgs[0])) : 0); |
| 93 imp->excitingFunction(nextChild); | 92 imp->excitingFunction(nextChild); |
| 94 return v8Undefined(); | 93 return v8Undefined(); |
| 95 } | 94 } |
| 96 | 95 |
| 97 static v8::Handle<v8::Value> excitingFunctionMethodCallback(const v8::Arguments&
args) | 96 static v8::Handle<v8::Value> excitingFunctionMethodCallback(const v8::Arguments&
args) |
| 98 { | 97 { |
| 99 return TestActiveDOMObjectV8Internal::excitingFunctionMethod(args); | 98 return TestActiveDOMObjectV8Internal::excitingFunctionMethod(args); |
| 100 } | 99 } |
| 101 | 100 |
| 102 static v8::Handle<v8::Value> postMessageMethod(const v8::Arguments& args) | 101 static v8::Handle<v8::Value> postMessageMethod(const v8::Arguments& args) |
| 103 { | 102 { |
| 104 if (args.Length() < 1) | 103 if (args.Length() < 1) |
| 105 return throwNotEnoughArgumentsError(args.GetIsolate()); | 104 return throwNotEnoughArgumentsError(args.GetIsolate()); |
| 106 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); | 105 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); |
| 107 ExceptionCode ec = 0; | |
| 108 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, message, args[0]); | 106 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, message, args[0]); |
| 109 imp->postMessage(message); | 107 imp->postMessage(message); |
| 110 return v8Undefined(); | 108 return v8Undefined(); |
| 111 } | 109 } |
| 112 | 110 |
| 113 static v8::Handle<v8::Value> postMessageMethodCallback(const v8::Arguments& args
) | 111 static v8::Handle<v8::Value> postMessageMethodCallback(const v8::Arguments& args
) |
| 114 { | 112 { |
| 115 return TestActiveDOMObjectV8Internal::postMessageMethod(args); | 113 return TestActiveDOMObjectV8Internal::postMessageMethod(args); |
| 116 } | 114 } |
| 117 | 115 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 installPerContextProperties(wrapper, impl.get(), isolate); | 233 installPerContextProperties(wrapper, impl.get(), isolate); |
| 236 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 234 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 237 return wrapper; | 235 return wrapper; |
| 238 } | 236 } |
| 239 void V8TestActiveDOMObject::derefObject(void* object) | 237 void V8TestActiveDOMObject::derefObject(void* object) |
| 240 { | 238 { |
| 241 static_cast<TestActiveDOMObject*>(object)->deref(); | 239 static_cast<TestActiveDOMObject*>(object)->deref(); |
| 242 } | 240 } |
| 243 | 241 |
| 244 } // namespace WebCore | 242 } // namespace WebCore |
| OLD | NEW |