| Index: webkit/chaos/V8ChaosGeolocationCustom.cpp | 
| =================================================================== | 
| --- webkit/chaos/V8ChaosGeolocationCustom.cpp	(revision 0) | 
| +++ webkit/chaos/V8ChaosGeolocationCustom.cpp	(revision 0) | 
| @@ -0,0 +1,26 @@ | 
| +#include "config.h" | 
| + | 
| +#include "ChaosGeolocation.h" | 
| +#include "V8CustomChaosPositionCallback.h" | 
| +#include "V8ObjectEventListener.h" | 
| +#include "V8Proxy.h" | 
| +#undef LOG | 
| +#include "base/logging.h" | 
| + | 
| +namespace WebCore { | 
| + | 
| +CALLBACK_FUNC_DECL(ChaosGeolocationWatchPosition) { | 
| +  LOG(WARNING) << "watchPosition"; | 
| +  ChaosGeolocation* geolocation = V8DOMWrapper::convertToNativeObject<ChaosGeolocation>(V8ClassIndex::CHAOSGEOLOCATION, args.Holder()); | 
| +  V8Proxy* proxy = V8Proxy::retrieve(); | 
| +  Frame *frame = V8Proxy::retrieveFrameForCurrentContext(); | 
| + | 
| +  RefPtr<V8CustomChaosPositionCallback> successCallback | 
| +      = V8CustomChaosPositionCallback::create(frame, args[0]); | 
| + | 
| +  int handle = geolocation->watchPosition(successCallback); | 
| + | 
| +  return v8::Integer::New(handle); | 
| +} | 
| + | 
| +} // namespace WebCore | 
|  | 
| Property changes on: webkit/chaos/V8ChaosGeolocationCustom.cpp | 
| ___________________________________________________________________ | 
| Added: svn:eol-style | 
| + LF | 
|  | 
|  |