Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: webkit/chaos/V8ChaosGeolocationCustom.cpp

Issue 149391: Chaos Demo Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/chaos/ChaosPositionCallback.idl ('k') | webkit/chaos/V8CustomChaosPositionCallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chaos/V8ChaosGeolocationCustom.cpp
===================================================================
--- webkit/chaos/V8ChaosGeolocationCustom.cpp (revision 0)
+++ webkit/chaos/V8ChaosGeolocationCustom.cpp (revision 0)
@@ -0,0 +1,21 @@
+#include "ChaosGeolocation.h"
+#include "V8CustomChaosPositionCallback.h"
+#include "V8ObjectEventListener.h"
+#include "V8Proxy.h"
+#include "base/logging.h"
+
+namespace WebCore {
+
+CALLBACK_FUNC_DECL(ChaosGeolocationWatchPosition) {
+ LOG(WARNING) << "watchPosition";
+ ChaosGeolocation* geolocation = V8Proxy::convertToNativeObject<ChaosGeolocation>(V8ClassIndex::CHAOSGEOLOCATION, args.Holder());
+ V8Proxy* proxy = V8Proxy::retrieve();
+ Frame *frame = V8Proxy::retrieveFrame(); // may not be needed?
+
+ RefPtr<V8CustomChaosPositionCallback> successCallback
+ = V8CustomChaosPositionCallback::create(args[0]);
+
+ geolocation->watchPosition(successCallback);
+}
+
+} // namespace WebCore
« no previous file with comments | « webkit/chaos/ChaosPositionCallback.idl ('k') | webkit/chaos/V8CustomChaosPositionCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698