| OLD | NEW |
| (Empty) | |
| 1 #include "V8CustomChaosPositionCallback.h" |
| 2 #include "V8CustomVoidCallback.h" |
| 3 #include "V8Index.h" |
| 4 #include "V8Proxy.h" |
| 5 |
| 6 namespace WebCore { |
| 7 |
| 8 V8CustomChaosPositionCallback::V8CustomChaosPositionCallback(v8::Local<v8::Objec
t> callback) |
| 9 : callback_(v8::Persistent<v8::Object>::New(callback)) { |
| 10 } |
| 11 |
| 12 void V8CustomChaosPositionCallback::handleEvent(ChaosGeoposition* position) { |
| 13 v8::Handle<v8::Value> argv[] = { |
| 14 V8Proxy::convertToV8Object(V8ClassIndex::CHAOSGEOPOSITION, position) |
| 15 }; |
| 16 bool callbackReturnValue = false; |
| 17 bool raisedException |
| 18 = invokeCallback(callback_, 1, argv, callbackReturnValue); |
| 19 } |
| 20 |
| 21 } // namespace WebCore |
| OLD | NEW |