| OLD | NEW |
| (Empty) | |
| 1 #include "ChaosPositionCallback.h" |
| 2 #include <v8.h> |
| 3 #include <wtf/PassRefPtr.h> |
| 4 |
| 5 namespace WebCore { |
| 6 |
| 7 class V8CustomChaosPositionCallback : public ChaosPositionCallback { |
| 8 public: |
| 9 static PassRefPtr<V8CustomChaosPositionCallback> create(v8::Local<v8::Value> v
alue) { |
| 10 ASSERT(value->IsObject()); |
| 11 return adoptRef(new V8CustomChaosPositionCallback(value->ToObject())); |
| 12 } |
| 13 private: |
| 14 V8CustomChaosPositionCallback(v8::Local<v8::Object> callback); |
| 15 |
| 16 void handleEvent(ChaosGeoposition* position); |
| 17 |
| 18 v8::Persistent<v8::Object> callback_; |
| 19 |
| 20 }; |
| 21 |
| 22 } // namespace WebCore |
| OLD | NEW |