| OLD | NEW |
| (Empty) | |
| 1 #include "ChaosGeolocation.h" |
| 2 #include "V8CustomChaosPositionCallback.h" |
| 3 #include "V8ObjectEventListener.h" |
| 4 #include "V8Proxy.h" |
| 5 #include "base/logging.h" |
| 6 |
| 7 namespace WebCore { |
| 8 |
| 9 CALLBACK_FUNC_DECL(ChaosGeolocationWatchPosition) { |
| 10 LOG(WARNING) << "watchPosition"; |
| 11 ChaosGeolocation* geolocation = V8Proxy::convertToNativeObject<ChaosGeolocatio
n>(V8ClassIndex::CHAOSGEOLOCATION, args.Holder()); |
| 12 V8Proxy* proxy = V8Proxy::retrieve(); |
| 13 Frame *frame = V8Proxy::retrieveFrame(); // may not be needed? |
| 14 |
| 15 RefPtr<V8CustomChaosPositionCallback> successCallback |
| 16 = V8CustomChaosPositionCallback::create(args[0]); |
| 17 |
| 18 geolocation->watchPosition(successCallback); |
| 19 } |
| 20 |
| 21 } // namespace WebCore |
| OLD | NEW |