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